File tree Expand file tree Collapse file tree 5 files changed +11
-12
lines changed
packages/react-drag-drop/src/next/components/DragDrop Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,20 @@ import {
21
21
import { Draggable } from './Draggable' ;
22
22
import { DraggableDataListItem } from './DraggableDataListItem' ;
23
23
import { DraggableDualListSelectorListItem } from './DraggableDualListSelectorListItem' ;
24
- import { DraggableObject } from './DragDropUtil' ;
25
24
import styles from '@patternfly/react-styles/css/components/DragDrop/drag-drop' ;
26
25
27
26
export type DragDropSortDragEndEvent = DragEndEvent ;
28
27
export type DragDropSortDragStartEvent = DragStartEvent ;
29
28
29
+ export interface DraggableObject {
30
+ /** Unique id of the draggable object */
31
+ id : string ;
32
+ /** Content rendered in the draggable object */
33
+ content : React . ReactNode ;
34
+ /** Props spread to the rendered wrapper of the draggable object */
35
+ props ?: any ;
36
+ }
37
+
30
38
/**
31
39
* DragDropSortProps extends dnd-kit's props which may be viewed at https://docs.dndkit.com/api-documentation/context-provider#props.
32
40
*/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import AngleDoubleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-d
15
15
import AngleRightIcon from '@patternfly/react-icons /dist/esm/icons/angle-right-icon';
16
16
import PficonSortCommonAscIcon from '@patternfly/react-icons /dist/esm/icons/pficon-sort-common-asc-icon';
17
17
18
- import { DragDropSort, DraggableObject } from '@patternfly/react-drag-drop ';
18
+ import { DragDropSort } from '@patternfly/react-drag-drop ';
19
19
20
20
## Sorting examples
21
21
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import AngleDoubleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-d
14
14
import AngleRightIcon from '@patternfly/react-icons /dist/esm/icons/angle-right-icon';
15
15
import PficonSortCommonAscIcon from '@patternfly/react-icons /dist/esm/icons/pficon-sort-common-asc-icon';
16
16
17
- import { DragDropSort, DraggableObject } from '@patternfly/react-drag-drop ';
17
+ import { DragDropSort } from '@patternfly/react-drag-drop ';
18
18
19
19
## Sorting demos
20
20
Original file line number Diff line number Diff line change 1
1
export * from './DragDropSort' ;
2
- export * from './DragDropUtil' ;
You can’t perform that action at this time.
0 commit comments