react-ui-basics 0.0.242 → 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.
@@ -3,10 +3,5 @@ import './CircleProgress.css';
3
3
  export interface CircleProgressProps {
4
4
  value: number;
5
5
  }
6
- declare const CircleProgress: {
7
- ({ value }: CircleProgressProps): JSX.Element;
8
- defaultProps: {
9
- value: number;
10
- };
11
- };
6
+ declare const CircleProgress: ({ value }: CircleProgressProps) => JSX.Element;
12
7
  export default CircleProgress;
package/CircleProgress.js CHANGED
@@ -3,12 +3,9 @@ import ReactConstants from "./ReactConstants"; import {clientHeight as __clientH
3
3
  const radius = 8.75;
4
4
  const length = 2 * Math.PI * radius;
5
5
  const dashoffset = (percent) => length * (100 - percent) / 100;
6
- const CircleProgress = ({ value }) => {
6
+ const CircleProgress = ({ value = 0 }) => {
7
7
  return (jsxRuntime_2("div", __extends({ [ReactConstants[5]]: "CircleProgress" }, { [ReactConstants[4]]: jsxRuntime_2("svg", __extends({ viewBox: "0 0 24 24" }, { [ReactConstants[4]]: jsxRuntime_2("path", { [ReactConstants[5]]: "line", style: { strokeDashoffset: dashoffset(Number.isFinite(value) ? value : 0), strokeDasharray: length }, d: "M12 3.25A8.75 8.75 0 1 1 3.25 12 A 8.75,8.75 0 0 1 12,3.25" }) })) })));
8
8
  };
9
- CircleProgress.defaultProps = {
10
- value: 0,
11
- };
12
9
 
13
10
  export { CircleProgress as default };
14
11
  //# sourceMappingURL=CircleProgress.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CircleProgress.js","sources":["./src/CircleProgress.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;AAIA,MAAM,MAAM,GAAG,IAAI,CAAC;AACpB,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC;AAEpC,MAAM,UAAU,GAAG,CAAC,OAAO,KAAK,MAAM,IAAI,GAAG,GAAG,OAAO,CAAC,GAAG,G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,KAAK,GAAG,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,EAAC,EACnH,CAAC,EAAC,4DAA4D,EAAE,CAAA,EAAA,CAAA,CACpE,EACJ,CAAA,CAAA,EACR;AACN;;;;"}
@@ -9,12 +9,5 @@ export interface DropFileInputProps {
9
9
  multiple?: boolean;
10
10
  accept?: string;
11
11
  }
12
- declare const DropFileInput: {
13
- ({ icon, label, onDrop, droppable, multiple, accept }: DropFileInputProps): JSX.Element;
14
- defaultProps: {
15
- icon: string;
16
- droppable: boolean;
17
- multiple: boolean;
18
- };
19
- };
12
+ declare const DropFileInput: ({ icon, label, onDrop, droppable, multiple, accept }: DropFileInputProps) => JSX.Element;
20
13
  export default DropFileInput;
package/DropFileInput.js CHANGED
@@ -3,12 +3,7 @@ import Dropzone from './Dropzone.js';
3
3
  import { classNames } from './Tools.js';
4
4
  import MaterialIcon from './MaterialIcon.js';
5
5
 
6
- const DropFileInput = ({ icon, label, onDrop, droppable, multiple, accept }) => (jsxRuntime_2("section", __extends({ [ReactConstants[5]]: "DropFileInput" }, { [ReactConstants[4]]: jsxRuntime_1(Dropzone, __extends({ droppable: droppable, onDrop: onDrop, accept: accept, multiple: multiple }, { [ReactConstants[4]]: [jsxRuntime_2(MaterialIcon, { [ReactConstants[5]]: classNames(`icon`, label && 'withText'), icon: icon }), label && jsxRuntime_2("div", { [ReactConstants[4]]: label })] })) })));
7
- DropFileInput.defaultProps = {
8
- icon: 'cloud_upload',
9
- droppable: false,
10
- multiple: true,
11
- };
6
+ const DropFileInput = ({ icon = 'cloud_upload', label, onDrop, droppable = false, multiple = true, accept }) => (jsxRuntime_2("section", __extends({ [ReactConstants[5]]: "DropFileInput" }, { [ReactConstants[4]]: jsxRuntime_1(Dropzone, __extends({ droppable: droppable, onDrop: onDrop, accept: accept, multiple: multiple }, { [ReactConstants[4]]: [jsxRuntime_2(MaterialIcon, { [ReactConstants[5]]: classNames(`icon`, label && 'withText'), icon: icon }), label && jsxRuntime_2("div", { [ReactConstants[4]]: label })] })) })));
12
7
 
13
8
  export { DropFileInput as default };
14
9
  //# sourceMappingURL=DropFileInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropFileInput.js","sources":["./src/DropFileInput.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;AAgBA,MAAM,aAAa,GAAG,CAAC,EAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAqB,MACzFA,YAAS,CAAA,SAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,SAAS,EAAC,eAAe,EAAA,EAAA,EAAA,QAAA,EAC9BC,YAAC,CAAA,QAAQ,kBAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAA,EAAA,EAAA,QAAA,EAAA,CAC9ED,YAAC,CAAA,YAAY,IAAC,SAAS,EAAE,UAAU,CAAC,MAAM,EAAE,KAAK,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAG,CAAA,EAC9E,KAAK,IAAIA,gCAAM,KAAK,EAAA,CAAO,CACrB,EAAA,CAAA,CAAA,EAAA,CAAA,CACL,EACZ;AAEF,aAAa,CAAC,YAAY,GAAG;AACzB,IAAA,IAAI,EAAE,cAAc;AACpB,IAAA,SAAS,EAAE,KAAK;AAChB,IAAA,QAAQ,EAAE,IAAI;CACjB;;;;"}
1
+ {"version":3,"file":"DropFileInput.js","sources":["./src/DropFileInput.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;AAgBA,MAAM,aAAa,GAAG,CAAC,EAAC,IAAI,GAAG,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,GAAG,KAAK,EAAE,QAAQ,GAAG,IAAI,EAAE,MAAM,EAAqB,MACzHA,YAAS,CAAA,SAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,SAAS,EAAC,eAAe,gBAC9BC,YAAC,CAAA,QAAQ,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAA,EAAA,EAAA,QAAA,EAAA,CAC9ED,aAAC,YAAY,EAAA,EAAC,SAAS,EAAE,UAAU,CAAC,CAAA,IAAA,CAAM,EAAE,KAAK,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAA,CAAG,EAC9E,KAAK,IAAIA,YAAM,CAAA,KAAA,EAAA,EAAA,QAAA,EAAA,KAAK,GAAO,CACrB,EAAA,CAAA,CAAA,EAAA,CAAA,CACL;;;;"}
@@ -8,12 +8,5 @@ export interface FloatingActionButtonProps {
8
8
  className?: string;
9
9
  onClick: MouseEventHandler;
10
10
  }
11
- declare const FloatingActionButton: {
12
- ({ icon, onClick, mini, className, hidden }: FloatingActionButtonProps): JSX.Element;
13
- defaultProps: {
14
- icon: string;
15
- mini: boolean;
16
- hidden: boolean;
17
- };
18
- };
11
+ declare const FloatingActionButton: ({ icon, onClick, mini, className, hidden }: FloatingActionButtonProps) => JSX.Element;
19
12
  export default FloatingActionButton;
@@ -3,14 +3,9 @@ import Button from './Button.js';
3
3
  import { classNames } from './Tools.js';
4
4
  import MaterialIcon from './MaterialIcon.js';
5
5
 
6
- const FloatingActionButton = ({ icon, onClick, mini, className, hidden }) => {
6
+ const FloatingActionButton = ({ icon = 'add', onClick, mini, className, hidden }) => {
7
7
  return jsxRuntime_2(Button, __extends({ [ReactConstants[6]]: onClick, round: true, [ReactConstants[5]]: classNames("FloatingActionButton", className, mini && 'mini', hidden && 'hidden') }, { [ReactConstants[4]]: jsxRuntime_2(MaterialIcon, { icon: icon }) }));
8
8
  };
9
- FloatingActionButton.defaultProps = {
10
- icon: 'add',
11
- mini: false,
12
- hidden: false,
13
- };
14
9
 
15
10
  export { FloatingActionButton as default };
16
11
  //# sourceMappingURL=FloatingActionButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FloatingActionButton.js","sources":["./src/FloatingActionButton.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;AAeA,MAAM,oBAAoB,GAAG,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAA4B,KAAI;AACjG,IAAA,OAAOA,aAAC,MAAM,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,CAAC,sBAAsB,EAAE,SAAS,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,IAAI,QAAQ,CAAC,EAAA,EAAA,EAAA,QAAA,EACtIA,YAAC,CAAA,YAAY,IAAC,IAAI,EAAE,IAAI,EAAA,CAAG,IACtB,CAAC;AACd,EAAE;AAEF,oBAAoB,CAAC,YAAY,GAAG;AAChC,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,MAAM,EAAE,KAAK;CAChB;;;;"}
1
+ {"version":3,"file":"FloatingActionButton.js","sources":["./src/FloatingActionButton.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;AAeA,MAAM,oBAAoB,GAAG,CAAC,EAAC,IAAI,GAAG,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAA4B,KAAI;AACzG,IAAA,OAAOA,aAAC,MAAM,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,CAAC,sBAAsB,EAAE,SAAS,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,IAAI,QAAQ,CAAC,EAAA,EAAA,EAAA,QAAA,EACtIA,YAAC,CAAA,YAAY,IAAC,IAAI,EAAE,IAAI,EAAA,CAAG,IACtB,CAAC;AACd;;;;"}
@@ -9,11 +9,5 @@ export interface FormUploadProgressProps {
9
9
  cancelLabel?: ReactNode;
10
10
  cancel?: () => void;
11
11
  }
12
- declare const FormUploadProgress: {
13
- ({ value, cancel, loaded, total, formatValue, processingLabel, cancelLabel, }: FormUploadProgressProps): JSX.Element;
14
- defaultProps: {
15
- value: number;
16
- formatValue: (value: number, loaded: number, total: number) => string | JSX.Element;
17
- };
18
- };
12
+ declare const FormUploadProgress: ({ value, cancel, loaded, total, formatValue, processingLabel, cancelLabel, }: FormUploadProgressProps) => JSX.Element;
19
13
  export default FormUploadProgress;
@@ -12,16 +12,12 @@ const defaultValueFormat = (value, loaded, total) => {
12
12
  const abbreviation = formatAbbreviation(total);
13
13
  return jsxRuntime_1(jsxRuntime_3, { [ReactConstants[4]]: [formatNumberWithMaxLength(loaded, 1, abbreviation, 4), "/", formatNumberWithMaxLength(total, 1, abbreviation, 4), jsxRuntime_2("br", {}), abbreviation] });
14
14
  };
15
- const FormUploadProgress = ({ value, cancel, loaded, total, formatValue, processingLabel, cancelLabel, }) => {
15
+ const FormUploadProgress = ({ value = 0, cancel, loaded, total, formatValue = defaultValueFormat, processingLabel, cancelLabel, }) => {
16
16
  return (jsxRuntime_2(Animated, __extends({ value: total > 0 }, { [ReactConstants[4]]: jsxRuntime_2("div", __extends({ [ReactConstants[5]]: "FormUploadProgress" }, { [ReactConstants[4]]: jsxRuntime_1("div", __extends({ [ReactConstants[5]]: "wrapper" }, { [ReactConstants[4]]: [jsxRuntime_1("div", __extends({ [ReactConstants[5]]: "progress" }, { [ReactConstants[4]]: [loaded === total && jsxRuntime_2(SpinningProgress, {}), loaded !== total && jsxRuntime_2(CircleProgress, { value: value }), jsxRuntime_2("div", __extends({ [ReactConstants[5]]: 'value' }, { [ReactConstants[4]]: formatValue(value, loaded, total) }))] })), cancel && jsxRuntime_1(Button, __extends({ [ReactConstants[5]]: "cancel", disabled: loaded === total, [ReactConstants[6]]: e => {
17
17
  preventDefault(e);
18
18
  cancel();
19
19
  } }, { [ReactConstants[4]]: [loaded === total && processingLabel, loaded !== total && cancelLabel] }))] })) })) })));
20
20
  };
21
- FormUploadProgress.defaultProps = {
22
- value: 0,
23
- formatValue: defaultValueFormat,
24
- };
25
21
 
26
22
  export { FormUploadProgress as default };
27
23
  //# sourceMappingURL=FormUploadProgress.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormUploadProgress.js","sources":["./src/FormUploadProgress.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;AAWA,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAE,MAAc,EAAE,KAAa,KAAI;IACxE,IAAI,KAAK,IAAI,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;AAEhE,IAAA,MAAM,YAAY,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC/C,OAAOA,YAAA,CAAAC,YAAA,EAAA,EAAA,QAAA,EAAA,CACF,yBAAyB,CAAC,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,EAErD,GAAA,EAAA,yBAAyB,CAAC,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,EACrDC,YAAK,CAAA,IAAA,EAAA,EAAA,CAAA,EACJ,YAAY,CAAA,EAAA,CACd,CAAA;AACP,CAAC,CAAC;AAYF,MAAM,kBAAkB,GAAG,CAAC,EACI,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,WAAW,EACX,eAAe,EACf,WAAW,GACW,KAAI;AACtD,IAAA,QACIA,YAAC,CAAA,QAAQ,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,KAAK,GAAG,CAAC,EAAA,EAAA,EAAA,QAAA,EACtBA,oCAAK,SAAS,EAAC,oBAAoB,EAC/B,EAAA,EAAA,QAAA,EAAAF,YAAA,CAAA,KAAA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AA,EAAA,SAAS,EAAE,OAAO,EAAA,EAAA,EAAA,QAAA,EAAG,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,IAAO,CAChE,EAAA,CAAA,CAAA,EACL,MAAM,IAAIF,aAAC,MAAM,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,KAAK,KAAK,EAAE,OAAO,EAAE,CAAC,IAAG;4BAC7E,cAAc,CAAC,CAAC,CAAC,CAAC;AAClB,4BAAA,MAAM,EAAE,CAAC;AACb,yBAAC,iBACI,MAAM,KAAK,KAAK,IAAI,eAAe,EACnC,MAAM,KAAK,KAAK,IAAI,WAAW,CAAA,EAAA,CAAA,CAC3B,KACP,EACJ,CAAA,CAAA,EAAA,CAAA,CACC,EACb;AACN;;;;"}
package/Modal.js CHANGED
@@ -34,10 +34,11 @@ class Modal extends AbstractModal {
34
34
  const content = createRef();
35
35
  const props = propsGetter(that);
36
36
  const beforeClose = (e) => {
37
- stopPropagation(e);
38
37
  const bc = getBeforeClose() || props().beforeClose;
39
- if (!bc || bc(that.close, e))
38
+ if (!bc || bc(that.close, e)) {
39
+ stopPropagation(e);
40
40
  that.close();
41
+ }
41
42
  };
42
43
  const shouldClose = (e) => {
43
44
  const isSameModal = __style(el()).zIndex == (zIndex - 1) + '';
package/Modal.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","sources":["./src/Modal.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AASA,IAAI,WAAW,CAAC;AAChB,IAAI,MAAM,GAAG,GAAG,CAAC;AAEjB,MAAM,UAAU,GAAG,SAAS,CAAC;AAC7B,MAAM,YAAY,GAAG,CAAC,KAAK,KAAI;AAC3B,IAAA,mBAAmB,CAAC,QAAQ,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC;AACvD,IAAA,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC;IA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,CAAC;KACL;;AApHM,KAAgB,CAAA,gBAAA,GAAG,SAAS,CAAA;AAC5B,KAAY,CAAA,YAAA,GAAG,YAAY,CAAA;AAC3B,KAAW,CAAA,WAAA,GAAG,WAAW,CAAA;AAEzB,KAAA,CAAA,YAAY,GAAG;AAClB,IAAA,SAAS,EAAEA,YAAC,CAAA,YAAY,IAAC,IAAI,EAAC,OAAO,EAAE,CAAA;CAC1C;;;;"}
package/bundle.css CHANGED
@@ -302,6 +302,24 @@
302
302
  position: absolute;
303
303
  }
304
304
 
305
+ .DNDContainer .DroppableList .Draggable {
306
+ transform: unset;
307
+ transition: unset;
308
+ opacity: 1;
309
+ }
310
+
311
+ .DNDContainer .DroppableList .Draggable.dragged {
312
+ transition: unset !important;
313
+ }
314
+
315
+ .DNDContainer .DroppableList.hover .Draggable {
316
+ transition: transform 0.2s ease-in;
317
+ }
318
+
319
+ .DNDContainer .DroppableList.resetting .Draggable {
320
+ transition: transform 0.1s ease-in;
321
+ }
322
+
305
323
  .ImageGallery {
306
324
  position: fixed;
307
325
  top: 0;
@@ -537,91 +555,6 @@
537
555
  font-size: 24px;
538
556
  }
539
557
 
540
- .DNDContainer .DroppableList .Draggable {
541
- transform: unset;
542
- transition: unset;
543
- opacity: 1;
544
- }
545
-
546
- .DNDContainer .DroppableList .Draggable.dragged {
547
- transition: unset !important;
548
- }
549
-
550
- .DNDContainer .DroppableList.hover .Draggable {
551
- transition: transform 0.2s ease-in;
552
- }
553
-
554
- .DNDContainer .DroppableList.resetting .Draggable {
555
- transition: transform 0.1s ease-in;
556
- }
557
-
558
- .Checkbox {
559
- position: relative;
560
- white-space: pre;
561
- }
562
-
563
- .Checkbox *, .Checkbox *:before, .Checkbox *:after {
564
- box-sizing: border-box;
565
- }
566
-
567
- .Checkbox label {
568
- font-family: Roboto, sans-serif;
569
- font-size: 14px;
570
- color: #1e252d;
571
- cursor: pointer;
572
- }
573
-
574
- .Checkbox label:before, .Checkbox label:after {
575
- content: "";
576
- position: absolute;
577
- left: 0;
578
- top: 0;
579
- }
580
-
581
- .Checkbox label:before {
582
- width: 20px;
583
- height: 20px;
584
- background: #fff;
585
- border: 2px solid #252525;
586
- border-radius: 2px;
587
- cursor: pointer;
588
- transition: background 0.3s;
589
- }
590
-
591
- .Checkbox input[type=checkbox] {
592
- outline: 0;
593
- margin-right: 10px;
594
- visibility: hidden;
595
- }
596
-
597
- .Checkbox input[type=checkbox]:checked + label:before {
598
- background: #4AC263;
599
- border: none;
600
- }
601
-
602
- .Checkbox input[type=checkbox]:checked + label:after {
603
- transform: rotate(-45deg);
604
- top: 6px;
605
- left: 4px;
606
- width: 12px;
607
- height: 6px;
608
- border: 2px solid #fff;
609
- border-top-style: none;
610
- border-right-style: none;
611
- }
612
-
613
- .Checkbox input[type=checkbox]:disabled + label {
614
- color: gray;
615
- }
616
-
617
- .Checkbox input[type=checkbox]:disabled + label:before {
618
- border-color: rgba(0, 0, 0, 0.26);
619
- }
620
-
621
- .Checkbox input[type=checkbox]:disabled:checked + label:before {
622
- background: rgba(0, 0, 0, 0.26);
623
- }
624
-
625
558
  .Button {
626
559
  position: relative;
627
560
  min-width: 64px;
@@ -788,29 +721,71 @@
788
721
  border: 0;
789
722
  }
790
723
 
791
- .CalendarMonthView {
792
- display: flex;
793
- flex-flow: column nowrap;
794
- height: 100%;
724
+ .Checkbox {
725
+ position: relative;
726
+ white-space: pre;
795
727
  }
796
728
 
797
- .CalendarMonthView > .row {
798
- display: flex;
799
- flex-flow: row nowrap;
729
+ .Checkbox *, .Checkbox *:before, .Checkbox *:after {
730
+ box-sizing: border-box;
800
731
  }
801
732
 
802
- .CalendarMonthView .days {
803
- flex-grow: 1;
804
- position: relative;
733
+ .Checkbox label {
734
+ font-family: Roboto, sans-serif;
735
+ font-size: 14px;
736
+ color: #1e252d;
737
+ cursor: pointer;
805
738
  }
806
739
 
807
- .CalendarMonthView .day, .CalendarMonthView .header {
808
- flex-grow: 1;
809
- flex-basis: 1px;
740
+ .Checkbox label:before, .Checkbox label:after {
741
+ content: "";
742
+ position: absolute;
743
+ left: 0;
744
+ top: 0;
810
745
  }
811
746
 
812
- .CalendarMonthView .day {
813
- height: 100%;
747
+ .Checkbox label:before {
748
+ width: 20px;
749
+ height: 20px;
750
+ background: #fff;
751
+ border: 2px solid #252525;
752
+ border-radius: 2px;
753
+ cursor: pointer;
754
+ transition: background 0.3s;
755
+ }
756
+
757
+ .Checkbox input[type=checkbox] {
758
+ outline: 0;
759
+ margin-right: 10px;
760
+ visibility: hidden;
761
+ }
762
+
763
+ .Checkbox input[type=checkbox]:checked + label:before {
764
+ background: #4AC263;
765
+ border: none;
766
+ }
767
+
768
+ .Checkbox input[type=checkbox]:checked + label:after {
769
+ transform: rotate(-45deg);
770
+ top: 6px;
771
+ left: 4px;
772
+ width: 12px;
773
+ height: 6px;
774
+ border: 2px solid #fff;
775
+ border-top-style: none;
776
+ border-right-style: none;
777
+ }
778
+
779
+ .Checkbox input[type=checkbox]:disabled + label {
780
+ color: gray;
781
+ }
782
+
783
+ .Checkbox input[type=checkbox]:disabled + label:before {
784
+ border-color: rgba(0, 0, 0, 0.26);
785
+ }
786
+
787
+ .Checkbox input[type=checkbox]:disabled:checked + label:before {
788
+ background: rgba(0, 0, 0, 0.26);
814
789
  }
815
790
 
816
791
  .DatePicker {
@@ -930,17 +905,29 @@
930
905
  background-color: #51adf6;
931
906
  }
932
907
 
933
- .CircleProgress {
934
- width: 48px;
935
- height: 48px;
908
+ .CalendarMonthView {
909
+ display: flex;
910
+ flex-flow: column nowrap;
911
+ height: 100%;
936
912
  }
937
913
 
938
- .CircleProgress .line {
939
- stroke-width: 2px;
940
- stroke: black;
941
- stroke-linecap: square;
942
- fill: none;
943
- transition: stroke-dashoffset 0.2s ease;
914
+ .CalendarMonthView > .row {
915
+ display: flex;
916
+ flex-flow: row nowrap;
917
+ }
918
+
919
+ .CalendarMonthView .days {
920
+ flex-grow: 1;
921
+ position: relative;
922
+ }
923
+
924
+ .CalendarMonthView .day, .CalendarMonthView .header {
925
+ flex-grow: 1;
926
+ flex-basis: 1px;
927
+ }
928
+
929
+ .CalendarMonthView .day {
930
+ height: 100%;
944
931
  }
945
932
 
946
933
  .DialogModal {
@@ -985,6 +972,30 @@
985
972
  margin-bottom: 0;
986
973
  }
987
974
 
975
+ .Button.FloatingActionButton {
976
+ position: absolute;
977
+ right: 16px;
978
+ bottom: 16px;
979
+ width: 56px;
980
+ height: 56px;
981
+ padding: 16px;
982
+ transition: bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1);
983
+ }
984
+
985
+ .Button.FloatingActionButton.raised {
986
+ transition: bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease-out, background-color 0.2s ease-out, box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
987
+ }
988
+
989
+ .Button.FloatingActionButton.mini {
990
+ width: 40px;
991
+ height: 40px;
992
+ padding: 8px;
993
+ }
994
+
995
+ .Button.FloatingActionButton.hidden {
996
+ bottom: -100px;
997
+ }
998
+
988
999
  .DNDContainer {
989
1000
  position: relative;
990
1001
  }
@@ -1017,64 +1028,31 @@
1017
1028
  pointer-events: none;
1018
1029
  }
1019
1030
 
1020
- .Dropzone {
1021
- position: relative;
1031
+ .DropFileInput {
1032
+ flex-grow: 1;
1022
1033
  }
1023
1034
 
1024
- .Dropzone > .overlay {
1025
- position: absolute;
1026
- left: 0;
1027
- right: 0;
1028
- top: 0;
1029
- bottom: 0;
1030
- background-color: #38ADC4;
1031
- z-index: 1;
1032
- opacity: 0;
1033
- transition: all 0.2s ease;
1034
- transition-delay: 100ms;
1035
- visibility: hidden;
1035
+ .DropFileInput .Dropzone {
1036
+ border: 1px dashed #808080;
1037
+ padding: 12px;
1036
1038
  display: flex;
1039
+ flex-flow: row nowrap;
1037
1040
  justify-content: center;
1038
1041
  align-items: center;
1042
+ color: gray;
1043
+ cursor: pointer;
1044
+ border-radius: 3px;
1045
+ font-weight: normal;
1046
+ line-height: 22px;
1047
+ font-size: 14px;
1048
+ color: #7E7E7E;
1049
+ max-width: 100%;
1050
+ word-break: break-all;
1051
+ word-break: break-word;
1039
1052
  }
1040
1053
 
1041
- .Dropzone > .overlay .drop {
1042
- border-radius: 4px;
1043
- border: 1px dashed #FFFFFF;
1044
- position: absolute;
1045
- top: 18px;
1046
- left: 18px;
1047
- right: 18px;
1048
- bottom: 18px;
1049
- display: flex;
1050
- justify-content: center;
1051
- align-items: center;
1052
- font-weight: 500;
1053
- font-size: 18px;
1054
- color: #FFFFFF;
1055
- }
1056
-
1057
- .Dropzone.dragging > .overlay {
1058
- opacity: 0.7;
1059
- visibility: visible;
1060
- transition-delay: 0s;
1061
- }
1062
-
1063
- .Dropzone.dragging > * {
1064
- pointer-events: none;
1065
- }
1066
-
1067
- .Dropzone > input.file {
1068
- position: absolute;
1069
- left: 0;
1070
- right: 0;
1071
- top: 0;
1072
- bottom: 0;
1073
- width: 100%;
1074
- height: 100%;
1075
- opacity: 0;
1076
- cursor: pointer;
1077
- z-index: 1;
1054
+ .DropFileInput .Dropzone .icon.withText {
1055
+ margin-right: 10px;
1078
1056
  }
1079
1057
 
1080
1058
  .FilteredList {
@@ -1230,30 +1208,239 @@
1230
1208
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
1231
1209
  }
1232
1210
 
1233
- .Button.FloatingActionButton {
1211
+ .CircleProgress {
1212
+ width: 48px;
1213
+ height: 48px;
1214
+ }
1215
+
1216
+ .CircleProgress .line {
1217
+ stroke-width: 2px;
1218
+ stroke: black;
1219
+ stroke-linecap: square;
1220
+ fill: none;
1221
+ transition: stroke-dashoffset 0.2s ease;
1222
+ }
1223
+
1224
+ .Modal {
1225
+ display: block;
1226
+ position: fixed;
1227
+ top: 0;
1228
+ left: 0;
1229
+ right: 0;
1230
+ bottom: 100%;
1231
+ overflow-y: scroll;
1232
+ transition: bottom 0ms linear;
1233
+ transition-delay: 0.2s;
1234
+ }
1235
+
1236
+ .Modal.show {
1237
+ transition-delay: 0s;
1238
+ bottom: 0;
1239
+ }
1240
+
1241
+ .Modal > .overlay {
1242
+ position: fixed;
1243
+ top: 0;
1244
+ bottom: 100%;
1245
+ left: 0;
1246
+ right: 0;
1247
+ transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
1248
+ opacity: 0;
1249
+ background-color: black;
1250
+ pointer-events: none;
1251
+ }
1252
+
1253
+ .Modal > .overlay.show {
1254
+ opacity: 0.5;
1255
+ bottom: 0;
1256
+ }
1257
+
1258
+ .Modal > .content {
1259
+ left: 50%;
1260
+ top: 10vh;
1261
+ margin-bottom: 10vh;
1262
+ font-size: 16px;
1263
+ padding: 0;
1264
+ opacity: 0;
1265
+ transition: opacity 0.25s ease, transform 0.25s ease;
1266
+ transform: scaleY(0) translateY(-200px) translateX(-50%);
1267
+ transform-origin: top;
1234
1268
  position: absolute;
1235
- right: 16px;
1236
- bottom: 16px;
1237
- width: 56px;
1238
- height: 56px;
1239
- padding: 16px;
1240
- transition: bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1);
1269
+ border-radius: 2px;
1270
+ box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
1241
1271
  }
1242
1272
 
1243
- .Button.FloatingActionButton.raised {
1244
- transition: bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease-out, background-color 0.2s ease-out, box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
1273
+ .Modal > .content.show {
1274
+ opacity: 1;
1275
+ transform: scaleY(1) translateY(0px) translateX(-50%);
1245
1276
  }
1246
1277
 
1247
- .Button.FloatingActionButton.mini {
1248
- width: 40px;
1249
- height: 40px;
1250
- padding: 8px;
1278
+ .Modal > .content > .Scrollable {
1279
+ overflow: visible;
1280
+ max-height: 80vh;
1251
1281
  }
1252
1282
 
1253
- .Button.FloatingActionButton.hidden {
1254
- bottom: -100px;
1283
+ .Modal > .content > .Scrollable > .viewport {
1284
+ min-width: 10px;
1285
+ min-height: 10px;
1286
+ }
1287
+
1288
+ .Modal > .content > .Button.close {
1289
+ top: 10px;
1290
+ right: 10px;
1291
+ position: absolute;
1292
+ }
1293
+
1294
+ .ModalMenu {
1295
+ position: absolute;
1296
+ top: 10px;
1297
+ right: 50px;
1298
+ }
1299
+
1300
+ .ModalMenu .material-icons {
1301
+ color: #818181;
1302
+ }
1303
+
1304
+ .ModalMenu .Button.animated {
1305
+ position: absolute;
1306
+ transition: opacity 150ms ease-in, right 200ms ease-in;
1307
+ opacity: 0;
1308
+ right: 0;
1309
+ top: 0;
1310
+ }
1311
+
1312
+ .ModalMenu .Button.animated.mounting, .ModalMenu .Button.animated.mounted {
1313
+ opacity: 1;
1314
+ }
1315
+
1316
+ .ModalMenu .Button.animated.unmounting {
1317
+ transition: opacity 100ms ease-out, right 200ms ease-out;
1318
+ }
1319
+
1320
+ .ModalMenu .Button.active {
1321
+ background: #EBEBEB;
1322
+ }
1323
+
1324
+ .ModalMenu .separator {
1325
+ height: 24px;
1326
+ width: 1px;
1327
+ background-color: #D9D9D9;
1328
+ margin-left: 4px;
1329
+ }
1330
+
1331
+ .Dropzone {
1332
+ position: relative;
1333
+ }
1334
+
1335
+ .Dropzone > .overlay {
1336
+ position: absolute;
1337
+ left: 0;
1338
+ right: 0;
1339
+ top: 0;
1340
+ bottom: 0;
1341
+ background-color: #38ADC4;
1342
+ z-index: 1;
1343
+ opacity: 0;
1344
+ transition: all 0.2s ease;
1345
+ transition-delay: 100ms;
1346
+ visibility: hidden;
1347
+ display: flex;
1348
+ justify-content: center;
1349
+ align-items: center;
1350
+ }
1351
+
1352
+ .Dropzone > .overlay .drop {
1353
+ border-radius: 4px;
1354
+ border: 1px dashed #FFFFFF;
1355
+ position: absolute;
1356
+ top: 18px;
1357
+ left: 18px;
1358
+ right: 18px;
1359
+ bottom: 18px;
1360
+ display: flex;
1361
+ justify-content: center;
1362
+ align-items: center;
1363
+ font-weight: 500;
1364
+ font-size: 18px;
1365
+ color: #FFFFFF;
1366
+ }
1367
+
1368
+ .Dropzone.dragging > .overlay {
1369
+ opacity: 0.7;
1370
+ visibility: visible;
1371
+ transition-delay: 0s;
1372
+ }
1373
+
1374
+ .Dropzone.dragging > * {
1375
+ pointer-events: none;
1376
+ }
1377
+
1378
+ .Dropzone > input.file {
1379
+ position: absolute;
1380
+ left: 0;
1381
+ right: 0;
1382
+ top: 0;
1383
+ bottom: 0;
1384
+ width: 100%;
1385
+ height: 100%;
1386
+ opacity: 0;
1387
+ cursor: pointer;
1388
+ z-index: 1;
1389
+ }
1390
+
1391
+ .SpinningProgress {
1392
+ width: 48px;
1393
+ height: 48px;
1394
+ position: relative;
1395
+ margin: 0 auto;
1396
+ }
1397
+
1398
+ .SpinningProgress:before {
1399
+ content: "";
1400
+ display: block;
1401
+ padding-top: 100%;
1402
+ }
1403
+
1404
+ .SpinningProgress .circular {
1405
+ animation: rotate 2s linear infinite;
1406
+ height: 100%;
1407
+ transform-origin: center center;
1408
+ width: 100%;
1409
+ position: absolute;
1410
+ top: 0;
1411
+ bottom: 0;
1412
+ left: 0;
1413
+ right: 0;
1414
+ margin: auto;
1415
+ }
1416
+
1417
+ .SpinningProgress .line {
1418
+ stroke: black;
1419
+ stroke-width: 2px;
1420
+ stroke-dasharray: 1, 96;
1421
+ stroke-dashoffset: 0;
1422
+ animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
1255
1423
  }
1256
1424
 
1425
+ @keyframes rotate {
1426
+ 100% {
1427
+ transform: rotate(360deg);
1428
+ }
1429
+ }
1430
+ @keyframes dash {
1431
+ 0% {
1432
+ stroke-dasharray: 1, 96;
1433
+ stroke-dashoffset: 0;
1434
+ }
1435
+ 50% {
1436
+ stroke-dasharray: 43, 96;
1437
+ stroke-dashoffset: -17px;
1438
+ }
1439
+ 100% {
1440
+ stroke-dasharray: 43, 96;
1441
+ stroke-dashoffset: -53px;
1442
+ }
1443
+ }
1257
1444
  .Snackbar {
1258
1445
  transform: translateX(-50%);
1259
1446
  overflow: hidden;
@@ -1299,86 +1486,88 @@
1299
1486
  color: #bf3727;
1300
1487
  }
1301
1488
 
1302
- .DropFileInput {
1303
- flex-grow: 1;
1489
+ .Switch {
1490
+ display: inline-flex;
1491
+ padding-top: 5px;
1304
1492
  }
1305
1493
 
1306
- .DropFileInput .Dropzone {
1307
- border: 1px dashed #808080;
1308
- padding: 12px;
1309
- display: flex;
1310
- flex-flow: row nowrap;
1311
- justify-content: center;
1494
+ .Switch .switch-input {
1495
+ display: none;
1496
+ }
1497
+
1498
+ .Switch .switch-label {
1499
+ position: relative;
1500
+ display: inline-flex;
1312
1501
  align-items: center;
1313
- color: gray;
1502
+ min-width: 38px;
1503
+ height: 24px;
1314
1504
  cursor: pointer;
1315
- border-radius: 3px;
1316
- font-weight: normal;
1317
- line-height: 22px;
1318
- font-size: 14px;
1319
- color: #7E7E7E;
1320
- max-width: 100%;
1321
- word-break: break-all;
1322
- word-break: break-word;
1505
+ font-weight: 500;
1506
+ text-align: left;
1507
+ user-select: none;
1508
+ margin: 0;
1509
+ padding: 0;
1510
+ padding-left: 44px;
1511
+ box-sizing: border-box;
1323
1512
  }
1324
1513
 
1325
- .DropFileInput .Dropzone .icon.withText {
1326
- margin-right: 10px;
1514
+ .Switch .switch-label:before, .Switch .switch-label:after {
1515
+ content: "";
1516
+ box-sizing: border-box;
1517
+ position: absolute;
1518
+ margin: 0;
1519
+ outline: 0;
1520
+ top: 50%;
1521
+ transform: translate(0, -50%);
1522
+ transition: all 0.3s ease;
1523
+ }
1524
+
1525
+ .Switch .switch-label:before {
1526
+ left: 1px;
1527
+ width: 34px;
1528
+ height: 14px;
1529
+ background-color: #9E9E9E;
1530
+ border-radius: 8px;
1531
+ }
1532
+
1533
+ .Switch .switch-label:after {
1534
+ left: 0;
1535
+ width: 20px;
1536
+ height: 20px;
1537
+ background-color: #FAFAFA;
1538
+ border-radius: 50%;
1539
+ box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);
1540
+ }
1541
+
1542
+ .Switch .switch-label .toggle--on {
1543
+ display: none;
1327
1544
  }
1328
1545
 
1329
- .SpinningProgress {
1330
- width: 48px;
1331
- height: 48px;
1332
- position: relative;
1333
- margin: 0 auto;
1546
+ .Switch .switch-label .toggle--off {
1547
+ display: inline-block;
1334
1548
  }
1335
1549
 
1336
- .SpinningProgress:before {
1337
- content: "";
1338
- display: block;
1339
- padding-top: 100%;
1550
+ .Switch .switch-label .label {
1551
+ margin-right: 5px;
1340
1552
  }
1341
1553
 
1342
- .SpinningProgress .circular {
1343
- animation: rotate 2s linear infinite;
1344
- height: 100%;
1345
- transform-origin: center center;
1346
- width: 100%;
1347
- position: absolute;
1348
- top: 0;
1349
- bottom: 0;
1350
- left: 0;
1351
- right: 0;
1352
- margin: auto;
1554
+ .Switch .switch-input:checked + .switch-label:before {
1555
+ background-color: #A5D6A7;
1353
1556
  }
1354
1557
 
1355
- .SpinningProgress .line {
1356
- stroke: black;
1357
- stroke-width: 2px;
1358
- stroke-dasharray: 1, 96;
1359
- stroke-dashoffset: 0;
1360
- animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
1558
+ .Switch .switch-input:checked + .switch-label:after {
1559
+ background-color: #4CAF50;
1560
+ transform: translate(80%, -50%);
1361
1561
  }
1362
1562
 
1363
- @keyframes rotate {
1364
- 100% {
1365
- transform: rotate(360deg);
1366
- }
1563
+ .Switch .switch-input:checked + .switch-label .toggle--on {
1564
+ display: inline-block;
1367
1565
  }
1368
- @keyframes dash {
1369
- 0% {
1370
- stroke-dasharray: 1, 96;
1371
- stroke-dashoffset: 0;
1372
- }
1373
- 50% {
1374
- stroke-dasharray: 43, 96;
1375
- stroke-dashoffset: -17px;
1376
- }
1377
- 100% {
1378
- stroke-dasharray: 43, 96;
1379
- stroke-dashoffset: -53px;
1380
- }
1566
+
1567
+ .Switch .switch-input:checked + .switch-label .toggle--off {
1568
+ display: none;
1381
1569
  }
1570
+
1382
1571
  .TextField {
1383
1572
  position: relative;
1384
1573
  width: 100%;
@@ -1522,111 +1711,12 @@
1522
1711
  animation-name: shake;
1523
1712
  }
1524
1713
 
1525
- .Modal {
1526
- display: block;
1527
- position: fixed;
1528
- top: 0;
1529
- left: 0;
1530
- right: 0;
1531
- bottom: 100%;
1532
- overflow-y: scroll;
1533
- transition: bottom 0ms linear;
1534
- transition-delay: 0.2s;
1535
- }
1536
-
1537
- .Modal.show {
1538
- transition-delay: 0s;
1539
- bottom: 0;
1540
- }
1541
-
1542
- .Modal > .overlay {
1543
- position: fixed;
1544
- top: 0;
1545
- bottom: 100%;
1546
- left: 0;
1547
- right: 0;
1548
- transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
1549
- opacity: 0;
1550
- background-color: black;
1551
- pointer-events: none;
1552
- }
1553
-
1554
- .Modal > .overlay.show {
1555
- opacity: 0.5;
1556
- bottom: 0;
1557
- }
1558
-
1559
- .Modal > .content {
1560
- left: 50%;
1561
- top: 10vh;
1562
- margin-bottom: 10vh;
1563
- font-size: 16px;
1564
- padding: 0;
1565
- opacity: 0;
1566
- transition: opacity 0.25s ease, transform 0.25s ease;
1567
- transform: scaleY(0) translateY(-200px) translateX(-50%);
1568
- transform-origin: top;
1569
- position: absolute;
1570
- border-radius: 2px;
1571
- box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
1572
- }
1573
-
1574
- .Modal > .content.show {
1575
- opacity: 1;
1576
- transform: scaleY(1) translateY(0px) translateX(-50%);
1577
- }
1578
-
1579
- .Modal > .content > .Scrollable {
1580
- overflow: visible;
1581
- max-height: 80vh;
1582
- }
1583
-
1584
- .Modal > .content > .Scrollable > .viewport {
1585
- min-width: 10px;
1586
- min-height: 10px;
1587
- }
1588
-
1589
- .Modal > .content > .Button.close {
1590
- top: 10px;
1591
- right: 10px;
1592
- position: absolute;
1593
- }
1594
-
1595
- .ModalMenu {
1596
- position: absolute;
1597
- top: 10px;
1598
- right: 50px;
1599
- }
1600
-
1601
- .ModalMenu .material-icons {
1602
- color: #818181;
1603
- }
1604
-
1605
- .ModalMenu .Button.animated {
1606
- position: absolute;
1607
- transition: opacity 150ms ease-in, right 200ms ease-in;
1608
- opacity: 0;
1609
- right: 0;
1610
- top: 0;
1611
- }
1612
-
1613
- .ModalMenu .Button.animated.mounting, .ModalMenu .Button.animated.mounted {
1614
- opacity: 1;
1615
- }
1616
-
1617
- .ModalMenu .Button.animated.unmounting {
1618
- transition: opacity 100ms ease-out, right 200ms ease-out;
1619
- }
1620
-
1621
- .ModalMenu .Button.active {
1622
- background: #EBEBEB;
1714
+ .ScrollableTable .Scrollable .scrollbar {
1715
+ top: 56px;
1623
1716
  }
1624
1717
 
1625
- .ModalMenu .separator {
1626
- height: 24px;
1627
- width: 1px;
1628
- background-color: #D9D9D9;
1629
- margin-left: 4px;
1718
+ .ScrollableTable .Table {
1719
+ position: static;
1630
1720
  }
1631
1721
 
1632
1722
  .Table {
@@ -1847,94 +1937,4 @@
1847
1937
  left: 0px;
1848
1938
  bottom: 0px;
1849
1939
  will-change: left;
1850
- }
1851
-
1852
- .ScrollableTable .Scrollable .scrollbar {
1853
- top: 56px;
1854
- }
1855
-
1856
- .ScrollableTable .Table {
1857
- position: static;
1858
- }
1859
-
1860
- .Switch {
1861
- display: inline-flex;
1862
- padding-top: 5px;
1863
- }
1864
-
1865
- .Switch .switch-input {
1866
- display: none;
1867
- }
1868
-
1869
- .Switch .switch-label {
1870
- position: relative;
1871
- display: inline-flex;
1872
- align-items: center;
1873
- min-width: 38px;
1874
- height: 24px;
1875
- cursor: pointer;
1876
- font-weight: 500;
1877
- text-align: left;
1878
- user-select: none;
1879
- margin: 0;
1880
- padding: 0;
1881
- padding-left: 44px;
1882
- box-sizing: border-box;
1883
- }
1884
-
1885
- .Switch .switch-label:before, .Switch .switch-label:after {
1886
- content: "";
1887
- box-sizing: border-box;
1888
- position: absolute;
1889
- margin: 0;
1890
- outline: 0;
1891
- top: 50%;
1892
- transform: translate(0, -50%);
1893
- transition: all 0.3s ease;
1894
- }
1895
-
1896
- .Switch .switch-label:before {
1897
- left: 1px;
1898
- width: 34px;
1899
- height: 14px;
1900
- background-color: #9E9E9E;
1901
- border-radius: 8px;
1902
- }
1903
-
1904
- .Switch .switch-label:after {
1905
- left: 0;
1906
- width: 20px;
1907
- height: 20px;
1908
- background-color: #FAFAFA;
1909
- border-radius: 50%;
1910
- box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);
1911
- }
1912
-
1913
- .Switch .switch-label .toggle--on {
1914
- display: none;
1915
- }
1916
-
1917
- .Switch .switch-label .toggle--off {
1918
- display: inline-block;
1919
- }
1920
-
1921
- .Switch .switch-label .label {
1922
- margin-right: 5px;
1923
- }
1924
-
1925
- .Switch .switch-input:checked + .switch-label:before {
1926
- background-color: #A5D6A7;
1927
- }
1928
-
1929
- .Switch .switch-input:checked + .switch-label:after {
1930
- background-color: #4CAF50;
1931
- transform: translate(80%, -50%);
1932
- }
1933
-
1934
- .Switch .switch-input:checked + .switch-label .toggle--on {
1935
- display: inline-block;
1936
- }
1937
-
1938
- .Switch .switch-input:checked + .switch-label .toggle--off {
1939
- display: none;
1940
1940
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ui-basics",
3
- "version": "0.0.242",
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;
package/src/Modal.tsx CHANGED
@@ -72,10 +72,11 @@ class Modal extends AbstractModal {
72
72
  const props = propsGetter(that);
73
73
 
74
74
  const beforeClose = (e) => {
75
- stopPropagation(e);
76
75
  const bc = getBeforeClose() || props().beforeClose;
77
- if (!bc || bc(that.close, e))
76
+ if (!bc || bc(that.close, e)) {
77
+ stopPropagation(e);
78
78
  that.close();
79
+ }
79
80
  };
80
81
 
81
82
  const shouldClose = (e) => {