react-ui-basics 0.0.243 → 0.0.244

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ui-basics",
3
- "version": "0.0.243",
3
+ "version": "0.0.244",
4
4
  "description": "",
5
5
  "module": "index.js",
6
6
  "_main": "index.cjs.js",
@@ -11,7 +11,7 @@ export interface CircleProgressProps{
11
11
  value: number
12
12
  }
13
13
 
14
- const CircleProgress = ({value}: CircleProgressProps) => {
14
+ const CircleProgress = ({value = 0}: CircleProgressProps) => {
15
15
  return (
16
16
  <div className="CircleProgress">
17
17
  <svg viewBox="0 0 24 24">
@@ -22,8 +22,4 @@ const CircleProgress = ({value}: CircleProgressProps) => {
22
22
  );
23
23
  };
24
24
 
25
- CircleProgress.defaultProps = {
26
- value: 0,
27
- };
28
-
29
25
  export default CircleProgress;
@@ -14,7 +14,7 @@ export interface DropFileInputProps {
14
14
  accept?: string,
15
15
  }
16
16
 
17
- const DropFileInput = ({icon, label, onDrop, droppable, multiple, accept}: DropFileInputProps) => (
17
+ const DropFileInput = ({icon = 'cloud_upload', label, onDrop, droppable = false, multiple = true, accept}: DropFileInputProps) => (
18
18
  <section className="DropFileInput">
19
19
  <Dropzone droppable={droppable} onDrop={onDrop} accept={accept} multiple={multiple}>
20
20
  <MaterialIcon className={classNames(`icon`, label && 'withText')} icon={icon}/>
@@ -23,10 +23,4 @@ const DropFileInput = ({icon, label, onDrop, droppable, multiple, accept}: DropF
23
23
  </section>
24
24
  );
25
25
 
26
- DropFileInput.defaultProps = {
27
- icon: 'cloud_upload',
28
- droppable: false,
29
- multiple: true,
30
- };
31
-
32
26
  export default DropFileInput;
@@ -13,16 +13,10 @@ export interface FloatingActionButtonProps {
13
13
  onClick: MouseEventHandler
14
14
  }
15
15
 
16
- const FloatingActionButton = ({icon, onClick, mini, className, hidden}: FloatingActionButtonProps) => {
16
+ const FloatingActionButton = ({icon = 'add', onClick, mini, className, hidden}: FloatingActionButtonProps) => {
17
17
  return <Button onClick={onClick} round={true} className={classNames("FloatingActionButton", className, mini && 'mini', hidden && 'hidden')}>
18
18
  <MaterialIcon icon={icon}/>
19
19
  </Button>;
20
20
  };
21
21
 
22
- FloatingActionButton.defaultProps = {
23
- icon: 'add',
24
- mini: false,
25
- hidden: false,
26
- };
27
-
28
22
  export default FloatingActionButton;
@@ -34,11 +34,11 @@ export interface FormUploadProgressProps {
34
34
  }
35
35
 
36
36
  const FormUploadProgress = ({
37
- value,
37
+ value = 0,
38
38
  cancel,
39
39
  loaded,
40
40
  total,
41
- formatValue,
41
+ formatValue = defaultValueFormat,
42
42
  processingLabel,
43
43
  cancelLabel,
44
44
  }: FormUploadProgressProps) => {
@@ -64,9 +64,4 @@ const FormUploadProgress = ({
64
64
  );
65
65
  };
66
66
 
67
- FormUploadProgress.defaultProps = {
68
- value: 0,
69
- formatValue: defaultValueFormat,
70
- };
71
-
72
67
  export default FormUploadProgress;