Skip to content

Commit 378da9f

Browse files
committed
RIKUDO CHIBAKU TENSE
1 parent f1c982a commit 378da9f

92 files changed

Lines changed: 8727 additions & 997 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ node_modules
33
storybook-static
44
#src
55
process.md
6-
src_past1
7-
src_past2
8-
src_past3

.npmignore

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1+
.github
2+
.storybook
3+
example
14
node_modules
25
storybook-static
36
src
4-
.github
5-
example
6-
rollup.config.js
7-
.travis.yml
7+
stories
8+
test
9+
.eslintrc
10+
.gitignore
11+
12+
postinstallSSJ.js
813
process.md
914
src_past1
1015
src_past2
1116
src_past3
17+
README.md
18+
CHANGELOG.md
19+
rollup.config.js
20+
.travis.yml
21+
tempackage.json

CHANGELOG.md

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
1+
12
# Change Log
3+
<p align="center">
4+
<img align="center" height="120" src="https://user-images.githubusercontent.com/43678736/132112022-0ca409ae-cca2-43c8-be89-110376260a3f.png" alt="dropone-ui-logo">
5+
6+
<h1 align="center"> Dropzone UI</h1>
7+
8+
</p>
29

310
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.
411

5-
<a name="1.0.2"></a>
6-
## [1.0.2](https://github.com/glicht/npm-get-version/compare/v1.0.1...v1.0.2) (2018-07-21)
12+
<a name="1.0.0"></a>
13+
## [1.0.2](https://github.com/glicht/npm-get-version/compare/v1.0.1...v1.0.2) (2021-09-08)
714

815

916
### Features
1017

1118
* added readme status badges ([5c25d8d](https://github.com/glicht/npm-get-version/commit/5c25d8d))
1219

20+
* Add Travis ci and coveralls integration ([dd6b023](https://github.com/glicht/npm-get-version/commit/dd6b023))
1321

22+
* update README description ([1e59cee](https://github.com/glicht/npm-get-version/commit/1e59cee))
23+
* Dropzone, FileItem components released
1424

1525
<a name="1.0.1"></a>
16-
## [1.0.1](https://github.com/glicht/npm-get-version/compare/v1.0.0...v1.0.1) (2018-06-02)
26+
## [1.0.1](https://github.com/glicht/npm-get-version/compare/v1.0.0...v1.0.1) (2021-08-28)
1727

1828

1929
### Features
@@ -23,29 +33,5 @@ All notable changes to this project will be documented in this file. See [standa
2333

2434

2535
<a name="1.0.0"></a>
26-
# [1.0.0](https://github.com/glicht/npm-get-version/compare/v0.1.2...v1.0.0) (2018-06-02)
27-
28-
29-
30-
<a name="0.1.2"></a>
31-
## [0.1.2](https://github.com/glicht/npm-get-version/compare/v0.1.1...v0.1.2) (2018-06-02)
32-
33-
34-
### Features
35-
36-
* travis ci and coveralls integration ([dd6b023](https://github.com/glicht/npm-get-version/commit/dd6b023))
37-
38-
39-
40-
<a name="0.1.1"></a>
41-
## [0.1.1](https://github.com/glicht/npm-get-version/compare/v0.1.0...v0.1.1) (2018-06-02)
42-
43-
44-
### Features
45-
46-
* update README description ([1e59cee](https://github.com/glicht/npm-get-version/commit/1e59cee))
47-
48-
36+
# [1.0.0](https://github.com/glicht/npm-get-version/compare/v0.1.2...v1.0.0) (2021-08-28)
4937

50-
<a name="0.1.0"></a>
51-
# 0.1.0 (2018-05-23)

README.md

Lines changed: 83 additions & 47 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
22
import "./Dropzone.scss";
33
import { DropzoneProps } from "./DropzoneProps";
4-
declare const DropzoneUI: React.FC<DropzoneProps>;
5-
export default DropzoneUI;
4+
declare const Dropzone: React.FC<DropzoneProps>;
5+
export default Dropzone;

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

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { OverridableProps } from "@unlimited-react-components/kernel";
2-
import { FileListProps } from "../../../file-item/components/FileList/FileListProps";
2+
import { FileItemContainerProps } from "../../../file-item/components/FileItemContainer/FileItemContainerProps";
3+
import { FileValidated } from "../utils/validation.utils";
34
export interface DropzoneProps extends OverridableProps {
45
/**
56
* What to do when Drop event is triggered
@@ -78,7 +79,6 @@ export interface DropzoneProps extends OverridableProps {
7879
/**
7980
* The current number of valid files
8081
*/
81-
numberOfValidFiles?: number;
8282
/**
8383
* If present will make change view visible
8484
* and also return the selected view mode
@@ -87,7 +87,7 @@ export interface DropzoneProps extends OverridableProps {
8787
/**
8888
* The current view
8989
*/
90-
view?: FileListProps["view"];
90+
view?: FileItemContainerProps["view"];
9191
/**
9292
* The max height of the container
9393
* in string format
@@ -108,5 +108,36 @@ export interface DropzoneProps extends OverridableProps {
108108
* if true, shows the dropzone footer
109109
*/
110110
header?: boolean;
111+
/**
112+
* Just like any other input component
113+
* the value prop is the current value
114+
*/
115+
value?: FileValidated[];
116+
/**
117+
* In both cases of uploading (onDropUpload, or with clicking upload button)
118+
* This event is the result one by one of the uploading process
119+
*/
120+
onUploading?: (files: FileValidated[]) => void;
121+
/**
122+
* A message to show in the footer when the uploading process happens
123+
*/
124+
uploadingMessage?: string;
125+
/**
126+
* The onChange Event occurs when the value is changed
127+
*/
128+
onChange?: (files: FileValidated[]) => void;
129+
/**
130+
* The behaviuor on drop files
131+
*/
132+
behaviour?: "add" | "replace";
133+
/**
134+
* Label to place when no files selected
135+
*/
136+
label?: string;
137+
/**
138+
* Use this prop only in development mode
139+
* This will make dropzone to simulate a server upload
140+
*/
141+
fakeUploading?: boolean;
111142
}
112143
export declare const DropzonePropsDefault: DropzoneProps;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export interface DropzoneFooterProps {
22
accept?: string;
3+
message?: string;
34
}
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import { FC } from "react";
2-
import { FileListProps } from "../../../file-item/components/FileList/FileListProps";
2+
import { FileItemContainerProps } from "../../../file-item/components/FileItemContainer/FileItemContainerProps";
33
export interface DropzoneHeaderProps {
4-
maxFileSize: number | undefined;
5-
numberOfValidFiles: number | undefined;
6-
maxFiles: number | undefined;
7-
onReset: Function | undefined;
4+
maxFileSize?: number;
5+
numberOfValidFiles?: number;
6+
maxFiles?: number;
7+
onReset?: Function;
88
handleReset: Function;
9-
view: FileListProps["view"];
10-
onChangeView: Function | undefined;
9+
view: FileItemContainerProps["view"];
10+
onChangeView?: Function;
11+
onUploadStart?: Function;
12+
urlPresent?: boolean;
1113
}
1214
declare const DropzoneHeader: FC<DropzoneHeaderProps>;
1315
export default DropzoneHeader;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { FC } from "react";
2+
import { DropzoneUIProps } from "./DropzoneUIProps";
3+
declare const DropzoneUI: FC<DropzoneUIProps>;
4+
export default DropzoneUI;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { FileItemProps } from "../../../file-item/components/FileItem/FileItemProps";
2+
import { FileItemContainerProps } from "../../../file-item/components/FileItemContainer/FileItemContainerProps";
3+
import { DropzoneProps } from "../Dropzone/DropzoneProps";
4+
export interface DropzoneUIProps extends DropzoneProps, FileItemProps, FileItemContainerProps {
5+
}

0 commit comments

Comments
 (0)