Skip to content

Commit 8803224

Browse files
committed
[REF]: Improve README and release new components: InputButon and FileItemContainer
1 parent 1cb3a80 commit 8803224

16 files changed

Lines changed: 249 additions & 6611 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ All notable changes to this project will be documented in this file. See [standa
1212

1313
<a name="1.1.84"></a>
1414

15-
## [1.1.56](https://github.com/glicht/npm-get-version/compare/v1.0.1...v1.0.2) (2021-09-12)
15+
## [1.1.84](https://github.com/glicht/npm-get-version/compare/v1.0.1...v1.0.2) (2021-09-12)
1616

1717
### Features
1818

1919
- Release Input File Button
20-
- Release Dropzone Label
20+
- Release FileItemContainer Compnent
21+
- Improve API doc for all components (now arranged alphabetically)
2122

2223

2324

@@ -36,20 +37,20 @@ All notable changes to this project will be documented in this file. See [standa
3637

3738
### Features
3839

39-
- added readme status badges ([5c25d8d](https://github.com/glicht/npm-get-version/commit/5c25d8d))
40+
- added readme status badges
4041

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

43-
- update README description ([1e59cee](https://github.com/glicht/npm-get-version/commit/1e59cee))
44-
- Dropzone, FileItem components released
44+
- update README description
45+
- Dropzone, FileItem and FullScreenImage components released
4546

4647
<a name="1.0.1"></a>
4748

4849
## [1.0.1](https://github.com/glicht/npm-get-version/compare/v1.0.0...v1.0.1) (2021-08-28)
4950

5051
### Features
5152

52-
- README improvements ([37d57cc](https://github.com/glicht/npm-get-version/commit/37d57cc))
53+
- README improvements
5354

5455
<a name="1.0.0"></a>
5556

README.md

Lines changed: 71 additions & 41 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export interface DropzoneProps extends OverridableProps {
7575
* must be a function that recieves as first parameter a File Object
7676
* and must return a boolean value
7777
*/
78-
validator?: any;
78+
validator?: (f: File) => boolean;
7979
/**
8080
* The current number of valid files
8181
*/
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
import { OverridableProps } from "@unlimited-react-components/kernel";
22
export interface FileItemContainerProps extends OverridableProps {
3+
/**
4+
* `grid` will display files in a grid layout. `list` will display
5+
* files in a horizontal list.
6+
* Convenient for saving space in page.
7+
*/
38
view?: "grid" | "list";
49
}

build/components/input-button/InputButtonProps.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
import { MaterialButtonProps } from "@unlimited-react-components/material-button";
22
export interface InputButtonProps extends MaterialButtonProps {
3+
/**
4+
* the id of the component
5+
*/
36
id?: string;
47
/**
58
* whether to accept multiple files or not
69
*/
710
multiple?: boolean;
811
/**
9-
* the list of mimetypes and extensions of files to accept
12+
* The list of mimetypes and extensions of files
13+
* to accept. This is a comma separated list of
14+
* mime types or file extensions.
15+
* Eg.: image/\*,application/pdf,.psd
1016
*/
1117
accept?: string;
1218
/**
1319
* If given, this label will be shwed inside the button
1420
*/
1521
label?: string;
1622
/**
17-
* what to do after selecting the files
18-
* tipically returns the File[] to the parent component
23+
* what to do after selecting the files. Returns the File[] to the parent component
1924
*/
2025
onChange?: Function;
2126
/**
2227
* custom validator
2328
* must be a function that recieves as first parameter a File Object
2429
* and must return a boolean value
2530
*/
26-
validator?: any;
31+
validator?: (f: File) => boolean;
2732
/**
2833
* Max number of files to be accepted.
2934
*/
30-
maxFiles?: number;
3135
/**
3236
* max file size allowed in bytes
3337
*/
3438
maxFileSize?: number;
35-
/**
36-
* If true, the dropzone component itself will be clickable
37-
*/
38-
uploadOnSelect?: boolean;
3939
}
4040
/**
4141
* The default props when not given

0 commit comments

Comments
 (0)