Skip to content

Commit

Permalink
Merge pull request #171 from minop1205/feature-167
Browse files Browse the repository at this point in the history
Update package version to 3.4.0
  • Loading branch information
minop1205 authored Nov 28, 2022
2 parents deaddcc + e0f0b09 commit 04a4847
Show file tree
Hide file tree
Showing 8 changed files with 2,336 additions and 2,783 deletions.
2 changes: 1 addition & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export const parameters = {
"Basic Examples",
[
"Minimum configuration",
"AnimateExpand",
"Custom node",
"Custom drag preview",
"AnimateExpand",
"Select node",
"Multiple selections",
"Opening and closing all nodes",
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 3.4.0

_Nov 29, 2022_

### Added

- Added `enableAnimateExpand` API to support open/close animation.

## 3.3.0

_Nov 2, 2022_
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
A draggable and droppable React treeview component.
You can use render props to create each node freely.

![react-dnd-treeview](https://user-images.githubusercontent.com/3772820/98293395-94441000-1ff1-11eb-81db-b84c31b03c6b.gif)
![react-dnd-treeview](https://user-images.githubusercontent.com/3772820/204380436-4c501e28-6c0a-43ea-a317-6620d6dc1ca0.gif)

## Demo and Examples

Expand Down
4,899 changes: 2,249 additions & 2,650 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@minoru/react-dnd-treeview",
"description": "A draggable / droppable React-based treeview component.",
"version": "3.3.0",
"version": "3.4.0",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,208 +6,208 @@
"text": "Folder 1"
},
{
"id": 2.1,
"id": 2,
"parent": 1,
"text": "File 1-2.1",
"text": "File 1-01",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.11,
"id": 3,
"parent": 1,
"text": "File 1-2.11",
"text": "File 1-02",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.12,
"id": 4,
"parent": 1,
"text": "File 1-2.12",
"text": "File 1-03",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.13,
"id": 5,
"parent": 1,
"text": "File 1-2.13",
"text": "File 1-04",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.14,
"id": 6,
"parent": 1,
"text": "File 1-2.14",
"text": "File 1-05",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.15,
"id": 7,
"parent": 1,
"text": "File 1-2.15",
"text": "File 1-06",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.16,
"id": 8,
"parent": 1,
"text": "File 1-2.16",
"text": "File 1-07",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.17,
"id": 9,
"parent": 1,
"text": "File 1-2.17",
"text": "File 1-08",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.18,
"id": 10,
"parent": 1,
"text": "File 1-2.18",
"text": "File 1-09",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.19,
"id": 11,
"parent": 1,
"text": "File 1-2.19",
"text": "File 1-10",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.2,
"id": 12,
"parent": 1,
"text": "File 1-2.2",
"text": "File 1-11",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.21,
"id": 13,
"parent": 1,
"text": "File 1-2.21",
"text": "File 1-12",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.22,
"id": 14,
"parent": 1,
"text": "File 1-2.22",
"text": "File 1-13",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.23,
"id": 15,
"parent": 1,
"text": "File 1-2.23",
"text": "File 1-14",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.24,
"id": 16,
"parent": 1,
"text": "File 1-2.24",
"text": "File 1-15",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.25,
"id": 17,
"parent": 1,
"text": "File 1-2.25",
"text": "File 1-16",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.26,
"id": 18,
"parent": 1,
"text": "File 1-2.26",
"text": "File 1-17",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.27,
"id": 19,
"parent": 1,
"text": "File 1-2.27",
"text": "File 1-18",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.28,
"id": 20,
"parent": 1,
"text": "File 1-2.28",
"text": "File 1-19",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 2.29,
"id": 21,
"parent": 1,
"text": "File 1-2.29",
"text": "File 1-20",
"data": {
"fileType": "text",
"fileSize": "4.8MB"
}
},
{
"id": 4,
"id": 22,
"parent": 0,
"droppable": true,
"text": "Folder 2"
},
{
"id": 5,
"parent": 4,
"id": 23,
"parent": 22,
"droppable": true,
"text": "Folder 2-1"
},
{
"id": 6,
"parent": 5,
"id": 24,
"parent": 23,
"text": "File 2-1-1",
"data": {
"fileType": "image",
"fileSize": "2.1MB"
}
},
{
"id": 7,
"id": 25,
"parent": 0,
"text": "File 3",
"data": {
Expand Down
8 changes: 8 additions & 0 deletions src/stories/examples/AnimateExpand/AnimateExpand.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@
height: 100%;
padding: 32px;
}

.draggingSource {
opacity: 0.3;
}

.dropTarget {
background-color: #e8f0fe;
}
Loading

0 comments on commit 04a4847

Please sign in to comment.