fansunited-management-components 1.30.0-RC1 → 1.30.0-RC2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.es.js +5016 -4798
- package/index.umd.js +158 -158
- package/package.json +1 -1
- package/src/components/DragAndDrop/BasicSortableList/BasicSortableList.d.ts +26 -0
- package/src/components/DragAndDrop/BasicSortableList/DragHandle.d.ts +7 -0
- package/src/components/DragAndDrop/BasicSortableList/SortableItem.d.ts +22 -0
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ISortableItem {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
type?: string;
|
|
8
|
+
group?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
}
|
|
12
|
+
type SortableListProps = {
|
|
13
|
+
items: ISortableItem[];
|
|
14
|
+
labels: {
|
|
15
|
+
noItemsToDisplay: string;
|
|
16
|
+
dragToReorder: string;
|
|
17
|
+
};
|
|
18
|
+
setEntities: Dispatch<SetStateAction<any[]>>;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Enhanced sortable list using the `dnd-kit` library with improved UI/UX.
|
|
22
|
+
* Features rich item cards with support for images, descriptions, types, and group tags.
|
|
23
|
+
* dnd-kit documentation: https://docs.dndkit.com/
|
|
24
|
+
*/
|
|
25
|
+
declare const BasicSortableList: React.FC<SortableListProps>;
|
|
26
|
+
export default BasicSortableList;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
3
|
+
import { VariantProp } from '@mui/joy/styles/types';
|
|
4
|
+
|
|
5
|
+
interface ISortableItem {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
group?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
}
|
|
14
|
+
type SortableItemProps = {
|
|
15
|
+
id: UniqueIdentifier;
|
|
16
|
+
useDraggable?: boolean;
|
|
17
|
+
variant?: VariantProp;
|
|
18
|
+
item: ISortableItem;
|
|
19
|
+
tooltipContent: string;
|
|
20
|
+
};
|
|
21
|
+
declare const SortableItem: React.FC<SortableItemProps>;
|
|
22
|
+
export default SortableItem;
|