react-ui-basics 0.0.165 → 0.0.166

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/Table.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ChangeEvent, Component, ReactElement } from 'react';
1
+ import { ChangeEvent, Component, ReactElement, SyntheticEvent } from 'react';
2
2
  import './Table.css';
3
3
  export declare const SORT_ASC: string;
4
4
  export declare const SORT_DESC: string;
@@ -10,7 +10,7 @@ export interface RowProps<T> {
10
10
  item: T;
11
11
  disabled?: (t: T) => boolean;
12
12
  editing: any;
13
- onClick?: (t: T) => void;
13
+ onClick?: (t: T, e: SyntheticEvent) => void;
14
14
  className?: string | ((e: T) => string);
15
15
  columns: TableColumn<T>[];
16
16
  cancelEditing: () => void;
@@ -40,7 +40,7 @@ export interface TableProps<T> {
40
40
  sortOrder?: SortOrder;
41
41
  sortBy?: string;
42
42
  onSortChange?: (sortBy: string, sortOrder: SortOrder) => void;
43
- onRowClick?: (t: T) => void;
43
+ onRowClick?: (t: T, e: SyntheticEvent) => void;
44
44
  disabled?: (t: T) => boolean;
45
45
  toKey?: (t: T) => number | string;
46
46
  onChange?: (t: T, cancel: () => void) => void;
package/Table.js CHANGED
@@ -131,7 +131,7 @@ var Row = /** @class */ (function (_super) {
131
131
  }
132
132
  Row.prototype[ReactConstants[3]] = function () {
133
133
  var _a = __props(this), item = _a.item, disabled = _a.disabled, editing = _a.editing, onClick = _a[ReactConstants[6]], className = _a[ReactConstants[5]], columns = _a.columns, setEditing = _a.setEditing, cancelEditing = _a.cancelEditing, onFinishEditing = _a.onFinishEditing, handleInputChange = _a.handleInputChange, setValue = _a.setValue;
134
- return jsxRuntime_2("tr", __extends({ [ReactConstants[6]]: function (e) { return onClick(item); }, [ReactConstants[5]]: classNames(disabled && disabled(item) && 'disabled', className && (isFunction(className) ? className(item) : className)) }, { [ReactConstants[4]]: columns.filter(function (it) { return !!it; }).map(function (column, i) {
134
+ return jsxRuntime_2("tr", __extends({ [ReactConstants[6]]: function (e) { return onClick(item, e); }, [ReactConstants[5]]: classNames(disabled && disabled(item) && 'disabled', className && (isFunction(className) ? className(item) : className)) }, { [ReactConstants[4]]: columns.filter(function (it) { return !!it; }).map(function (column, i) {
135
135
  var isEditing = editing && editing.columnIndex === i;
136
136
  var editable = isFunction(column.editable) ? column.editable(item) : !!column.editable;
137
137
  return (jsxRuntime_1("td", __extends({ [ReactConstants[5]]: classNames(editable ? 'editable' : 'ro', isEditing && 'editing', column[ReactConstants[5]]), [ReactConstants[6]]: !isEditing && editable ? function () { return setEditing(item, i, column.field); } : NOOP }, { [ReactConstants[4]]: [(isEditing || column.displayEditor) && !column.editor && (jsxRuntime_2(TextField, { value: column.preEditor ? column.preEditor(__value(editing)) : __value(editing), focused: true, onBlur: cancelEditing, [ReactConstants[7]]: handleInputChange, onKeyDown: function (e) {
package/bundle.css CHANGED
@@ -458,45 +458,17 @@
458
458
  position: absolute;
459
459
  }
460
460
 
461
- .DNDContainer {
462
- position: relative;
463
- }
464
-
465
- .DNDContainer .Draggable[draggable=true], .DNDContainer .Draggable [draggable=true] {
466
- cursor: pointer;
467
- }
468
-
469
- .DNDContainer .Draggable.placeholder {
470
- opacity: 0.2;
471
- }
472
-
473
- .DNDContainer .Draggable.copy {
474
- position: absolute;
475
- box-sizing: border-box;
476
- will-change: transform;
477
- opacity: 0;
478
- }
479
-
480
- .DNDContainer .Draggable.dragged {
481
- z-index: 10;
482
- }
483
-
484
- .DNDContainer .overlay {
485
- position: absolute;
486
- top: 0;
487
- left: 0;
488
- right: 0;
489
- bottom: 0;
490
- pointer-events: none;
491
- }
492
-
493
- .animated {
494
- transition: opacity 250ms ease;
495
- opacity: 0;
461
+ .CircleProgress {
462
+ width: 48px;
463
+ height: 48px;
496
464
  }
497
465
 
498
- .animated.mounting, .animated.mounted {
499
- opacity: 1;
466
+ .CircleProgress .line {
467
+ stroke-width: 2px;
468
+ stroke: black;
469
+ stroke-linecap: square;
470
+ fill: none;
471
+ transition: stroke-dashoffset 0.2s ease;
500
472
  }
501
473
 
502
474
  .DialogModal {
@@ -541,46 +513,6 @@
541
513
  margin-bottom: 0;
542
514
  }
543
515
 
544
- .CircleProgress {
545
- width: 48px;
546
- height: 48px;
547
- }
548
-
549
- .CircleProgress .line {
550
- stroke-width: 2px;
551
- stroke: black;
552
- stroke-linecap: square;
553
- fill: none;
554
- transition: stroke-dashoffset 0.2s ease;
555
- }
556
-
557
- .DropFileInput {
558
- flex-grow: 1;
559
- }
560
-
561
- .DropFileInput .Dropzone {
562
- border: 1px dashed #808080;
563
- padding: 12px;
564
- display: flex;
565
- flex-flow: row nowrap;
566
- justify-content: center;
567
- align-items: center;
568
- color: gray;
569
- cursor: pointer;
570
- border-radius: 3px;
571
- font-weight: normal;
572
- line-height: 22px;
573
- font-size: 14px;
574
- color: #7E7E7E;
575
- max-width: 100%;
576
- word-break: break-all;
577
- word-break: break-word;
578
- }
579
-
580
- .DropFileInput .Dropzone .icon.withText {
581
- margin-right: 10px;
582
- }
583
-
584
516
  .Checkbox {
585
517
  position: relative;
586
518
  white-space: pre;
@@ -648,64 +580,72 @@
648
580
  background: rgba(0, 0, 0, 0.26);
649
581
  }
650
582
 
651
- .Dropzone {
583
+ .DNDContainer {
652
584
  position: relative;
653
585
  }
654
586
 
655
- .Dropzone > .overlay {
587
+ .DNDContainer .Draggable[draggable=true], .DNDContainer .Draggable [draggable=true] {
588
+ cursor: pointer;
589
+ }
590
+
591
+ .DNDContainer .Draggable.placeholder {
592
+ opacity: 0.2;
593
+ }
594
+
595
+ .DNDContainer .Draggable.copy {
656
596
  position: absolute;
597
+ box-sizing: border-box;
598
+ will-change: transform;
599
+ opacity: 0;
600
+ }
601
+
602
+ .DNDContainer .Draggable.dragged {
603
+ z-index: 10;
604
+ }
605
+
606
+ .DNDContainer .overlay {
607
+ position: absolute;
608
+ top: 0;
657
609
  left: 0;
658
610
  right: 0;
659
- top: 0;
660
611
  bottom: 0;
661
- background-color: #38ADC4;
662
- z-index: 1;
663
- opacity: 0;
664
- transition: all 0.2s ease;
665
- transition-delay: 100ms;
666
- visibility: hidden;
667
- display: flex;
668
- justify-content: center;
669
- align-items: center;
612
+ pointer-events: none;
670
613
  }
671
614
 
672
- .Dropzone > .overlay .drop {
673
- border-radius: 4px;
674
- border: 1px dashed #FFFFFF;
675
- position: absolute;
676
- top: 18px;
677
- left: 18px;
678
- right: 18px;
679
- bottom: 18px;
615
+ .DropFileInput {
616
+ flex-grow: 1;
617
+ }
618
+
619
+ .DropFileInput .Dropzone {
620
+ border: 1px dashed #808080;
621
+ padding: 12px;
680
622
  display: flex;
623
+ flex-flow: row nowrap;
681
624
  justify-content: center;
682
625
  align-items: center;
683
- font-weight: 500;
684
- font-size: 18px;
685
- color: #FFFFFF;
626
+ color: gray;
627
+ cursor: pointer;
628
+ border-radius: 3px;
629
+ font-weight: normal;
630
+ line-height: 22px;
631
+ font-size: 14px;
632
+ color: #7E7E7E;
633
+ max-width: 100%;
634
+ word-break: break-all;
635
+ word-break: break-word;
686
636
  }
687
637
 
688
- .Dropzone.dragging > .overlay {
689
- opacity: 0.7;
690
- visibility: visible;
691
- transition-delay: 0s;
638
+ .DropFileInput .Dropzone .icon.withText {
639
+ margin-right: 10px;
692
640
  }
693
641
 
694
- .Dropzone.dragging > * {
695
- pointer-events: none;
642
+ .animated {
643
+ transition: opacity 250ms ease;
644
+ opacity: 0;
696
645
  }
697
646
 
698
- .Dropzone > input.file {
699
- position: absolute;
700
- left: 0;
701
- right: 0;
702
- top: 0;
703
- bottom: 0;
704
- width: 100%;
705
- height: 100%;
706
- opacity: 0;
707
- cursor: pointer;
708
- z-index: 1;
647
+ .animated.mounting, .animated.mounted {
648
+ opacity: 1;
709
649
  }
710
650
 
711
651
  .Button.FloatingActionButton {
@@ -732,99 +672,133 @@
732
672
  bottom: -100px;
733
673
  }
734
674
 
735
- .Scrollable {
736
- max-height: 250px;
737
- max-width: 250px;
738
- padding-right: 5px;
739
- position: relative;
740
- display: flex;
741
- flex-flow: column;
742
- align-items: stretch;
743
- overflow: hidden;
675
+ .FormUploadProgress {
676
+ position: absolute;
677
+ left: 0;
678
+ right: 0;
679
+ top: 0;
680
+ bottom: 0;
681
+ background-color: rgba(255, 255, 255, 0.6);
682
+ z-index: 2;
744
683
  }
745
684
 
746
- .Scrollable:hover > .scrollbar.auto {
747
- transition-delay: 0s;
748
- opacity: 1;
685
+ .FormUploadProgress.animated.mounting, .FormUploadProgress.animated.mounted {
686
+ transition-delay: 500ms;
749
687
  }
750
688
 
751
- .Scrollable .viewport {
752
- overflow-y: scroll;
753
- overflow-x: scroll;
754
- max-height: 100%;
755
- scroll-behavior: smooth;
756
- scrollbar-width: none;
689
+ .FormUploadProgress .wrapper {
690
+ position: sticky;
691
+ top: 40%;
692
+ margin-top: 40%;
693
+ margin-left: 50%;
694
+ transform: translateX(-50%);
695
+ display: flex;
696
+ flex-flow: column;
697
+ justify-content: center;
698
+ align-items: center;
757
699
  }
758
700
 
759
- .Scrollable .viewport::-webkit-scrollbar {
760
- display: none;
701
+ .FormUploadProgress .wrapper .CircleProgress, .FormUploadProgress .wrapper .SpinningProgress {
702
+ position: absolute;
703
+ width: 107px;
704
+ height: 107px;
705
+ top: 0;
706
+ left: 0;
761
707
  }
762
708
 
763
- .Scrollable.without-scroll-horizontal {
764
- max-width: unset;
709
+ .FormUploadProgress .wrapper .CircleProgress .line, .FormUploadProgress .wrapper .SpinningProgress .line {
710
+ stroke: #2196F3;
765
711
  }
766
712
 
767
- .Scrollable.without-scroll {
768
- padding-right: 0;
769
- max-height: unset;
713
+ .FormUploadProgress .wrapper > .progress {
714
+ width: 107px;
715
+ height: 107px;
716
+ min-height: 107px;
717
+ display: flex;
718
+ justify-content: center;
719
+ align-items: center;
720
+ box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
721
+ border-radius: 50%;
722
+ background: white;
723
+ position: relative;
770
724
  }
771
725
 
772
- .Scrollable.without-scroll > .viewport {
773
- padding-right: 0;
774
- margin-right: 0;
726
+ .FormUploadProgress .wrapper > .progress > .value {
727
+ display: inline-block;
728
+ margin-top: 5px;
729
+ font-weight: bold;
730
+ line-height: 16px;
731
+ font-size: 13px;
732
+ text-align: center;
733
+ color: #818181;
775
734
  }
776
735
 
777
- .Scrollable.without-scroll > .scrollbar {
778
- visibility: hidden;
736
+ .FormUploadProgress .wrapper .cancel {
737
+ min-width: 107px;
738
+ margin-top: 20px;
739
+ background-color: white;
740
+ color: #F96B5C;
741
+ box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
742
+ }
743
+
744
+ .Dropzone {
745
+ position: relative;
779
746
  }
780
747
 
781
- .Scrollable .scrollbar {
748
+ .Dropzone > .overlay {
782
749
  position: absolute;
783
- right: 0px;
784
- top: 0px;
785
- width: 5px;
786
- transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
787
- transition-delay: 0.5s;
750
+ left: 0;
751
+ right: 0;
752
+ top: 0;
753
+ bottom: 0;
754
+ background-color: #38ADC4;
788
755
  z-index: 1;
789
- }
790
-
791
- .Scrollable .scrollbar.auto, .Scrollable .scrollbar.hidden {
792
756
  opacity: 0;
757
+ transition: all 0.2s ease;
758
+ transition-delay: 100ms;
759
+ visibility: hidden;
760
+ display: flex;
761
+ justify-content: center;
762
+ align-items: center;
793
763
  }
794
764
 
795
- .Scrollable .scrollbar .thumb {
796
- background-color: rgba(0, 0, 0, 0.3);
797
- width: 5px;
765
+ .Dropzone > .overlay .drop {
766
+ border-radius: 4px;
767
+ border: 1px dashed #FFFFFF;
798
768
  position: absolute;
799
- right: 0px;
800
- top: 0px;
801
- user-select: none;
802
- will-change: top;
803
- border-radius: 2px;
769
+ top: 18px;
770
+ left: 18px;
771
+ right: 18px;
772
+ bottom: 18px;
773
+ display: flex;
774
+ justify-content: center;
775
+ align-items: center;
776
+ font-weight: 500;
777
+ font-size: 18px;
778
+ color: #FFFFFF;
804
779
  }
805
780
 
806
- .Scrollable .scrollbar .thumb:hover {
807
- background-color: rgba(0, 0, 0, 0.5);
781
+ .Dropzone.dragging > .overlay {
782
+ opacity: 0.7;
783
+ visibility: visible;
784
+ transition-delay: 0s;
808
785
  }
809
786
 
810
- .Scrollable .scrollbar .thumb:active {
811
- background-color: rgba(0, 0, 0, 0.7);
787
+ .Dropzone.dragging > * {
788
+ pointer-events: none;
812
789
  }
813
790
 
814
- .Scrollable .scrollbar.horizontal {
815
- left: 0px;
816
- right: 0px;
817
- height: 5px;
791
+ .Dropzone > input.file {
792
+ position: absolute;
793
+ left: 0;
794
+ right: 0;
795
+ top: 0;
818
796
  bottom: 0;
819
- width: unset;
820
- top: unset;
821
- }
822
-
823
- .Scrollable .scrollbar.horizontal .thumb {
824
- height: 5px;
825
- left: 0px;
826
- bottom: 0px;
827
- will-change: left;
797
+ width: 100%;
798
+ height: 100%;
799
+ opacity: 0;
800
+ cursor: pointer;
801
+ z-index: 1;
828
802
  }
829
803
 
830
804
  .ImageGallery {
@@ -1062,165 +1036,101 @@
1062
1036
  font-size: 24px;
1063
1037
  }
1064
1038
 
1065
- .ModalMenu {
1066
- position: absolute;
1067
- top: 10px;
1068
- right: 50px;
1069
- }
1070
-
1071
- .ModalMenu .material-icons {
1072
- color: #818181;
1073
- }
1074
-
1075
- .ModalMenu .Button.animated {
1076
- position: absolute;
1077
- transition: opacity 150ms ease-in, right 200ms ease-in;
1078
- opacity: 0;
1079
- right: 0;
1080
- top: 0;
1039
+ .Scrollable {
1040
+ max-height: 250px;
1041
+ max-width: 250px;
1042
+ padding-right: 5px;
1043
+ position: relative;
1044
+ display: flex;
1045
+ flex-flow: column;
1046
+ align-items: stretch;
1047
+ overflow: hidden;
1081
1048
  }
1082
1049
 
1083
- .ModalMenu .Button.animated.mounting, .ModalMenu .Button.animated.mounted {
1050
+ .Scrollable:hover > .scrollbar.auto {
1051
+ transition-delay: 0s;
1084
1052
  opacity: 1;
1085
1053
  }
1086
1054
 
1087
- .ModalMenu .Button.animated.unmounting {
1088
- transition: opacity 100ms ease-out, right 200ms ease-out;
1055
+ .Scrollable .viewport {
1056
+ overflow-y: scroll;
1057
+ overflow-x: scroll;
1058
+ max-height: 100%;
1059
+ scroll-behavior: smooth;
1060
+ scrollbar-width: none;
1089
1061
  }
1090
1062
 
1091
- .ModalMenu .Button.active {
1092
- background: #EBEBEB;
1063
+ .Scrollable .viewport::-webkit-scrollbar {
1064
+ display: none;
1093
1065
  }
1094
1066
 
1095
- .ModalMenu .separator {
1096
- height: 24px;
1097
- width: 1px;
1098
- background-color: #D9D9D9;
1099
- margin-left: 4px;
1067
+ .Scrollable.without-scroll-horizontal {
1068
+ max-width: unset;
1100
1069
  }
1101
1070
 
1102
- .FormUploadProgress {
1103
- position: absolute;
1104
- left: 0;
1105
- right: 0;
1106
- top: 0;
1107
- bottom: 0;
1108
- background-color: rgba(255, 255, 255, 0.6);
1109
- z-index: 2;
1071
+ .Scrollable.without-scroll {
1072
+ padding-right: 0;
1073
+ max-height: unset;
1110
1074
  }
1111
1075
 
1112
- .FormUploadProgress.animated.mounting, .FormUploadProgress.animated.mounted {
1113
- transition-delay: 500ms;
1076
+ .Scrollable.without-scroll > .viewport {
1077
+ padding-right: 0;
1078
+ margin-right: 0;
1114
1079
  }
1115
1080
 
1116
- .FormUploadProgress .wrapper {
1117
- position: sticky;
1118
- top: 40%;
1119
- margin-top: 40%;
1120
- margin-left: 50%;
1121
- transform: translateX(-50%);
1122
- display: flex;
1123
- flex-flow: column;
1124
- justify-content: center;
1125
- align-items: center;
1081
+ .Scrollable.without-scroll > .scrollbar {
1082
+ visibility: hidden;
1126
1083
  }
1127
1084
 
1128
- .FormUploadProgress .wrapper .CircleProgress, .FormUploadProgress .wrapper .SpinningProgress {
1085
+ .Scrollable .scrollbar {
1129
1086
  position: absolute;
1130
- width: 107px;
1131
- height: 107px;
1132
- top: 0;
1133
- left: 0;
1134
- }
1135
-
1136
- .FormUploadProgress .wrapper .CircleProgress .line, .FormUploadProgress .wrapper .SpinningProgress .line {
1137
- stroke: #2196F3;
1138
- }
1139
-
1140
- .FormUploadProgress .wrapper > .progress {
1141
- width: 107px;
1142
- height: 107px;
1143
- min-height: 107px;
1144
- display: flex;
1145
- justify-content: center;
1146
- align-items: center;
1147
- box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
1148
- border-radius: 50%;
1149
- background: white;
1150
- position: relative;
1151
- }
1152
-
1153
- .FormUploadProgress .wrapper > .progress > .value {
1154
- display: inline-block;
1155
- margin-top: 5px;
1156
- font-weight: bold;
1157
- line-height: 16px;
1158
- font-size: 13px;
1159
- text-align: center;
1160
- color: #818181;
1161
- }
1162
-
1163
- .FormUploadProgress .wrapper .cancel {
1164
- min-width: 107px;
1165
- margin-top: 20px;
1166
- background-color: white;
1167
- color: #F96B5C;
1168
- box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
1169
- }
1170
-
1171
- .SpinningProgress {
1172
- width: 48px;
1173
- height: 48px;
1174
- position: relative;
1175
- margin: 0 auto;
1087
+ right: 0px;
1088
+ top: 0px;
1089
+ width: 5px;
1090
+ transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
1091
+ transition-delay: 0.5s;
1092
+ z-index: 1;
1176
1093
  }
1177
1094
 
1178
- .SpinningProgress:before {
1179
- content: "";
1180
- display: block;
1181
- padding-top: 100%;
1095
+ .Scrollable .scrollbar.auto, .Scrollable .scrollbar.hidden {
1096
+ opacity: 0;
1182
1097
  }
1183
1098
 
1184
- .SpinningProgress .circular {
1185
- animation: rotate 2s linear infinite;
1186
- height: 100%;
1187
- transform-origin: center center;
1188
- width: 100%;
1099
+ .Scrollable .scrollbar .thumb {
1100
+ background-color: rgba(0, 0, 0, 0.3);
1101
+ width: 5px;
1189
1102
  position: absolute;
1190
- top: 0;
1191
- bottom: 0;
1192
- left: 0;
1193
- right: 0;
1194
- margin: auto;
1103
+ right: 0px;
1104
+ top: 0px;
1105
+ user-select: none;
1106
+ will-change: top;
1107
+ border-radius: 2px;
1195
1108
  }
1196
1109
 
1197
- .SpinningProgress .line {
1198
- stroke: black;
1199
- stroke-width: 2px;
1200
- stroke-dasharray: 1, 96;
1201
- stroke-dashoffset: 0;
1202
- animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
1110
+ .Scrollable .scrollbar .thumb:hover {
1111
+ background-color: rgba(0, 0, 0, 0.5);
1203
1112
  }
1204
1113
 
1205
- @keyframes rotate {
1206
- 100% {
1207
- transform: rotate(360deg);
1208
- }
1114
+ .Scrollable .scrollbar .thumb:active {
1115
+ background-color: rgba(0, 0, 0, 0.7);
1209
1116
  }
1210
- @keyframes dash {
1211
- 0% {
1212
- stroke-dasharray: 1, 96;
1213
- stroke-dashoffset: 0;
1214
- }
1215
- 50% {
1216
- stroke-dasharray: 43, 96;
1217
- stroke-dashoffset: -17px;
1218
- }
1219
- 100% {
1220
- stroke-dasharray: 43, 96;
1221
- stroke-dashoffset: -53px;
1222
- }
1117
+
1118
+ .Scrollable .scrollbar.horizontal {
1119
+ left: 0px;
1120
+ right: 0px;
1121
+ height: 5px;
1122
+ bottom: 0;
1123
+ width: unset;
1124
+ top: unset;
1223
1125
  }
1126
+
1127
+ .Scrollable .scrollbar.horizontal .thumb {
1128
+ height: 5px;
1129
+ left: 0px;
1130
+ bottom: 0px;
1131
+ will-change: left;
1132
+ }
1133
+
1224
1134
  .Switch {
1225
1135
  display: inline-flex;
1226
1136
  padding-top: 5px;
@@ -1303,6 +1213,131 @@
1303
1213
  display: none;
1304
1214
  }
1305
1215
 
1216
+ .Modal {
1217
+ display: block;
1218
+ position: fixed;
1219
+ top: 0;
1220
+ left: 0;
1221
+ right: 0;
1222
+ bottom: 100%;
1223
+ overflow-y: scroll;
1224
+ transition: bottom 0ms linear;
1225
+ transition-delay: 0.2s;
1226
+ }
1227
+
1228
+ .Modal.show {
1229
+ transition-delay: 0s;
1230
+ bottom: 0;
1231
+ }
1232
+
1233
+ .Modal > .overlay {
1234
+ position: fixed;
1235
+ top: 0;
1236
+ bottom: 100%;
1237
+ left: 0;
1238
+ right: 0;
1239
+ transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
1240
+ opacity: 0;
1241
+ background-color: black;
1242
+ pointer-events: none;
1243
+ }
1244
+
1245
+ .Modal > .overlay.show {
1246
+ opacity: 0.5;
1247
+ bottom: 0;
1248
+ }
1249
+
1250
+ .Modal > .content {
1251
+ left: 50%;
1252
+ top: 10vh;
1253
+ margin-bottom: 10vh;
1254
+ font-size: 16px;
1255
+ padding: 0;
1256
+ opacity: 0;
1257
+ transition: opacity 0.25s ease, transform 0.25s ease;
1258
+ transform: scaleY(0) translateY(-200px) translateX(-50%);
1259
+ transform-origin: top;
1260
+ position: absolute;
1261
+ border-radius: 2px;
1262
+ box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
1263
+ }
1264
+
1265
+ .Modal > .content.show {
1266
+ opacity: 1;
1267
+ transform: scaleY(1) translateY(0px) translateX(-50%);
1268
+ }
1269
+
1270
+ .Modal > .content > .Scrollable {
1271
+ overflow: visible;
1272
+ max-height: 80vh;
1273
+ }
1274
+
1275
+ .Modal > .content > .Scrollable > .viewport {
1276
+ min-width: 10px;
1277
+ min-height: 10px;
1278
+ }
1279
+
1280
+ .Modal > .content > .Button.close {
1281
+ top: 10px;
1282
+ right: 10px;
1283
+ position: absolute;
1284
+ }
1285
+
1286
+ .ModalMenu {
1287
+ position: absolute;
1288
+ top: 10px;
1289
+ right: 50px;
1290
+ }
1291
+
1292
+ .ModalMenu .material-icons {
1293
+ color: #818181;
1294
+ }
1295
+
1296
+ .ModalMenu .Button.animated {
1297
+ position: absolute;
1298
+ transition: opacity 150ms ease-in, right 200ms ease-in;
1299
+ opacity: 0;
1300
+ right: 0;
1301
+ top: 0;
1302
+ }
1303
+
1304
+ .ModalMenu .Button.animated.mounting, .ModalMenu .Button.animated.mounted {
1305
+ opacity: 1;
1306
+ }
1307
+
1308
+ .ModalMenu .Button.animated.unmounting {
1309
+ transition: opacity 100ms ease-out, right 200ms ease-out;
1310
+ }
1311
+
1312
+ .ModalMenu .Button.active {
1313
+ background: #EBEBEB;
1314
+ }
1315
+
1316
+ .ModalMenu .separator {
1317
+ height: 24px;
1318
+ width: 1px;
1319
+ background-color: #D9D9D9;
1320
+ margin-left: 4px;
1321
+ }
1322
+
1323
+ .DNDContainer .DroppableList .Draggable {
1324
+ transform: unset;
1325
+ transition: unset;
1326
+ opacity: 1;
1327
+ }
1328
+
1329
+ .DNDContainer .DroppableList .Draggable.dragged {
1330
+ transition: unset !important;
1331
+ }
1332
+
1333
+ .DNDContainer .DroppableList.hover .Draggable {
1334
+ transition: transform 0.2s ease-in;
1335
+ }
1336
+
1337
+ .DNDContainer .DroppableList.resetting .Draggable {
1338
+ transition: transform 0.1s ease-in;
1339
+ }
1340
+
1306
1341
  .Snackbar {
1307
1342
  transform: translateX(-50%);
1308
1343
  overflow: hidden;
@@ -1491,94 +1526,59 @@
1491
1526
  animation-name: shake;
1492
1527
  }
1493
1528
 
1494
- .Modal {
1495
- display: block;
1496
- position: fixed;
1497
- top: 0;
1498
- left: 0;
1499
- right: 0;
1500
- bottom: 100%;
1501
- overflow-y: scroll;
1502
- transition: bottom 0ms linear;
1503
- transition-delay: 0.2s;
1529
+ .SpinningProgress {
1530
+ width: 48px;
1531
+ height: 48px;
1532
+ position: relative;
1533
+ margin: 0 auto;
1504
1534
  }
1505
1535
 
1506
- .Modal.show {
1507
- transition-delay: 0s;
1508
- bottom: 0;
1536
+ .SpinningProgress:before {
1537
+ content: "";
1538
+ display: block;
1539
+ padding-top: 100%;
1509
1540
  }
1510
1541
 
1511
- .Modal > .overlay {
1512
- position: fixed;
1542
+ .SpinningProgress .circular {
1543
+ animation: rotate 2s linear infinite;
1544
+ height: 100%;
1545
+ transform-origin: center center;
1546
+ width: 100%;
1547
+ position: absolute;
1513
1548
  top: 0;
1514
- bottom: 100%;
1549
+ bottom: 0;
1515
1550
  left: 0;
1516
1551
  right: 0;
1517
- transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
1518
- opacity: 0;
1519
- background-color: black;
1520
- pointer-events: none;
1521
- }
1522
-
1523
- .Modal > .overlay.show {
1524
- opacity: 0.5;
1525
- bottom: 0;
1526
- }
1527
-
1528
- .Modal > .content {
1529
- left: 50%;
1530
- top: 10vh;
1531
- margin-bottom: 10vh;
1532
- font-size: 16px;
1533
- padding: 0;
1534
- opacity: 0;
1535
- transition: opacity 0.25s ease, transform 0.25s ease;
1536
- transform: scaleY(0) translateY(-200px) translateX(-50%);
1537
- transform-origin: top;
1538
- position: absolute;
1539
- border-radius: 2px;
1540
- box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
1541
- }
1542
-
1543
- .Modal > .content.show {
1544
- opacity: 1;
1545
- transform: scaleY(1) translateY(0px) translateX(-50%);
1546
- }
1547
-
1548
- .Modal > .content > .Scrollable {
1549
- overflow: visible;
1550
- max-height: 80vh;
1551
- }
1552
-
1553
- .Modal > .content > .Scrollable > .viewport {
1554
- min-width: 10px;
1555
- min-height: 10px;
1556
- }
1557
-
1558
- .Modal > .content > .Button.close {
1559
- top: 10px;
1560
- right: 10px;
1561
- position: absolute;
1562
- }
1563
-
1564
- .DNDContainer .DroppableList .Draggable {
1565
- transform: unset;
1566
- transition: unset;
1567
- opacity: 1;
1552
+ margin: auto;
1568
1553
  }
1569
1554
 
1570
- .DNDContainer .DroppableList .Draggable.dragged {
1571
- transition: unset !important;
1555
+ .SpinningProgress .line {
1556
+ stroke: black;
1557
+ stroke-width: 2px;
1558
+ stroke-dasharray: 1, 96;
1559
+ stroke-dashoffset: 0;
1560
+ animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
1572
1561
  }
1573
1562
 
1574
- .DNDContainer .DroppableList.hover .Draggable {
1575
- transition: transform 0.2s ease-in;
1563
+ @keyframes rotate {
1564
+ 100% {
1565
+ transform: rotate(360deg);
1566
+ }
1576
1567
  }
1577
-
1578
- .DNDContainer .DroppableList.resetting .Draggable {
1579
- transition: transform 0.1s ease-in;
1568
+ @keyframes dash {
1569
+ 0% {
1570
+ stroke-dasharray: 1, 96;
1571
+ stroke-dashoffset: 0;
1572
+ }
1573
+ 50% {
1574
+ stroke-dasharray: 43, 96;
1575
+ stroke-dashoffset: -17px;
1576
+ }
1577
+ 100% {
1578
+ stroke-dasharray: 43, 96;
1579
+ stroke-dashoffset: -53px;
1580
+ }
1580
1581
  }
1581
-
1582
1582
  .FilteredList {
1583
1583
  max-height: 250px;
1584
1584
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ui-basics",
3
- "version": "0.0.165",
3
+ "version": "0.0.166",
4
4
  "description": "",
5
5
  "module": "index.js",
6
6
  "_main": "index.cjs.js",