@wizishop/angular-components 0.0.244 → 0.0.245

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.
@@ -534,241 +534,97 @@ $wac-subtitle-color: #7A87A1!default;
534
534
  }
535
535
  }
536
536
  }
537
- .wac-search {
537
+ .selected-list {
538
538
  width: 100%;
539
- min-height: 50px;
540
- border-radius: 3px;
541
- background-color: $wac-white;
542
- position: relative;
543
- z-index: 2;
544
- border: 1px solid $wac-border-light;
545
- transition: 0.3s ease;
546
- &.open {
547
- border-color: $wac-wizishop-blue;
548
- }
549
539
  &__wrapper {
550
- position: relative;
551
540
  display: flex;
552
- justify-content: space-between;
553
- align-items: stretch;
554
- align-content: stretch;
555
- flex-wrap: nowrap;
556
- width: 100%;
557
- min-height: 50px;
558
- @include media('<tablet') {
559
- padding: 0 12px;
560
- }
561
- input {
562
- background: transparent;
563
- border: none;
564
- color: $wac-main-text;
565
- font-size: rem(14);
566
- height: 50px;
567
- line-height: 50px;
568
- padding: 0 20px 0 48px;
569
- font-weight: 400;
541
+ flex-direction: column;
542
+ align-items: flex-start;
543
+ justify-content: flex-start;
544
+ &__head {
570
545
  width: 100%;
571
- @include media('<tablet') {
572
- padding: 0 0 0 10px;
573
- }
574
- &::-webkit-input-placeholder {
575
- /* Chrome/Opera/Safari */
576
- color: $wac-multiple-search-input-color;
577
- opacity: 1;
578
- font-weight: 400;
579
- @include media('<tablet') {
580
- font-size: rem(11);
581
- }
582
- }
583
- &::-moz-placeholder {
584
- /* Firefox 19+ */
585
- color: $wac-multiple-search-input-color;
586
- opacity: 1;
587
- font-weight: 400;
588
- @include media('<tablet') {
589
- font-size: rem(11);
590
- }
591
- }
592
- &:-ms-input-placeholder {
593
- /* IE 10+ */
594
- color: $wac-multiple-search-input-color;
595
- opacity: 1;
596
- font-weight: 400;
597
- @include media('<tablet') {
598
- font-size: rem(11);
599
- }
600
- }
601
- &:-moz-placeholder {
602
- /* Firefox 18- */
603
- color: $wac-multiple-search-input-color;
604
- opacity: 1;
605
- font-weight: 400;
606
- @include media('<tablet') {
607
- font-size: rem(11);
608
- }
609
- }
610
- &:focus {
611
- & + button i {
612
- color: $wac-main-text;
613
- }
614
- &::-webkit-input-placeholder {
615
- /* Chrome/Opera/Safari */
616
- color: $wac-white;
617
- opacity: 1;
618
- }
619
- &::-moz-placeholder {
620
- /* Firefox 19+ */
621
- color: $wac-white;
622
- opacity: 1;
623
- }
624
- &:-ms-input-placeholder {
625
- /* IE 10+ */
626
- color: $wac-white;
627
- opacity: 1;
628
- }
629
- &:-moz-placeholder {
630
- /* Firefox 18- */
631
- color: $wac-white;
632
- opacity: 1;
633
- }
634
- }
635
- }
636
- button {
546
+ min-height: rem(60);
637
547
  display: flex;
638
- align-items: center;
639
- align-content: center;
640
- justify-content: center;
641
- width: 18px;
642
- height: 18px;
643
- border-radius: 3px;
644
- position: absolute;
645
- left: 20px;
646
- top: 50%;
647
- transform: translateY(-50%);
648
- border: none;
649
- cursor: pointer;
650
- background-color: $wac-white;
651
- i {
652
- font-size: rem(18);
653
- color: $wac-color-icon-search-multiple-search;
654
- transition: 0.3s ease;
548
+ justify-content: space-between;
549
+ padding: 10px 20px;
550
+ background-color: $wac-gray-background;
551
+ margin: 0 0 10px;
552
+ > p {
553
+ display: flex;
554
+ align-items: center;
555
+ white-space: nowrap;
556
+ font-size: rem(16);
557
+ line-height: rem(19);
558
+ font-weight: 500;
655
559
  }
656
- &:hover {
657
- i {
658
- color: $wac-wizishop-blue !important;
560
+
561
+ &__button {
562
+ height: rem(40);
563
+ width: fit-content;
564
+ margin-left: auto;
565
+
566
+ &__mobile {
567
+ @include media('>=1024px') {
568
+ display: none;
569
+ }
659
570
  }
571
+
572
+ &__notMobile {
573
+ @include media('<1024px') {
574
+ display: none;
575
+ }
576
+ }
577
+
660
578
  }
579
+
661
580
  }
662
- }
663
- &__absolute {
664
- position: absolute;
665
- top: 100%;
666
- margin-top: rem(14);
667
- left: -1px;
668
- width: auto;
669
- min-width: calc(100% - 38px);
670
- max-width: calc(100% + 2px);
671
- border: 1px solid $wac-border-light;
672
- border-radius: 3px;
673
- display: flex;
674
- flex-direction: column;
675
- justify-content: flex-start;
676
- align-items: flex-start;
677
- background-color: $wac-white;
678
- max-height: 260px;
679
- height: auto;
680
- visibility: visible;
681
- opacity: 1;
682
- box-shadow: 3px 3px 20px $wac-select-box-shadow;
683
- padding: 10px;
684
- &.hidden {
685
- visibility: hidden;
686
- opacity: 0;
687
- & > * {
688
- opacity: 0;
689
- transition: 0s;
690
- }
691
- }
692
- .ps {
693
- max-height: 240px;
694
- }
695
- &.open,
696
- &.open.hidden {
697
- position: relative;
698
- left: auto;
699
- top: 0;
700
- transform: translateX(-1px);
701
- visibility: visible;
702
- opacity: 1;
703
- & > * {
704
- opacity: 1;
705
- transition: 0s;
706
- }
707
- }
708
- &__item {
581
+ &__content {
709
582
  width: 100%;
710
- font-size: rem(14);
711
- line-height: rem(30);
712
- cursor: pointer;
713
- transition: 0.3s ease;
714
- position: relative;
715
583
  display: flex;
584
+ flex-wrap: wrap;
585
+ align-items: flex-start;
586
+ align-content: flex-start;
716
587
  justify-content: flex-start;
717
- align-content: center;
718
- align-items: center;
719
- color: $wac-second-color;
720
- > div {
721
- width: 100%;
588
+ &__item {
589
+ white-space: nowrap;
590
+ margin: 0 10px 10px 0;
591
+ border: 1px solid $wac-border-form;
592
+ border-radius: 2px;
593
+ color: $wac-second-color;
594
+ height: rem(40);
722
595
  display: flex;
596
+ justify-content: center;
723
597
  align-items: center;
724
- align-content: center;
725
- }
726
- .icon {
727
- width: 24px;
728
- margin: 0 10px 0 0;
729
- height: auto;
730
- max-height: 24px;
731
- }
732
- &:not(:last-child) {
733
- margin: 0 0 rem(10);
734
- }
735
- &:empty {
736
- display: none;
737
- }
738
- &:first-child {
739
- border-width: 1px 0 1px;
740
- }
741
- &:hover,
742
- &:focus {
743
- background-color: $wac-gray-background;
744
- color: $wac-main-text;
745
- }
746
- > div {
747
- padding: 0 10px;
748
- &.selected {
749
- background-color: $wac-gray-background;
598
+ padding: 0 20px;
599
+ transition: .3s ease;
600
+ font-size: rem(16);
601
+ line-height: rem(19);
602
+ font-weight: 500;
603
+ cursor: pointer;
604
+ &:hover, &:focus {
605
+ border: 1px solid $wac-main-text;
606
+ }
607
+ > i {
608
+ color: $wac-green-color;
609
+ max-width: 0;
610
+ display: block;
611
+ transition: .3s ease;
612
+ overflow: hidden;
613
+ }
614
+ &.active {
750
615
  color: $wac-main-text;
616
+ > i {
617
+ max-width: unset;
618
+ margin: 0 0 0 10px;
619
+ }
620
+ }
621
+ &:first-child {
622
+ margin-left: 18px;
751
623
  }
752
- }
753
- }
754
- &__empty {
755
- display: flex;
756
- width: 100%;
757
- justify-content: center;
758
- align-items: center;
759
- padding: 10px;
760
- span {
761
- font-size: rem(16);
762
- font-weight: 400;
763
- text-align: center;
764
- color: $wac-second-color;
765
- display: inline-block;
766
- line-height: rem(25);
767
624
  }
768
625
  }
769
626
  }
770
- }
771
- .wac-alert-popup {
627
+ }.wac-alert-popup {
772
628
  .alert {
773
629
  z-index: 999999;
774
630
  position: fixed;
@@ -927,160 +783,304 @@ $wac-subtitle-color: #7A87A1!default;
927
783
  white-space: nowrap;
928
784
  font-weight: 600;
929
785
  }
930
- &__close {
931
- display: none;
786
+ &__close {
787
+ display: none;
788
+ }
789
+ }
790
+ }
791
+ }
792
+
793
+ &__title {
794
+ font-size: rem(24);
795
+ line-height: 1.4;
796
+ margin: 0;
797
+ font-weight: 700;
798
+ text-align: center;
799
+ width: 100%;
800
+ }
801
+
802
+ &__text {
803
+ font-size: rem(16);
804
+ font-weight: 500;
805
+ text-align: center;
806
+ width: 100%;
807
+ margin: 0;
808
+ }
809
+
810
+ &__close {
811
+ cursor: pointer;
812
+ display: flex;
813
+ position: absolute;
814
+ top: 10px;
815
+ right: 10px;
816
+ width: rem(40);
817
+ height: rem(40);
818
+ border-radius: 50%;
819
+ justify-content: center;
820
+ align-items: center;
821
+ background-color: darken($wac-primary-button, 10%);
822
+ transition: .3s ease;
823
+ &:hover, &:focus {
824
+ background-color: darken($wac-primary-button, 15%);
825
+ }
826
+ i {
827
+ font-size: rem(20);
828
+ color: $white;
829
+ }
830
+ .is-success & {
831
+ background-color: darken($wac-color-success-popup-alert, 20%);
832
+ &:hover, &:focus {
833
+ background-color: darken($wac-color-success-popup-alert, 30%);
834
+ }
835
+ }
836
+ .is-danger & {
837
+ background-color: darken($wac-primary-button, 10%);
838
+ &:hover, &:focus {
839
+ background-color: darken($wac-primary-button, 15%);
840
+ }
841
+ }
842
+ .fullsize & {
843
+ top: 50%;
844
+ transform: translateY(-50%);
845
+ }
846
+ }
847
+
848
+ }
849
+ .wac-search {
850
+ width: 100%;
851
+ min-height: 50px;
852
+ border-radius: 3px;
853
+ background-color: $wac-white;
854
+ position: relative;
855
+ z-index: 2;
856
+ border: 1px solid $wac-border-light;
857
+ transition: 0.3s ease;
858
+ &.open {
859
+ border-color: $wac-wizishop-blue;
860
+ }
861
+ &__wrapper {
862
+ position: relative;
863
+ display: flex;
864
+ justify-content: space-between;
865
+ align-items: stretch;
866
+ align-content: stretch;
867
+ flex-wrap: nowrap;
868
+ width: 100%;
869
+ min-height: 50px;
870
+ @include media('<tablet') {
871
+ padding: 0 12px;
872
+ }
873
+ input {
874
+ background: transparent;
875
+ border: none;
876
+ color: $wac-main-text;
877
+ font-size: rem(14);
878
+ height: 50px;
879
+ line-height: 50px;
880
+ padding: 0 20px 0 48px;
881
+ font-weight: 400;
882
+ width: 100%;
883
+ @include media('<tablet') {
884
+ padding: 0 0 0 10px;
885
+ }
886
+ &::-webkit-input-placeholder {
887
+ /* Chrome/Opera/Safari */
888
+ color: $wac-multiple-search-input-color;
889
+ opacity: 1;
890
+ font-weight: 400;
891
+ @include media('<tablet') {
892
+ font-size: rem(11);
893
+ }
894
+ }
895
+ &::-moz-placeholder {
896
+ /* Firefox 19+ */
897
+ color: $wac-multiple-search-input-color;
898
+ opacity: 1;
899
+ font-weight: 400;
900
+ @include media('<tablet') {
901
+ font-size: rem(11);
902
+ }
903
+ }
904
+ &:-ms-input-placeholder {
905
+ /* IE 10+ */
906
+ color: $wac-multiple-search-input-color;
907
+ opacity: 1;
908
+ font-weight: 400;
909
+ @include media('<tablet') {
910
+ font-size: rem(11);
911
+ }
912
+ }
913
+ &:-moz-placeholder {
914
+ /* Firefox 18- */
915
+ color: $wac-multiple-search-input-color;
916
+ opacity: 1;
917
+ font-weight: 400;
918
+ @include media('<tablet') {
919
+ font-size: rem(11);
920
+ }
921
+ }
922
+ &:focus {
923
+ & + button i {
924
+ color: $wac-main-text;
925
+ }
926
+ &::-webkit-input-placeholder {
927
+ /* Chrome/Opera/Safari */
928
+ color: $wac-white;
929
+ opacity: 1;
930
+ }
931
+ &::-moz-placeholder {
932
+ /* Firefox 19+ */
933
+ color: $wac-white;
934
+ opacity: 1;
935
+ }
936
+ &:-ms-input-placeholder {
937
+ /* IE 10+ */
938
+ color: $wac-white;
939
+ opacity: 1;
940
+ }
941
+ &:-moz-placeholder {
942
+ /* Firefox 18- */
943
+ color: $wac-white;
944
+ opacity: 1;
932
945
  }
933
946
  }
934
947
  }
935
- }
936
-
937
- &__title {
938
- font-size: rem(24);
939
- line-height: 1.4;
940
- margin: 0;
941
- font-weight: 700;
942
- text-align: center;
943
- width: 100%;
944
- }
945
-
946
- &__text {
947
- font-size: rem(16);
948
- font-weight: 500;
949
- text-align: center;
950
- width: 100%;
951
- margin: 0;
952
- }
953
-
954
- &__close {
955
- cursor: pointer;
956
- display: flex;
957
- position: absolute;
958
- top: 10px;
959
- right: 10px;
960
- width: rem(40);
961
- height: rem(40);
962
- border-radius: 50%;
963
- justify-content: center;
964
- align-items: center;
965
- background-color: darken($wac-primary-button, 10%);
966
- transition: .3s ease;
967
- &:hover, &:focus {
968
- background-color: darken($wac-primary-button, 15%);
969
- }
970
- i {
971
- font-size: rem(20);
972
- color: $white;
973
- }
974
- .is-success & {
975
- background-color: darken($wac-color-success-popup-alert, 20%);
976
- &:hover, &:focus {
977
- background-color: darken($wac-color-success-popup-alert, 30%);
978
- }
979
- }
980
- .is-danger & {
981
- background-color: darken($wac-primary-button, 10%);
982
- &:hover, &:focus {
983
- background-color: darken($wac-primary-button, 15%);
984
- }
985
- }
986
- .fullsize & {
948
+ button {
949
+ display: flex;
950
+ align-items: center;
951
+ align-content: center;
952
+ justify-content: center;
953
+ width: 18px;
954
+ height: 18px;
955
+ border-radius: 3px;
956
+ position: absolute;
957
+ left: 20px;
987
958
  top: 50%;
988
959
  transform: translateY(-50%);
960
+ border: none;
961
+ cursor: pointer;
962
+ background-color: $wac-white;
963
+ i {
964
+ font-size: rem(18);
965
+ color: $wac-color-icon-search-multiple-search;
966
+ transition: 0.3s ease;
967
+ }
968
+ &:hover {
969
+ i {
970
+ color: $wac-wizishop-blue !important;
971
+ }
972
+ }
989
973
  }
990
974
  }
991
-
992
- }
993
- .selected-list {
994
- width: 100%;
995
- &__wrapper {
975
+ &__absolute {
976
+ position: absolute;
977
+ top: 100%;
978
+ margin-top: rem(14);
979
+ left: -1px;
980
+ width: auto;
981
+ min-width: calc(100% - 38px);
982
+ max-width: calc(100% + 2px);
983
+ border: 1px solid $wac-border-light;
984
+ border-radius: 3px;
996
985
  display: flex;
997
986
  flex-direction: column;
998
- align-items: flex-start;
999
987
  justify-content: flex-start;
1000
- &__head {
1001
- width: 100%;
1002
- min-height: rem(60);
1003
- display: flex;
1004
- justify-content: space-between;
1005
- padding: 10px 20px;
1006
- background-color: $wac-gray-background;
1007
- margin: 0 0 10px;
1008
- > p {
1009
- display: flex;
1010
- align-items: center;
1011
- white-space: nowrap;
1012
- font-size: rem(16);
1013
- line-height: rem(19);
1014
- font-weight: 500;
988
+ align-items: flex-start;
989
+ background-color: $wac-white;
990
+ max-height: 260px;
991
+ height: auto;
992
+ visibility: visible;
993
+ opacity: 1;
994
+ box-shadow: 3px 3px 20px $wac-select-box-shadow;
995
+ padding: 10px;
996
+ &.hidden {
997
+ visibility: hidden;
998
+ opacity: 0;
999
+ & > * {
1000
+ opacity: 0;
1001
+ transition: 0s;
1015
1002
  }
1016
-
1017
- &__button {
1018
- height: rem(40);
1019
- width: fit-content;
1020
- margin-left: auto;
1021
-
1022
- &__mobile {
1023
- @include media('>=1024px') {
1024
- display: none;
1025
- }
1026
- }
1027
-
1028
- &__notMobile {
1029
- @include media('<1024px') {
1030
- display: none;
1031
- }
1032
- }
1033
-
1003
+ }
1004
+ .ps {
1005
+ max-height: 240px;
1006
+ }
1007
+ &.open,
1008
+ &.open.hidden {
1009
+ position: relative;
1010
+ left: auto;
1011
+ top: 0;
1012
+ transform: translateX(-1px);
1013
+ visibility: visible;
1014
+ opacity: 1;
1015
+ & > * {
1016
+ opacity: 1;
1017
+ transition: 0s;
1034
1018
  }
1035
-
1036
1019
  }
1037
- &__content {
1020
+ &__item {
1038
1021
  width: 100%;
1022
+ font-size: rem(14);
1023
+ line-height: rem(30);
1024
+ cursor: pointer;
1025
+ transition: 0.3s ease;
1026
+ position: relative;
1039
1027
  display: flex;
1040
- flex-wrap: wrap;
1041
- align-items: flex-start;
1042
- align-content: flex-start;
1043
1028
  justify-content: flex-start;
1044
- &__item {
1045
- white-space: nowrap;
1046
- margin: 0 10px 10px 0;
1047
- border: 1px solid $wac-border-form;
1048
- border-radius: 2px;
1049
- color: $wac-second-color;
1050
- height: rem(40);
1029
+ align-content: center;
1030
+ align-items: center;
1031
+ color: $wac-second-color;
1032
+ > div {
1033
+ width: 100%;
1051
1034
  display: flex;
1052
- justify-content: center;
1053
1035
  align-items: center;
1054
- padding: 0 20px;
1055
- transition: .3s ease;
1056
- font-size: rem(16);
1057
- line-height: rem(19);
1058
- font-weight: 500;
1059
- cursor: pointer;
1060
- &:hover, &:focus {
1061
- border: 1px solid $wac-main-text;
1062
- }
1063
- > i {
1064
- color: $wac-green-color;
1065
- max-width: 0;
1066
- display: block;
1067
- transition: .3s ease;
1068
- overflow: hidden;
1069
- }
1070
- &.active {
1036
+ align-content: center;
1037
+ }
1038
+ .icon {
1039
+ width: 24px;
1040
+ margin: 0 10px 0 0;
1041
+ height: auto;
1042
+ max-height: 24px;
1043
+ }
1044
+ &:not(:last-child) {
1045
+ margin: 0 0 rem(10);
1046
+ }
1047
+ &:empty {
1048
+ display: none;
1049
+ }
1050
+ &:first-child {
1051
+ border-width: 1px 0 1px;
1052
+ }
1053
+ &:hover,
1054
+ &:focus {
1055
+ background-color: $wac-gray-background;
1056
+ color: $wac-main-text;
1057
+ }
1058
+ > div {
1059
+ padding: 0 10px;
1060
+ &.selected {
1061
+ background-color: $wac-gray-background;
1071
1062
  color: $wac-main-text;
1072
- > i {
1073
- max-width: unset;
1074
- margin: 0 0 0 10px;
1075
- }
1076
- }
1077
- &:first-child {
1078
- margin-left: 18px;
1079
1063
  }
1080
1064
  }
1081
1065
  }
1066
+ &__empty {
1067
+ display: flex;
1068
+ width: 100%;
1069
+ justify-content: center;
1070
+ align-items: center;
1071
+ padding: 10px;
1072
+ span {
1073
+ font-size: rem(16);
1074
+ font-weight: 400;
1075
+ text-align: center;
1076
+ color: $wac-second-color;
1077
+ display: inline-block;
1078
+ line-height: rem(25);
1079
+ }
1080
+ }
1082
1081
  }
1083
- }.wac-block {
1082
+ }
1083
+ .wac-block {
1084
1084
  background-color: $white;
1085
1085
  @include padding(rem(30));
1086
1086
  box-shadow: 0 rem(2) rem(5) rgba(45, 62, 85, 0.05);
@@ -5303,6 +5303,7 @@ span.wac-tooltip {
5303
5303
  &.oneline {
5304
5304
  width: auto!important;
5305
5305
  white-space: nowrap;
5306
+ min-width: unset!important;
5306
5307
  }
5307
5308
 
5308
5309
  @include media('>=tablet') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/angular-components",
3
- "version": "0.0.244",
3
+ "version": "0.0.245",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^11.2.12",
6
6
  "@angular/core": "^11.2.12",