@expressms/smartapp-ui 1.0.6 → 1.1.0

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.
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M3.56794 9.99964C3.56794 8.12635 4.388 6.44602 5.67438 5.2722L7.58787 7.18569V2.36176H2.76395L4.53272 4.13054C2.95691 5.59379 1.95996 7.67612 1.95996 9.99964C1.95996 13.8617 4.6804 17.0832 8.30458 17.8602C8.77703 17.9615 9.19585 17.5803 9.19585 17.0972C9.19585 16.6848 8.88658 16.3426 8.48574 16.2459C5.66795 15.5657 3.56794 13.0229 3.56794 9.99964ZM18.0397 9.99964C18.0397 6.13764 15.3193 2.91614 11.6951 2.1391C11.2226 2.03781 10.8038 2.41894 10.8038 2.90212C10.8038 3.31447 11.1131 3.65666 11.5139 3.75342C14.3317 4.4336 16.4317 6.97643 16.4317 9.99964C16.4317 11.8729 15.6117 13.5533 14.3253 14.7271L12.4118 12.8136V17.6375H17.2357L15.4669 15.8688C17.0428 14.4055 18.0397 12.3232 18.0397 9.99964Z" fill="#111111" fill-opacity="0.3"/>
3
+ </svg>
@@ -3,8 +3,24 @@ export declare const DEFAULT_BLUE_ICON_COLOR = "#4799E3";
3
3
  export declare const DEFAULT_RED_ICON_COLOR = "#EB5545";
4
4
  export declare const DEFAULT_GRAY_ICON_COLOR = "#1111114D";
5
5
  export declare const DEFAULT_BLACK_ICON_COLOR = "#111111";
6
+ export declare const DEFAULT_HEADER_TEXT_COLOR = "#111111";
7
+ export declare const DEFAULT_HEADER_BACKGROUND_COLOR = "#FFFFFF";
8
+ export declare const DEFAULT_WHITE_LOADER_BACKGROUND_COLOR = "#FFFFFF";
9
+ export declare const DEFAULT_GRAY_LOADER_BACKGROUND_COLOR = "#E0E4EC66";
10
+ export declare const DEFAULT_TEXT_BUTTON_COLOR = "#111111";
11
+ export declare const DEFAULT_BACKGROUND_BUTTON_COLOR = "#FFFFFF";
6
12
  export declare const INPUT_TYPE_PASSWORD = "password";
7
13
  export declare const INPUT_TYPE_TEXT = "text";
14
+ export declare enum FONT_SIZE {
15
+ small = "14px",
16
+ default = "16px",
17
+ large = "22px"
18
+ }
19
+ export declare enum LINE_HEIGHT {
20
+ small = "19px",
21
+ default = "22px",
22
+ large = "30px"
23
+ }
8
24
  export declare enum PLATFORM {
9
25
  web = "web",
10
26
  ios = "ios",
@@ -3,8 +3,26 @@ export var DEFAULT_BLUE_ICON_COLOR = '#4799E3';
3
3
  export var DEFAULT_RED_ICON_COLOR = '#EB5545';
4
4
  export var DEFAULT_GRAY_ICON_COLOR = '#1111114D';
5
5
  export var DEFAULT_BLACK_ICON_COLOR = '#111111';
6
+ export var DEFAULT_HEADER_TEXT_COLOR = '#111111';
7
+ export var DEFAULT_HEADER_BACKGROUND_COLOR = '#FFFFFF';
8
+ export var DEFAULT_WHITE_LOADER_BACKGROUND_COLOR = '#FFFFFF';
9
+ export var DEFAULT_GRAY_LOADER_BACKGROUND_COLOR = '#E0E4EC66';
10
+ export var DEFAULT_TEXT_BUTTON_COLOR = '#111111';
11
+ export var DEFAULT_BACKGROUND_BUTTON_COLOR = '#FFFFFF';
6
12
  export var INPUT_TYPE_PASSWORD = 'password';
7
13
  export var INPUT_TYPE_TEXT = 'text';
14
+ export var FONT_SIZE;
15
+ (function (FONT_SIZE) {
16
+ FONT_SIZE["small"] = "14px";
17
+ FONT_SIZE["default"] = "16px";
18
+ FONT_SIZE["large"] = "22px";
19
+ })(FONT_SIZE || (FONT_SIZE = {}));
20
+ export var LINE_HEIGHT;
21
+ (function (LINE_HEIGHT) {
22
+ LINE_HEIGHT["small"] = "19px";
23
+ LINE_HEIGHT["default"] = "22px";
24
+ LINE_HEIGHT["large"] = "30px";
25
+ })(LINE_HEIGHT || (LINE_HEIGHT = {}));
8
26
  export var PLATFORM;
9
27
  (function (PLATFORM) {
10
28
  PLATFORM["web"] = "web";
@@ -1 +1,4 @@
1
1
  export declare const getIconColor: (iconColor: string | undefined, defaultIconColor: string) => string;
2
+ export declare const isWebPlatform: (platform: string) => boolean;
3
+ export declare const isIosPlatform: (platform: string) => boolean;
4
+ export declare const isAndroidPlatform: (platform: string) => boolean;
@@ -1,3 +1,7 @@
1
+ import { PLATFORM } from '../constants';
1
2
  export var getIconColor = function (iconColor, defaultIconColor) {
2
3
  return (iconColor && CSS.supports('color', iconColor)) ? iconColor : defaultIconColor;
3
4
  };
5
+ export var isWebPlatform = function (platform) { return platform === PLATFORM.web; };
6
+ export var isIosPlatform = function (platform) { return platform === PLATFORM.ios; };
7
+ export var isAndroidPlatform = function (platform) { return platform === PLATFORM.android; };
@@ -5,16 +5,18 @@ $color-black: rgba(17, 17, 17, 1);
5
5
  $color-dark-gray: rgba(17, 17, 17, 0.5);
6
6
  $color-darker-gray: rgba(17, 17, 17, 0.3);
7
7
  $color-darker-gray-opacity: rgba(0, 0, 0, 0.2);
8
- $color-darkest-gray-opacity: #ccc;
8
+ $color-darkest-gray-opacity: rgba(204, 204, 204, 1);
9
9
  $color-gray: rgba(17, 17, 17, 0.1);
10
10
  $color-light-gray: rgba(239, 242, 244, 1);
11
11
  $color-lighter-gray: rgba(224, 228, 236, 1);
12
12
  $color-lighter-gray-opacity: rgba(224, 228, 236, 0.4);
13
13
  $color-lightest-gray: rgba(0, 0, 0, 0.05);
14
14
  $color-white: rgba(255, 255, 255, 1);
15
+ $color-dark-red: rgba(222, 97, 97, 1);
15
16
  $color-red: rgba(235, 85, 69, 1);
17
+ $color-purple: rgba(130, 98, 223, 1);
16
18
  $color-blue: rgba(71, 153, 227, 1);
17
- $color-light-blue: #cdf4ff;
19
+ $color-light-blue: rgba(205, 244, 255, 1);
18
20
  $color-lighter-blue: rgba(71, 153, 227, 0.2);
19
21
 
20
22
  $border-color: rgba(85, 85, 85, 0.2);
@@ -22,7 +24,7 @@ $border-color: rgba(85, 85, 85, 0.2);
22
24
  $popup-background: rgba(0, 0, 0, 0.3);
23
25
 
24
26
  $box-shadow-color: rgba(0, 0, 0, 0.25);
25
- $box-shadow-dark-color: rgb(0 0 0 / 60%);
27
+ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
26
28
 
27
29
  .smartapp-action-modal {
28
30
  &__content {
@@ -134,12 +136,19 @@ $box-shadow-dark-color: rgb(0 0 0 / 60%);
134
136
  height: 40px;
135
137
  font-size: 18px;
136
138
  color: $color-white;
137
- background-color: $color-light-blue;
139
+ background: linear-gradient(135deg, $color-purple 0%, $color-dark-red 100%);
138
140
  text-decoration: none;
139
141
  white-space: nowrap;
140
142
  font-weight: 500;
141
143
  border-radius: 50%;
142
144
  cursor: pointer;
145
+
146
+ img {
147
+ width: 100%;
148
+ height: 100%;
149
+ object-fit: contain;
150
+ border-radius: 50%;
151
+ }
143
152
  }
144
153
 
145
154
  .smartapp-button {
@@ -639,13 +648,20 @@ $box-shadow-dark-color: rgb(0 0 0 / 60%);
639
648
  }
640
649
 
641
650
  .smartapp-header {
642
- width: 100%;
643
651
  font-weight: 700;
644
- font-size: 16px;
645
- line-height: 22px;
646
- color: $color-black;
647
652
  display: flex;
648
653
  justify-content: space-between;
654
+ padding: 14.5px 0 14.5px 16px;
655
+
656
+ &__web {
657
+ width: calc(100% - 98px);
658
+ padding-right: 82px;
659
+ }
660
+
661
+ &__ios, &__android {
662
+ width: calc(100% - 125px);
663
+ padding-right: 109px;
664
+ }
649
665
 
650
666
  &__info {
651
667
  display: flex;
@@ -659,6 +675,32 @@ $box-shadow-dark-color: rgb(0 0 0 / 60%);
659
675
  margin: 0;
660
676
  }
661
677
  }
678
+
679
+ &__icons {
680
+ display: flex;
681
+ align-items: center;
682
+ gap: 16px;
683
+
684
+ &--trash {
685
+ display: flex;
686
+ align-items: center;
687
+ }
688
+
689
+ &--refresh {
690
+ cursor: default !important;
691
+ animation: spin 1s linear infinite;
692
+ }
693
+ }
694
+
695
+ svg {
696
+ cursor: pointer;
697
+ }
698
+ }
699
+
700
+ @keyframes spin {
701
+ to {
702
+ transform: rotate(360deg);
703
+ }
662
704
  }
663
705
 
664
706
  .smartapp-input {
@@ -700,6 +742,7 @@ $box-shadow-dark-color: rgb(0 0 0 / 60%);
700
742
  outline: none;
701
743
  }
702
744
  }
745
+
703
746
  &--eye-button {
704
747
  display: flex;
705
748
  align-items: center;
@@ -729,31 +772,33 @@ $box-shadow-dark-color: rgb(0 0 0 / 60%);
729
772
  }
730
773
 
731
774
  .smartapp-loader-wrapper {
732
- position: fixed;
733
- z-index: 100;
734
- top: 0;
735
- right: 0;
736
- bottom: 0;
737
- left: 0;
738
775
  display: flex;
739
776
  align-items: center;
740
777
  justify-content: center;
741
- background: $color-lighter-gray;
778
+
779
+ &__full-screen {
780
+ position: fixed;
781
+ top: 0;
782
+ right: 0;
783
+ bottom: 0;
784
+ left: 0;
785
+ z-index: 100;
786
+ }
742
787
  }
743
788
 
744
789
  .smartapp-loader {
745
790
  display: flex;
746
791
  flex-direction: column;
747
792
  align-items: center;
748
- width: 150px;
793
+ gap: 16px;
794
+ padding: 8px 0;
749
795
 
750
796
  &__title {
751
- margin: 8px 0 0 0;
752
797
  font-weight: 400;
753
- font-size: 14px;
754
- line-height: 19px;
798
+ text-align: center;
755
799
  color: $color-darker-gray;
756
800
  word-break: break-word;
801
+ margin: 0;
757
802
  }
758
803
  }
759
804
 
@@ -941,6 +986,23 @@ input:checked + .smartapp-slider:before {
941
986
  }
942
987
 
943
988
  .smartapp-stories-content {
989
+ &__background-video {
990
+ position: absolute;
991
+ width: 100%;
992
+ height: 100%;
993
+ background: $color-black;
994
+ object-fit: cover;
995
+ -webkit-filter: brightness(0.8) blur(15px);
996
+ filter: brightness(0.8) blur(15px);
997
+ -webkit-transform: scale(1.2, 1.1);
998
+ transform: scale(1.2, 1.1);
999
+ }
1000
+
1001
+ & > .smartapp-stories-content__background-video:last-child {
1002
+ -webkit-transform: scale(1.1, 1.1);
1003
+ transform: scale(1.1, 1.1);
1004
+ }
1005
+
944
1006
  &::before {
945
1007
  content: '';
946
1008
  position: absolute;
@@ -960,6 +1022,17 @@ input:checked + .smartapp-slider:before {
960
1022
  height: 100%;
961
1023
  position: relative;
962
1024
 
1025
+ & > div > div:nth-child(2) > div {
1026
+ width: 100%;
1027
+ height: 100%;
1028
+
1029
+ & > video:first-child {
1030
+ width: 100% !important;
1031
+ height: 100%;
1032
+ z-index: 2;
1033
+ }
1034
+ }
1035
+
963
1036
  &__web {
964
1037
  width: 400px;
965
1038
  }
@@ -969,6 +1042,10 @@ input:checked + .smartapp-slider:before {
969
1042
  width: 100%;
970
1043
  }
971
1044
 
1045
+ &__video {
1046
+ z-index: 1;
1047
+ }
1048
+
972
1049
  &__story {
973
1050
  color: $color-white;
974
1051
  padding-top: var(--padding);
@@ -1006,8 +1083,6 @@ input:checked + .smartapp-slider:before {
1006
1083
  font-weight: 600;
1007
1084
  line-height: 19px;
1008
1085
  text-align: center;
1009
- color: $color-black;
1010
- background: $color-white;
1011
1086
  border-radius: 8px;
1012
1087
  padding: 12px 32px;
1013
1088
  cursor: pointer;