react-ui-basics 0.0.135 → 0.0.136

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.
@@ -4,6 +4,7 @@ import ReactCreateElement from './ReactCreateElement.js';
4
4
  import Table from './Table.js';
5
5
  import Scrollable from './Scrollable.js';
6
6
  import { render, props, PureComponent } from './ReactConstants.js';
7
+ import { createRef } from './Tools.js';
7
8
 
8
9
  var ScrollableTable = function (_PureComponent) {
9
10
  _inherits(ScrollableTable, _PureComponent);
@@ -13,10 +14,16 @@ var ScrollableTable = function (_PureComponent) {
13
14
  _classCallCheck(this, ScrollableTable);
14
15
  _this = _super.call(this, properties);
15
16
  var that = _assertThisInitialized(_this);
17
+ var scrollableRef = createRef();
16
18
  that[render] = function () {
17
19
  return ReactCreateElement("div", {
18
20
  className: "ScrollableTable"
19
- }, ReactCreateElement(Scrollable, null, ReactCreateElement(Table, props(that))));
21
+ }, ReactCreateElement(Scrollable, {
22
+ ref: scrollableRef
23
+ }, ReactCreateElement(Table, props(that))));
24
+ };
25
+ that.getScrollable = function () {
26
+ return scrollableRef();
20
27
  };
21
28
  return _this;
22
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollableTable.js","sources":["../src/react-ui-basics/ScrollableTable.js"],"sourcesContent":["import React from 'react';\nimport ReactCreateElement from './ReactCreateElement';\nimport Table from \"./Table\";\nimport Scrollable from \"./Scrollable\";\nimport \"./ScrollableTable.css\";\nimport {props, render, PureComponent} from \"./ReactConstants\";\n\nclass ScrollableTable extends PureComponent {\n\n constructor(properties) {\n super(properties);\n const that = this;\n\n that[render] = () => {\n return <div className={`ScrollableTable`}>\n <Scrollable>\n <Table {...props(that)}/>\n </Scrollable>\n </div>;\n }\n }\n}\n\nexport default ScrollableTable"],"names":["ScrollableTable","properties","that","render","props","PureComponent"],"mappings":";;;;;;;IAOMA;;;AAEF,2BAAYC,UAAZ,EAAwB;AAAA;AAAA;AACpB,8BAAMA,UAAN;AACA,QAAMC,IAAI,gCAAV;AAEAA,IAAAA,IAAI,CAACC,MAAD,CAAJ,GAAe,YAAM;AACjB,aAAO;AAAK,QAAA,SAAS;AAAd,SACH,mBAAC,UAAD,QACI,mBAAC,KAAD,EAAWC,KAAK,CAACF,IAAD,CAAhB,CADJ,CADG,CAAP;AAKH,KAND;AAJoB;AAWvB;;EAbyBG;AAgB9B,wBAAeL,eAAf;;;;"}
1
+ {"version":3,"file":"ScrollableTable.js","sources":["../src/react-ui-basics/ScrollableTable.js"],"sourcesContent":["import React from 'react';\nimport ReactCreateElement from './ReactCreateElement';\nimport Table from \"./Table\";\nimport Scrollable from \"./Scrollable\";\nimport \"./ScrollableTable.css\";\nimport {props, render, PureComponent} from \"./ReactConstants\";\nimport {createRef} from \"./Tools\";\n\nclass ScrollableTable extends PureComponent {\n\n constructor(properties) {\n super(properties);\n const that = this;\n\n const scrollableRef = createRef();\n\n that[render] = () => {\n return <div className={`ScrollableTable`}>\n <Scrollable ref={scrollableRef}>\n <Table {...props(that)}/>\n </Scrollable>\n </div>;\n }\n that.getScrollable = () => scrollableRef()\n }\n}\n\nexport default ScrollableTable"],"names":["ScrollableTable","properties","that","scrollableRef","createRef","render","props","getScrollable","PureComponent"],"mappings":";;;;;;;;IAQMA;;;AAEF,2BAAYC,UAAZ,EAAwB;AAAA;AAAA;AACpB,8BAAMA,UAAN;AACA,QAAMC,IAAI,gCAAV;AAEA,QAAMC,aAAa,GAAGC,SAAS,EAA/B;AAEAF,IAAAA,IAAI,CAACG,MAAD,CAAJ,GAAe,YAAM;AACjB,aAAO;AAAK,QAAA,SAAS;AAAd,SACH,mBAAC,UAAD;AAAY,QAAA,GAAG,EAAEF;AAAjB,SACI,mBAAC,KAAD,EAAWG,KAAK,CAACJ,IAAD,CAAhB,CADJ,CADG,CAAP;AAKH,KAND;AAOAA,IAAAA,IAAI,CAACK,aAAL,GAAqB;AAAA,aAAMJ,aAAa,EAAnB;AAAA,KAArB;AAboB;AAcvB;;EAhByBK;AAmB9B,wBAAeR,eAAf;;;;"}
package/bundle.css CHANGED
@@ -1,42 +1,68 @@
1
- .animated {
2
- transition: opacity 250ms ease;
3
- opacity: 0;
1
+ .Checkbox {
2
+ position: relative;
3
+ white-space: pre;
4
4
  }
5
5
 
6
- .animated.mounting, .animated.mounted {
7
- opacity: 1;
6
+ .Checkbox *, .Checkbox *:before, .Checkbox *:after {
7
+ box-sizing: border-box;
8
8
  }
9
9
 
10
- .DNDContainer {
11
- position: relative;
10
+ .Checkbox label {
11
+ font-family: Roboto, sans-serif;
12
+ font-size: 14px;
13
+ color: #1e252d;
14
+ cursor: pointer;
12
15
  }
13
16
 
14
- .DNDContainer .Draggable[draggable=true], .DNDContainer .Draggable [draggable=true] {
17
+ .Checkbox label:before, .Checkbox label:after {
18
+ content: "";
19
+ position: absolute;
20
+ left: 0;
21
+ top: 0;
22
+ }
23
+
24
+ .Checkbox label:before {
25
+ width: 20px;
26
+ height: 20px;
27
+ background: #fff;
28
+ border: 2px solid #252525;
29
+ border-radius: 2px;
15
30
  cursor: pointer;
31
+ transition: background 0.3s;
16
32
  }
17
33
 
18
- .DNDContainer .Draggable.placeholder {
19
- opacity: 0.2;
34
+ .Checkbox input[type=checkbox] {
35
+ outline: 0;
36
+ margin-right: 10px;
37
+ visibility: hidden;
20
38
  }
21
39
 
22
- .DNDContainer .Draggable.copy {
23
- position: absolute;
24
- box-sizing: border-box;
25
- will-change: transform;
26
- opacity: 0;
40
+ .Checkbox input[type=checkbox]:checked + label:before {
41
+ background: #4AC263;
42
+ border: none;
27
43
  }
28
44
 
29
- .DNDContainer .Draggable.dragged {
30
- z-index: 10;
45
+ .Checkbox input[type=checkbox]:checked + label:after {
46
+ transform: rotate(-45deg);
47
+ top: 6px;
48
+ left: 4px;
49
+ width: 12px;
50
+ height: 6px;
51
+ border: 2px solid #fff;
52
+ border-top-style: none;
53
+ border-right-style: none;
31
54
  }
32
55
 
33
- .DNDContainer .overlay {
34
- position: absolute;
35
- top: 0;
36
- left: 0;
37
- right: 0;
38
- bottom: 0;
39
- pointer-events: none;
56
+ .Checkbox input[type=checkbox]:disabled + label {
57
+ color: gray;
58
+ }
59
+
60
+ .Checkbox input[type=checkbox]:disabled + label:before {
61
+ border-color: rgba(0, 0, 0, 0.26);
62
+ }
63
+
64
+ .Checkbox input[type=checkbox]:disabled:checked + label:before {
65
+ background: rgba(0, 0, 0, 0.26);
40
66
  }
41
67
 
42
68
  .AutocompleteSelect {
@@ -334,128 +360,6 @@
334
360
  position: absolute;
335
361
  }
336
362
 
337
- .Checkbox {
338
- position: relative;
339
- white-space: pre;
340
- }
341
-
342
- .Checkbox *, .Checkbox *:before, .Checkbox *:after {
343
- box-sizing: border-box;
344
- }
345
-
346
- .Checkbox label {
347
- font-family: Roboto, sans-serif;
348
- font-size: 14px;
349
- color: #1e252d;
350
- cursor: pointer;
351
- }
352
-
353
- .Checkbox label:before, .Checkbox label:after {
354
- content: "";
355
- position: absolute;
356
- left: 0;
357
- top: 0;
358
- }
359
-
360
- .Checkbox label:before {
361
- width: 20px;
362
- height: 20px;
363
- background: #fff;
364
- border: 2px solid #252525;
365
- border-radius: 2px;
366
- cursor: pointer;
367
- transition: background 0.3s;
368
- }
369
-
370
- .Checkbox input[type=checkbox] {
371
- outline: 0;
372
- margin-right: 10px;
373
- visibility: hidden;
374
- }
375
-
376
- .Checkbox input[type=checkbox]:checked + label:before {
377
- background: #4AC263;
378
- border: none;
379
- }
380
-
381
- .Checkbox input[type=checkbox]:checked + label:after {
382
- transform: rotate(-45deg);
383
- top: 6px;
384
- left: 4px;
385
- width: 12px;
386
- height: 6px;
387
- border: 2px solid #fff;
388
- border-top-style: none;
389
- border-right-style: none;
390
- }
391
-
392
- .Checkbox input[type=checkbox]:disabled + label {
393
- color: gray;
394
- }
395
-
396
- .Checkbox input[type=checkbox]:disabled + label:before {
397
- border-color: rgba(0, 0, 0, 0.26);
398
- }
399
-
400
- .Checkbox input[type=checkbox]:disabled:checked + label:before {
401
- background: rgba(0, 0, 0, 0.26);
402
- }
403
-
404
- .DialogModal {
405
- overflow: hidden;
406
- }
407
-
408
- .DialogModal .content {
409
- top: 20vh;
410
- }
411
-
412
- .Dialog {
413
- background-color: white;
414
- min-width: 460px;
415
- max-width: 40vw;
416
- padding: 15px;
417
- }
418
-
419
- .Dialog .title {
420
- margin-bottom: 15px;
421
- padding: 20px 50px 0px 30px;
422
- font-size: 1.25rem;
423
- line-height: 2rem;
424
- font-weight: 400;
425
- letter-spacing: 0.0125em;
426
- }
427
-
428
- .Dialog .description {
429
- color: rgba(0, 0, 0, 0.54);
430
- font-size: 1rem;
431
- line-height: 1.5rem;
432
- font-weight: 400;
433
- letter-spacing: 0.03125em;
434
- margin-top: 20px;
435
- padding: 0 24px 24px;
436
- }
437
-
438
- .Dialog > div.row {
439
- margin-bottom: 15px;
440
- }
441
-
442
- .Dialog > div.row:last-child {
443
- margin-bottom: 0;
444
- }
445
-
446
- .CircleProgress {
447
- width: 48px;
448
- height: 48px;
449
- }
450
-
451
- .CircleProgress .line {
452
- stroke-width: 2px;
453
- stroke: black;
454
- stroke-linecap: square;
455
- fill: none;
456
- transition: stroke-dashoffset 0.2s ease;
457
- }
458
-
459
363
  .Button {
460
364
  position: relative;
461
365
  min-width: 64px;
@@ -621,64 +525,100 @@
621
525
  border: 0;
622
526
  }
623
527
 
624
- .Dropzone {
625
- position: relative;
528
+ .animated {
529
+ transition: opacity 250ms ease;
530
+ opacity: 0;
626
531
  }
627
532
 
628
- .Dropzone > .overlay {
629
- position: absolute;
630
- left: 0;
631
- right: 0;
632
- top: 0;
633
- bottom: 0;
634
- background-color: #38ADC4;
635
- z-index: 1;
636
- opacity: 0;
637
- transition: all 0.2s ease;
638
- transition-delay: 100ms;
639
- visibility: hidden;
640
- display: flex;
641
- justify-content: center;
642
- align-items: center;
533
+ .animated.mounting, .animated.mounted {
534
+ opacity: 1;
643
535
  }
644
536
 
645
- .Dropzone > .overlay .drop {
646
- border-radius: 4px;
647
- border: 1px dashed #FFFFFF;
648
- position: absolute;
649
- top: 18px;
650
- left: 18px;
651
- right: 18px;
652
- bottom: 18px;
653
- display: flex;
654
- justify-content: center;
655
- align-items: center;
656
- font-weight: 500;
657
- font-size: 18px;
658
- color: #FFFFFF;
537
+ .CircleProgress {
538
+ width: 48px;
539
+ height: 48px;
659
540
  }
660
541
 
661
- .Dropzone.dragging > .overlay {
662
- opacity: 0.7;
663
- visibility: visible;
664
- transition-delay: 0s;
542
+ .CircleProgress .line {
543
+ stroke-width: 2px;
544
+ stroke: black;
545
+ stroke-linecap: square;
546
+ fill: none;
547
+ transition: stroke-dashoffset 0.2s ease;
665
548
  }
666
549
 
667
- .Dropzone.dragging > * {
668
- pointer-events: none;
550
+ .DialogModal {
551
+ overflow: hidden;
669
552
  }
670
553
 
671
- .Dropzone > input.file {
672
- position: absolute;
673
- left: 0;
674
- right: 0;
675
- top: 0;
676
- bottom: 0;
677
- width: 100%;
678
- height: 100%;
679
- opacity: 0;
554
+ .DialogModal .content {
555
+ top: 20vh;
556
+ }
557
+
558
+ .Dialog {
559
+ background-color: white;
560
+ min-width: 460px;
561
+ max-width: 40vw;
562
+ padding: 15px;
563
+ }
564
+
565
+ .Dialog .title {
566
+ margin-bottom: 15px;
567
+ padding: 20px 50px 0px 30px;
568
+ font-size: 1.25rem;
569
+ line-height: 2rem;
570
+ font-weight: 400;
571
+ letter-spacing: 0.0125em;
572
+ }
573
+
574
+ .Dialog .description {
575
+ color: rgba(0, 0, 0, 0.54);
576
+ font-size: 1rem;
577
+ line-height: 1.5rem;
578
+ font-weight: 400;
579
+ letter-spacing: 0.03125em;
580
+ margin-top: 20px;
581
+ padding: 0 24px 24px;
582
+ }
583
+
584
+ .Dialog > div.row {
585
+ margin-bottom: 15px;
586
+ }
587
+
588
+ .Dialog > div.row:last-child {
589
+ margin-bottom: 0;
590
+ }
591
+
592
+ .DNDContainer {
593
+ position: relative;
594
+ }
595
+
596
+ .DNDContainer .Draggable[draggable=true], .DNDContainer .Draggable [draggable=true] {
680
597
  cursor: pointer;
681
- z-index: 1;
598
+ }
599
+
600
+ .DNDContainer .Draggable.placeholder {
601
+ opacity: 0.2;
602
+ }
603
+
604
+ .DNDContainer .Draggable.copy {
605
+ position: absolute;
606
+ box-sizing: border-box;
607
+ will-change: transform;
608
+ opacity: 0;
609
+ }
610
+
611
+ .DNDContainer .Draggable.dragged {
612
+ z-index: 10;
613
+ }
614
+
615
+ .DNDContainer .overlay {
616
+ position: absolute;
617
+ top: 0;
618
+ left: 0;
619
+ right: 0;
620
+ bottom: 0;
621
+ pointer-events: none;
682
622
  }
683
623
 
684
624
  .DropFileInput {
@@ -789,28 +729,134 @@
789
729
  margin-bottom: 8px;
790
730
  }
791
731
 
792
- .Button.FloatingActionButton {
732
+ .Dropzone {
733
+ position: relative;
734
+ }
735
+
736
+ .Dropzone > .overlay {
793
737
  position: absolute;
794
- right: 16px;
795
- bottom: 16px;
796
- width: 56px;
797
- height: 56px;
798
- padding: 16px;
799
- transition: bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1);
738
+ left: 0;
739
+ right: 0;
740
+ top: 0;
741
+ bottom: 0;
742
+ background-color: #38ADC4;
743
+ z-index: 1;
744
+ opacity: 0;
745
+ transition: all 0.2s ease;
746
+ transition-delay: 100ms;
747
+ visibility: hidden;
748
+ display: flex;
749
+ justify-content: center;
750
+ align-items: center;
800
751
  }
801
752
 
802
- .Button.FloatingActionButton.raised {
803
- 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);
753
+ .Dropzone > .overlay .drop {
754
+ border-radius: 4px;
755
+ border: 1px dashed #FFFFFF;
756
+ position: absolute;
757
+ top: 18px;
758
+ left: 18px;
759
+ right: 18px;
760
+ bottom: 18px;
761
+ display: flex;
762
+ justify-content: center;
763
+ align-items: center;
764
+ font-weight: 500;
765
+ font-size: 18px;
766
+ color: #FFFFFF;
804
767
  }
805
768
 
806
- .Button.FloatingActionButton.mini {
807
- width: 40px;
808
- height: 40px;
809
- padding: 8px;
769
+ .Dropzone.dragging > .overlay {
770
+ opacity: 0.7;
771
+ visibility: visible;
772
+ transition-delay: 0s;
810
773
  }
811
774
 
812
- .Button.FloatingActionButton.hidden {
813
- bottom: -100px;
775
+ .Dropzone.dragging > * {
776
+ pointer-events: none;
777
+ }
778
+
779
+ .Dropzone > input.file {
780
+ position: absolute;
781
+ left: 0;
782
+ right: 0;
783
+ top: 0;
784
+ bottom: 0;
785
+ width: 100%;
786
+ height: 100%;
787
+ opacity: 0;
788
+ cursor: pointer;
789
+ z-index: 1;
790
+ }
791
+
792
+ .Modal {
793
+ display: block;
794
+ position: fixed;
795
+ top: 0;
796
+ left: 0;
797
+ right: 0;
798
+ bottom: 100%;
799
+ overflow-y: scroll;
800
+ transition: bottom 0ms linear;
801
+ transition-delay: 0.2s;
802
+ }
803
+
804
+ .Modal.show {
805
+ transition-delay: 0s;
806
+ bottom: 0;
807
+ }
808
+
809
+ .Modal > .overlay {
810
+ position: fixed;
811
+ top: 0;
812
+ bottom: 100%;
813
+ left: 0;
814
+ right: 0;
815
+ transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
816
+ opacity: 0;
817
+ background-color: black;
818
+ pointer-events: none;
819
+ }
820
+
821
+ .Modal > .overlay.show {
822
+ opacity: 0.5;
823
+ bottom: 0;
824
+ }
825
+
826
+ .Modal > .content {
827
+ left: 50%;
828
+ top: 10vh;
829
+ margin-bottom: 10vh;
830
+ font-size: 16px;
831
+ padding: 0;
832
+ opacity: 0;
833
+ transition: opacity 0.25s ease, transform 0.25s ease;
834
+ transform: scaleY(0) translateY(-200px) translateX(-50%);
835
+ transform-origin: top;
836
+ position: absolute;
837
+ border-radius: 2px;
838
+ box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
839
+ }
840
+
841
+ .Modal > .content.show {
842
+ opacity: 1;
843
+ transform: scaleY(1) translateY(0px) translateX(-50%);
844
+ }
845
+
846
+ .Modal > .content > .Scrollable {
847
+ overflow: visible;
848
+ max-height: 80vh;
849
+ }
850
+
851
+ .Modal > .content > .Scrollable > .viewport {
852
+ min-width: 10px;
853
+ min-height: 10px;
854
+ }
855
+
856
+ .Modal > .content > .Button.close {
857
+ top: 10px;
858
+ right: 10px;
859
+ position: absolute;
814
860
  }
815
861
 
816
862
  .FormUploadProgress {
@@ -882,43 +928,6 @@
882
928
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
883
929
  }
884
930
 
885
- .ModalMenu {
886
- position: absolute;
887
- top: 10px;
888
- right: 50px;
889
- }
890
-
891
- .ModalMenu .material-icons {
892
- color: #818181;
893
- }
894
-
895
- .ModalMenu .Button.animated {
896
- position: absolute;
897
- transition: opacity 150ms ease-in, right 200ms ease-in;
898
- opacity: 0;
899
- right: 0;
900
- top: 0;
901
- }
902
-
903
- .ModalMenu .Button.animated.mounting, .ModalMenu .Button.animated.mounted {
904
- opacity: 1;
905
- }
906
-
907
- .ModalMenu .Button.animated.unmounting {
908
- transition: opacity 100ms ease-out, right 200ms ease-out;
909
- }
910
-
911
- .ModalMenu .Button.active {
912
- background: #EBEBEB;
913
- }
914
-
915
- .ModalMenu .separator {
916
- height: 24px;
917
- width: 1px;
918
- background-color: #D9D9D9;
919
- margin-left: 4px;
920
- }
921
-
922
931
  .ImageGallery {
923
932
  position: fixed;
924
933
  top: 0;
@@ -1154,119 +1163,65 @@
1154
1163
  font-size: 24px;
1155
1164
  }
1156
1165
 
1157
- .Modal {
1158
- display: block;
1159
- position: fixed;
1160
- top: 0;
1161
- left: 0;
1162
- right: 0;
1163
- bottom: 100%;
1164
- overflow-y: scroll;
1165
- transition: bottom 0ms linear;
1166
- transition-delay: 0.2s;
1167
- }
1168
-
1169
- .Modal.show {
1170
- transition-delay: 0s;
1171
- bottom: 0;
1172
- }
1173
-
1174
- .Modal > .overlay {
1175
- position: fixed;
1176
- top: 0;
1177
- bottom: 100%;
1178
- left: 0;
1179
- right: 0;
1180
- transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
1181
- opacity: 0;
1182
- background-color: black;
1183
- pointer-events: none;
1166
+ .ModalMenu {
1167
+ position: absolute;
1168
+ top: 10px;
1169
+ right: 50px;
1184
1170
  }
1185
1171
 
1186
- .Modal > .overlay.show {
1187
- opacity: 0.5;
1188
- bottom: 0;
1172
+ .ModalMenu .material-icons {
1173
+ color: #818181;
1189
1174
  }
1190
1175
 
1191
- .Modal > .content {
1192
- left: 50%;
1193
- top: 10vh;
1194
- margin-bottom: 10vh;
1195
- font-size: 16px;
1196
- padding: 0;
1197
- opacity: 0;
1198
- transition: opacity 0.25s ease, transform 0.25s ease;
1199
- transform: scaleY(0) translateY(-200px) translateX(-50%);
1200
- transform-origin: top;
1176
+ .ModalMenu .Button.animated {
1201
1177
  position: absolute;
1202
- border-radius: 2px;
1203
- box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
1178
+ transition: opacity 150ms ease-in, right 200ms ease-in;
1179
+ opacity: 0;
1180
+ right: 0;
1181
+ top: 0;
1204
1182
  }
1205
1183
 
1206
- .Modal > .content.show {
1184
+ .ModalMenu .Button.animated.mounting, .ModalMenu .Button.animated.mounted {
1207
1185
  opacity: 1;
1208
- transform: scaleY(1) translateY(0px) translateX(-50%);
1209
- }
1210
-
1211
- .Modal > .content > .Scrollable {
1212
- overflow: visible;
1213
- max-height: 80vh;
1214
1186
  }
1215
1187
 
1216
- .Modal > .content > .Scrollable > .viewport {
1217
- min-width: 10px;
1218
- min-height: 10px;
1188
+ .ModalMenu .Button.animated.unmounting {
1189
+ transition: opacity 100ms ease-out, right 200ms ease-out;
1219
1190
  }
1220
1191
 
1221
- .Modal > .content > .Button.close {
1222
- top: 10px;
1223
- right: 10px;
1224
- position: absolute;
1192
+ .ModalMenu .Button.active {
1193
+ background: #EBEBEB;
1225
1194
  }
1226
1195
 
1227
- .Snackbar {
1228
- transform: translateX(-50%);
1229
- overflow: hidden;
1230
- background-color: #323232;
1231
- padding: 14px 24px 14px 24px;
1232
- color: #fff;
1233
- min-width: 288px;
1234
- max-width: 568px;
1235
- position: fixed;
1236
- bottom: -50px;
1237
- left: 50%;
1238
- display: flex;
1239
- flex-wrap: nowrap;
1240
- align-items: center;
1241
- opacity: 0;
1242
- transition: bottom 0.25s ease, opacity 0.2s ease;
1243
- border-radius: 4px;
1244
- box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
1196
+ .ModalMenu .separator {
1197
+ height: 24px;
1198
+ width: 1px;
1199
+ background-color: #D9D9D9;
1200
+ margin-left: 4px;
1245
1201
  }
1246
1202
 
1247
- .Snackbar.shown {
1248
- bottom: 15px;
1249
- opacity: 1;
1203
+ .Button.FloatingActionButton {
1204
+ position: absolute;
1205
+ right: 16px;
1206
+ bottom: 16px;
1207
+ width: 56px;
1208
+ height: 56px;
1209
+ padding: 16px;
1210
+ transition: bottom 0.2s cubic-bezier(0.4, 0, 0.2, 1);
1250
1211
  }
1251
1212
 
1252
- .Snackbar .message {
1253
- overflow: hidden;
1254
- line-height: 1.2em;
1255
- min-height: 1.2em;
1256
- max-height: 2.4em;
1257
- flex: 1;
1213
+ .Button.FloatingActionButton.raised {
1214
+ 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);
1258
1215
  }
1259
1216
 
1260
- .Snackbar .action {
1261
- text-transform: uppercase;
1262
- font-weight: bold;
1263
- margin-left: 48px;
1264
- color: #bf3727;
1217
+ .Button.FloatingActionButton.mini {
1218
+ width: 40px;
1219
+ height: 40px;
1220
+ padding: 8px;
1265
1221
  }
1266
1222
 
1267
- .Snackbar .action a {
1268
- text-decoration: none;
1269
- color: #bf3727;
1223
+ .Button.FloatingActionButton.hidden {
1224
+ bottom: -100px;
1270
1225
  }
1271
1226
 
1272
1227
  .Scrollable {
@@ -1364,6 +1319,51 @@
1364
1319
  will-change: left;
1365
1320
  }
1366
1321
 
1322
+ .Snackbar {
1323
+ transform: translateX(-50%);
1324
+ overflow: hidden;
1325
+ background-color: #323232;
1326
+ padding: 14px 24px 14px 24px;
1327
+ color: #fff;
1328
+ min-width: 288px;
1329
+ max-width: 568px;
1330
+ position: fixed;
1331
+ bottom: -50px;
1332
+ left: 50%;
1333
+ display: flex;
1334
+ flex-wrap: nowrap;
1335
+ align-items: center;
1336
+ opacity: 0;
1337
+ transition: bottom 0.25s ease, opacity 0.2s ease;
1338
+ border-radius: 4px;
1339
+ box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
1340
+ }
1341
+
1342
+ .Snackbar.shown {
1343
+ bottom: 15px;
1344
+ opacity: 1;
1345
+ }
1346
+
1347
+ .Snackbar .message {
1348
+ overflow: hidden;
1349
+ line-height: 1.2em;
1350
+ min-height: 1.2em;
1351
+ max-height: 2.4em;
1352
+ flex: 1;
1353
+ }
1354
+
1355
+ .Snackbar .action {
1356
+ text-transform: uppercase;
1357
+ font-weight: bold;
1358
+ margin-left: 48px;
1359
+ color: #bf3727;
1360
+ }
1361
+
1362
+ .Snackbar .action a {
1363
+ text-decoration: none;
1364
+ color: #bf3727;
1365
+ }
1366
+
1367
1367
  .SpinningProgress {
1368
1368
  width: 48px;
1369
1369
  height: 48px;
@@ -1417,6 +1417,88 @@
1417
1417
  stroke-dashoffset: -53px;
1418
1418
  }
1419
1419
  }
1420
+ .Switch {
1421
+ display: inline-flex;
1422
+ padding-top: 5px;
1423
+ }
1424
+
1425
+ .Switch .switch-input {
1426
+ display: none;
1427
+ }
1428
+
1429
+ .Switch .switch-label {
1430
+ position: relative;
1431
+ display: inline-flex;
1432
+ align-items: center;
1433
+ min-width: 38px;
1434
+ height: 24px;
1435
+ cursor: pointer;
1436
+ font-weight: 500;
1437
+ text-align: left;
1438
+ user-select: none;
1439
+ margin: 0;
1440
+ padding: 0;
1441
+ padding-left: 44px;
1442
+ box-sizing: border-box;
1443
+ }
1444
+
1445
+ .Switch .switch-label:before, .Switch .switch-label:after {
1446
+ content: "";
1447
+ box-sizing: border-box;
1448
+ position: absolute;
1449
+ margin: 0;
1450
+ outline: 0;
1451
+ top: 50%;
1452
+ transform: translate(0, -50%);
1453
+ transition: all 0.3s ease;
1454
+ }
1455
+
1456
+ .Switch .switch-label:before {
1457
+ left: 1px;
1458
+ width: 34px;
1459
+ height: 14px;
1460
+ background-color: #9E9E9E;
1461
+ border-radius: 8px;
1462
+ }
1463
+
1464
+ .Switch .switch-label:after {
1465
+ left: 0;
1466
+ width: 20px;
1467
+ height: 20px;
1468
+ background-color: #FAFAFA;
1469
+ border-radius: 50%;
1470
+ 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);
1471
+ }
1472
+
1473
+ .Switch .switch-label .toggle--on {
1474
+ display: none;
1475
+ }
1476
+
1477
+ .Switch .switch-label .toggle--off {
1478
+ display: inline-block;
1479
+ }
1480
+
1481
+ .Switch .switch-label .label {
1482
+ margin-right: 5px;
1483
+ }
1484
+
1485
+ .Switch .switch-input:checked + .switch-label:before {
1486
+ background-color: #A5D6A7;
1487
+ }
1488
+
1489
+ .Switch .switch-input:checked + .switch-label:after {
1490
+ background-color: #4CAF50;
1491
+ transform: translate(80%, -50%);
1492
+ }
1493
+
1494
+ .Switch .switch-input:checked + .switch-label .toggle--on {
1495
+ display: inline-block;
1496
+ }
1497
+
1498
+ .Switch .switch-input:checked + .switch-label .toggle--off {
1499
+ display: none;
1500
+ }
1501
+
1420
1502
  .ScrollableTable .Scrollable .scrollbar {
1421
1503
  top: 56px;
1422
1504
  }
@@ -1539,106 +1621,6 @@
1539
1621
  background-color: #f0f0f0;
1540
1622
  }
1541
1623
 
1542
- .Switch {
1543
- display: inline-flex;
1544
- padding-top: 5px;
1545
- }
1546
-
1547
- .Switch .switch-input {
1548
- display: none;
1549
- }
1550
-
1551
- .Switch .switch-label {
1552
- position: relative;
1553
- display: inline-flex;
1554
- align-items: center;
1555
- min-width: 38px;
1556
- height: 24px;
1557
- cursor: pointer;
1558
- font-weight: 500;
1559
- text-align: left;
1560
- user-select: none;
1561
- margin: 0;
1562
- padding: 0;
1563
- padding-left: 44px;
1564
- box-sizing: border-box;
1565
- }
1566
-
1567
- .Switch .switch-label:before, .Switch .switch-label:after {
1568
- content: "";
1569
- box-sizing: border-box;
1570
- position: absolute;
1571
- margin: 0;
1572
- outline: 0;
1573
- top: 50%;
1574
- transform: translate(0, -50%);
1575
- transition: all 0.3s ease;
1576
- }
1577
-
1578
- .Switch .switch-label:before {
1579
- left: 1px;
1580
- width: 34px;
1581
- height: 14px;
1582
- background-color: #9E9E9E;
1583
- border-radius: 8px;
1584
- }
1585
-
1586
- .Switch .switch-label:after {
1587
- left: 0;
1588
- width: 20px;
1589
- height: 20px;
1590
- background-color: #FAFAFA;
1591
- border-radius: 50%;
1592
- 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);
1593
- }
1594
-
1595
- .Switch .switch-label .toggle--on {
1596
- display: none;
1597
- }
1598
-
1599
- .Switch .switch-label .toggle--off {
1600
- display: inline-block;
1601
- }
1602
-
1603
- .Switch .switch-label .label {
1604
- margin-right: 5px;
1605
- }
1606
-
1607
- .Switch .switch-input:checked + .switch-label:before {
1608
- background-color: #A5D6A7;
1609
- }
1610
-
1611
- .Switch .switch-input:checked + .switch-label:after {
1612
- background-color: #4CAF50;
1613
- transform: translate(80%, -50%);
1614
- }
1615
-
1616
- .Switch .switch-input:checked + .switch-label .toggle--on {
1617
- display: inline-block;
1618
- }
1619
-
1620
- .Switch .switch-input:checked + .switch-label .toggle--off {
1621
- display: none;
1622
- }
1623
-
1624
- .DNDContainer .DroppableList .Draggable {
1625
- transform: unset;
1626
- transition: unset;
1627
- opacity: 1;
1628
- }
1629
-
1630
- .DNDContainer .DroppableList .Draggable.dragged {
1631
- transition: unset !important;
1632
- }
1633
-
1634
- .DNDContainer .DroppableList.hover .Draggable {
1635
- transition: transform 0.2s ease-in;
1636
- }
1637
-
1638
- .DNDContainer .DroppableList.resetting .Draggable {
1639
- transition: transform 0.1s ease-in;
1640
- }
1641
-
1642
1624
  .TextField {
1643
1625
  position: relative;
1644
1626
  width: 100%;
@@ -1780,4 +1762,22 @@
1780
1762
  animation-fill-mode: both;
1781
1763
  animation-timing-function: ease-in-out;
1782
1764
  animation-name: shake;
1765
+ }
1766
+
1767
+ .DNDContainer .DroppableList .Draggable {
1768
+ transform: unset;
1769
+ transition: unset;
1770
+ opacity: 1;
1771
+ }
1772
+
1773
+ .DNDContainer .DroppableList .Draggable.dragged {
1774
+ transition: unset !important;
1775
+ }
1776
+
1777
+ .DNDContainer .DroppableList.hover .Draggable {
1778
+ transition: transform 0.2s ease-in;
1779
+ }
1780
+
1781
+ .DNDContainer .DroppableList.resetting .Draggable {
1782
+ transition: transform 0.1s ease-in;
1783
1783
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ui-basics",
3
- "version": "0.0.135",
3
+ "version": "0.0.136",
4
4
  "description": "",
5
5
  "module": "index.js",
6
6
  "_main": "index.cjs.js",