Skip to content

Commit e3fe70f

Browse files
authored
feat(DragDrop): fix import warning (#10023)
1 parent 08e52e3 commit e3fe70f

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

packages/react-drag-drop/src/next/components/DragDrop/DragDropSort.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,20 @@ import {
2121
import { Draggable } from './Draggable';
2222
import { DraggableDataListItem } from './DraggableDataListItem';
2323
import { DraggableDualListSelectorListItem } from './DraggableDualListSelectorListItem';
24-
import { DraggableObject } from './DragDropUtil';
2524
import styles from '@patternfly/react-styles/css/components/DragDrop/drag-drop';
2625

2726
export type DragDropSortDragEndEvent = DragEndEvent;
2827
export type DragDropSortDragStartEvent = DragStartEvent;
2928

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+
3038
/**
3139
* DragDropSortProps extends dnd-kit's props which may be viewed at https://docs.dndkit.com/api-documentation/context-provider#props.
3240
*/

packages/react-drag-drop/src/next/components/DragDrop/DragDropUtil.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/react-drag-drop/src/next/components/DragDrop/examples/DragDrop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import AngleDoubleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-d
1515
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
1616
import PficonSortCommonAscIcon from '@patternfly/react-icons/dist/esm/icons/pficon-sort-common-asc-icon';
1717

18-
import { DragDropSort, DraggableObject } from '@patternfly/react-drag-drop';
18+
import { DragDropSort } from '@patternfly/react-drag-drop';
1919

2020
## Sorting examples
2121

packages/react-drag-drop/src/next/components/DragDrop/examples/DragDropDemos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import AngleDoubleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-d
1414
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
1515
import PficonSortCommonAscIcon from '@patternfly/react-icons/dist/esm/icons/pficon-sort-common-asc-icon';
1616

17-
import { DragDropSort, DraggableObject } from '@patternfly/react-drag-drop';
17+
import { DragDropSort } from '@patternfly/react-drag-drop';
1818

1919
## Sorting demos
2020

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
export * from './DragDropSort';
2-
export * from './DragDropUtil';

0 commit comments

Comments
 (0)