Skip to content

Commit 8b6806b

Browse files
authored
Merge pull request #593 from dropzone-ui/refactor-readme-file-and-components-to-work-with-files-ui
Refactor readme file and components to work with files UI
2 parents 4a32adb + 840f955 commit 8b6806b

File tree

192 files changed

+312
-9237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+312
-9237
lines changed

CHANGELOG.md

+46
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,52 @@
99

1010
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.
1111

12+
## [Dropzone-ui(7.0.0) = Files-ui(1.0.0)](https://github.com/files-ui/files-ui-react/releases/tag/v1.0.0) (2023-03-28)
13+
14+
## 🧪 New features and 🐛🔨 Improvements
15+
16+
- [ExtFile](https://www.files-ui.com/types#extfile): Data estructure that "extends" the File Object. This object is designed to allow the information exchange between components. This data type replaces the old "FileValidate" type from dropzone-ui.
17+
18+
- [\<FileMosaic/\>](https://www.files-ui.com/components/filemosaic): This new component replaces the old "FileItem" component.
19+
20+
- Darkmode: Now component can be adpted to a dark mode pages with the respective prop.
21+
- New icons: Icons for delete were changed.
22+
- For uploading, the loader can support to display the current progress.
23+
24+
- [\<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`.
25+
26+
- [\<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.
27+
Validation is optional, so non valid files can be uploaded.
28+
29+
- [\<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.
30+
31+
- [\<FullScreen/\>](https://www.files-ui.com/api/fullscreen): The old components "FullScreenImage" and "FullScreenVideo" have been separated into FUllScreen, ImagePreview and VideoPreview.
32+
33+
- FullScreen: component for display in a fullscreen backdrop other components.
34+
- [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.
35+
- [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.
36+
37+
- [\<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.
38+
39+
- Header and footer can be handled through 2 new props: `headerConfig` and `footerConfig`
40+
- Action buttons: these are external buttons thta can trigger the default operations in dropzone.
41+
- Uploading: The upload operation now is completele handled using pure javascript without external libraries wich means `axios` is no longer a dependency.
42+
43+
- `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.
44+
45+
- How it works?
46+
47+
- If false, image width will be set to 100%.
48+
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. .
49+
50+
- 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.
51+
52+
- 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%.
53+
54+
## 📚 Improved documentation.
55+
56+
- The complete documentation can be found in files-ui [web page](https://www.files-ui.com).
57+
1258
<a name="6.4.0"></a>
1359

1460
## [6.4.0](https://github.com/dropzone-ui/react-dropzone/releases/tag/v6.4.0) (2021-12-12)

README.md

+41-353
Large diffs are not rendered by default.

build/FileItem/FileItem.d.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as React from "react";
2+
import { FileMosaicProps } from "@files-ui/react";
3+
/**
4+
* @deprecated This component was replaced by FileMosaic
5+
* @param props the same props that receives FileMosaic component
6+
* @returns
7+
*/
8+
declare const FileItem: React.FC<FileMosaicProps>;
9+
export default FileItem;

build/components/dropzone/components/Dropzone/Dropzone.d.ts

-5
This file was deleted.

build/components/dropzone/components/Dropzone/DropzoneProps.d.ts

-213
This file was deleted.

build/components/dropzone/components/DropzoneFooter.tsx/DropzoneFooter.d.ts

-4
This file was deleted.

build/components/dropzone/components/DropzoneFooter.tsx/DropzoneFooterProps.d.ts

-16
This file was deleted.

build/components/dropzone/components/DropzoneHeader/DropzoneHeader.d.ts

-29
This file was deleted.

build/components/dropzone/components/DropzoneLabel/DropzoneLabel.d.ts

-6
This file was deleted.

build/components/dropzone/components/hooks/useDropzoneStyles.d.ts

-10
This file was deleted.

build/components/dropzone/components/utils/dropzone-ui.upload.utils.d.ts

-24
This file was deleted.

build/components/dropzone/components/utils/dropzone-ui.utils.d.ts

-3
This file was deleted.

build/components/dropzone/components/utils/index.d.ts

-2
This file was deleted.

0 commit comments

Comments
 (0)