You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,50 @@
9
9
10
10
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-[\<FileMosaic/\>](https://www.files-ui.com/components/filemosaic): This new component replaces the old "FileItem" component.
17
+
18
+
- Darkmode: Now component can be adpted to a dark mode pages with the respective prop.
19
+
- New icons: Icons for delete were changed.
20
+
- For uploading, the loader can support to display the current progress.
21
+
22
+
-[\<FileCard/\>](https://www.files-ui.com/components/filecard): This new component is an alternative version of FileMosaic. It displays the file info in a card. Receives the same props as FileMosaic plus `elevation`.
23
+
24
+
-[\<FileInputButton/\>](https://www.files-ui.com/components/dropzone): This component replaces the old "InputButton" component. The features are the same as the dropzone except the header and footer related features. That means that this component now can trigger the upload progress.
25
+
Validation is optional, so non valid files can be uploaded.
26
+
27
+
-[\<Avatar/\>](https://www.files-ui.com/components/avatar): This new component is designed tohandle the selection of images for changing the avatar. Can recieve as source an string url or even a File.
28
+
29
+
-[\<FullScreen/\>](https://www.files-ui.com/api/fullscreen): The old components "FullScreenImage" and "FullScreenVideo" have been separated into FUllScreen, ImagePreview and VideoPreview.
30
+
31
+
- FullScreen: component for display in a fullscreen backdrop other components.
32
+
-[ImagePreview](https://www.files-ui.com/api/imagepreview): component is an \<img/\> tag enhanced to allow as `src` a string url or a ile object.
33
+
-[VideoPreview](https://www.files-ui.com/api/videopreview): component is an \<video/\> tag enhanced to allow as `src` a string url or a ile object.
34
+
35
+
-[\<Dropzone/\>](https://www.files-ui.com/components/dropzone): This component has been refactored to improve the design, colors and internal components such us headeror footer.
36
+
37
+
- Header and footer can be handled through 2 new props: `headerConfig` and `footerConfig`
38
+
- Action buttons: these are external buttons thta can trigger the default operations in dropzone.
39
+
- Uploading: The upload operation now is completele handled using pure javascript without external libraries wich means `axios` is no longer a dependency.
40
+
41
+
-`smartImgFit`: This is a special prop for FileMosaic, FileCard and Avatar components that makes someway "smart" the components to fit the images depeding on their orientation ("landscape" or protrait). Square images are hardly afected.
42
+
43
+
- How it works?
44
+
45
+
- If false, image width will be set to 100%.
46
+
If present, image will be analized and displayed according to its heigh and width. Image with height greater than its width has a "portrait" orientation. Otherwise it has a "landscape" orientation. .
47
+
48
+
- If value is "orientation", image will be displayed complete by giving 100% to width prop if the orientation is "landscape". When orientation is "portrait", height prop will be set to 100%. Some images will show an empty space.
49
+
50
+
- If value is "center", image will be centered and will not be displayed complete. This the empty space is avoided. This is achived by giving 100% to width prop if the orientation is "portrait". When orientation is "landscape", height prop will be set to 100%.
51
+
52
+
## 📚 Improved documentation.
53
+
54
+
- The complete documentation can be found in files-ui [web page](https://www.files-ui.com).
Thank you so much for using dropzone-ui/react ❤️ !
21
-
Dropzone UI has grown very fast and has exceeded its original scope. That's why we find reasonable to rebrand it and create a new package taking the best of this one and adding more features and new components. This new package is here and its name is Files UI ⚡
19
+
20
+
Dropzone UI has grown very fast and has exceeded its original scope. That's why we find reasonable to rebrand it and create a new package taking the best of this one and adding more features and new components. This new package is here and its name is Files UI ⚡.
22
21
In an very near future we'll stop giving support to dropzone-ui, so we enforce you to upgrade to this new package. In the meanwhile this package will become a wrapper for files-ui.
23
22
24
23
:zap: Live demos and full documentation : [files-ui.com](https://files-ui.vercel.app)
@@ -33,11 +32,12 @@ In an very near future we'll stop giving support to dropzone-ui, so we enforce y
33
32
34
33
## Important
35
34
36
-
From now on [@files-ui/react](https://www.npmjs.com/package/@files-ui/react)is the only dependency. Check out the changelog file to know what's new.
35
+
From now on [@files-ui/react](https://www.npmjs.com/package/@files-ui/react) is the only dependency. Check out the changelog file to know what's new.
37
36
38
37
## Sample result:
39
38
40
39
This is a small part of what you can find on files-ui :eyes:
@@ -46,7 +46,6 @@ This is a small part of what you can find on files-ui :eyes:
46
46
47
47
- More previews [here](#more-previews).
48
48
49
-
50
49
## Requirement
51
50
52
51
`@dropzone-ui/react` is based on [React Hooks](https://reactjs.org/docs/hooks-intro.html). It requires `react v16.8+`.
@@ -66,7 +65,13 @@ yarn add @dropzone-ui/react
66
65
```
67
66
68
67
## API documentation
69
-
The complete documentation of every component has been moved to files-ui.com [API page](https://www.files-ui.com/api/dropzone). However if you are still using dropzone-ui version 6 or less you can find the documentation [here](https://www.npmjs.com/package/@dropzone-ui/react/v/6.7.20#dropzone-ui-react-components-api).
68
+
69
+
The complete documentation of every component has been moved to files-ui.com [API page](https://www.files-ui.com/api/dropzone).
70
+
71
+
However if you are still using dropzone-ui version 6.7.0 or lower, you can find the documentation and demos here:
@@ -82,24 +87,28 @@ Special thanks to these amazing people :star: :
82
87
83
88
## More Previews
84
89
85
-
### Image full screen preview
86
-
87
-
<palign="center"><imgsrc="https://user-images.githubusercontent.com/43678736/228066199-fb7a5bd3-9c7e-4f72-b0ef-7f11d236d38e.png"alt="Image full screen preview"width="100%"/></p>
88
-
89
-
### Video full screen preview
90
+
<details>
91
+
<summary>Image full screen preview 🖼️ </summary>
92
+
<palign="center"><imgsrc="https://user-images.githubusercontent.com/43678736/228066199-fb7a5bd3-9c7e-4f72-b0ef-7f11d236d38e.png"alt="Image full screen preview"width="100%"/></p>
90
93
94
+
</details>
95
+
<details>
96
+
<summary>Video full screen preview 🎞️ </summary>
91
97
<palign="center"><imgsrc="https://user-images.githubusercontent.com/43678736/228066195-62063300-21e0-48fd-80d8-31b566562fde.png"alt="Video full screen preview"width="100%"/></p>
98
+
</details>
92
99
93
-
### File Mosaic, FileInputButotn and Avatar preview
94
-
100
+
<details>
101
+
<summary>FileCard, FileInputButton and Avatar preview 🎴 </summary>
95
102
<palign="center"><imgsrc="https://user-images.githubusercontent.com/43678736/228063876-5b6d00fe-f0ba-453f-a7ce-c44ba7444417.png"alt="Video full screen preview"width="100%"/></p>
0 commit comments