@expressms/smartapp-ui 1.1.0 → 1.1.1

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.
Files changed (28) hide show
  1. package/build/main/assets/icons/loader.svg +3 -0
  2. package/build/main/constants/constants.d.ts +4 -0
  3. package/build/main/constants/constants.js +5 -0
  4. package/build/main/helpers/index.d.ts +1 -1
  5. package/build/main/helpers/index.js +2 -2
  6. package/build/main/styles/stories.module.scss +88 -0
  7. package/build/main/styles/styles.min.css +1 -1
  8. package/build/main//321/201omponents/ActionModal/ActionModal.js +2 -2
  9. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +3 -3
  10. package/build/main//321/201omponents/Checkbox/Checkbox.js +2 -2
  11. package/build/main//321/201omponents/Chips/Chips.js +2 -2
  12. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +2 -2
  13. package/build/main//321/201omponents/Error/Error.js +2 -2
  14. package/build/main//321/201omponents/Header/Header.js +4 -4
  15. package/build/main//321/201omponents/Header/types.d.ts +1 -2
  16. package/build/main//321/201omponents/Loader/Loader.js +2 -2
  17. package/build/main//321/201omponents/Profile/Profile.js +4 -4
  18. package/build/main//321/201omponents/Stories/Stories.js +3 -3
  19. package/build/main//321/201omponents/Stories/types.d.ts +1 -2
  20. package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +4 -0
  21. package/build/main//321/201omponents/SyncLoader/SyncLoader.js +66 -0
  22. package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
  23. package/build/main//321/201omponents/SyncLoader/index.js +1 -0
  24. package/build/main//321/201omponents/SyncLoader/types.d.ts +6 -0
  25. package/build/main//321/201omponents/SyncLoader/types.js +1 -0
  26. package/build/main//321/201omponents/index.d.ts +1 -0
  27. package/build/main//321/201omponents/index.js +1 -0
  28. package/package.json +4 -1
@@ -0,0 +1,3 @@
1
+ <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 8C1.5 4.13401 4.63401 1 8.5 1C12.366 1 15.5 4.13401 15.5 8C15.5 11.866 12.366 15 8.5 15C7.94772 15 7.5 14.5523 7.5 14C7.5 13.4477 7.94772 13 8.5 13C11.2614 13 13.5 10.7614 13.5 8C13.5 5.23858 11.2614 3 8.5 3C5.73858 3 3.5 5.23858 3.5 8C3.5 8.55228 3.05228 9 2.5 9C1.94772 9 1.5 8.55228 1.5 8Z" fill="currentColor"/>
3
+ </svg>
@@ -26,6 +26,10 @@ export declare enum PLATFORM {
26
26
  ios = "ios",
27
27
  android = "android"
28
28
  }
29
+ export declare enum THEME {
30
+ default = "default",
31
+ dark = "dark"
32
+ }
29
33
  export declare const BUTTON_PADDING: number;
30
34
  export declare const MAX_PADDING_FOR_IMAGE: number;
31
35
  export declare const DEFAULT_FONT_FAMILY: string;
@@ -29,6 +29,11 @@ export var PLATFORM;
29
29
  PLATFORM["ios"] = "ios";
30
30
  PLATFORM["android"] = "android";
31
31
  })(PLATFORM || (PLATFORM = {}));
32
+ export var THEME;
33
+ (function (THEME) {
34
+ THEME["default"] = "default";
35
+ THEME["dark"] = "dark";
36
+ })(THEME || (THEME = {}));
32
37
  export var BUTTON_PADDING = 32;
33
38
  export var MAX_PADDING_FOR_IMAGE = 200;
34
39
  export var DEFAULT_FONT_FAMILY = 'Open Sans';
@@ -1,4 +1,4 @@
1
- export declare const getIconColor: (iconColor: string | undefined, defaultIconColor: string) => string;
1
+ export declare const getColor: (color: string | undefined, defaultColor: string) => string;
2
2
  export declare const isWebPlatform: (platform: string) => boolean;
3
3
  export declare const isIosPlatform: (platform: string) => boolean;
4
4
  export declare const isAndroidPlatform: (platform: string) => boolean;
@@ -1,6 +1,6 @@
1
1
  import { PLATFORM } from '../constants';
2
- export var getIconColor = function (iconColor, defaultIconColor) {
3
- return (iconColor && CSS.supports('color', iconColor)) ? iconColor : defaultIconColor;
2
+ export var getColor = function (color, defaultColor) {
3
+ return (color && CSS.supports('color', color)) ? color : defaultColor;
4
4
  };
5
5
  export var isWebPlatform = function (platform) { return platform === PLATFORM.web; };
6
6
  export var isIosPlatform = function (platform) { return platform === PLATFORM.ios; };
@@ -23,6 +23,7 @@ $border-color: rgba(85, 85, 85, 0.2);
23
23
 
24
24
  $popup-background: rgba(0, 0, 0, 0.3);
25
25
 
26
+ $box-shadow-light-color: rgba(0, 0, 0, 0.05);
26
27
  $box-shadow-color: rgba(0, 0, 0, 0.25);
27
28
  $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
28
29
 
@@ -1136,3 +1137,90 @@ input:checked + .smartapp-slider:before {
1136
1137
  padding-right: 24px !important;
1137
1138
  }
1138
1139
  }
1140
+
1141
+ .smartapp-sync-loader {
1142
+ position: absolute;
1143
+ left: 0;
1144
+ right: 0;
1145
+ width: fit-content;
1146
+ display: flex;
1147
+ align-items: center;
1148
+ gap: 8px;
1149
+ border-radius: 100px;
1150
+ box-shadow: 0 1px 8px 0 $box-shadow-light-color;
1151
+ padding: 8px 12px;
1152
+ margin: 16px auto 0 auto;
1153
+ z-index: 1000;
1154
+ animation: loader-appear 0.25s linear;
1155
+
1156
+ &__text {
1157
+ font-size: 12px;
1158
+ font-weight: 600;
1159
+ line-height: 16px;
1160
+ display: flex;
1161
+ color: $color-black;
1162
+
1163
+ &--dark {
1164
+ color: $color-white;
1165
+ }
1166
+
1167
+ &--dots {
1168
+ width: 1.5ch;
1169
+ display: flex;
1170
+ justify-content: flex-start;
1171
+
1172
+ &__dot {
1173
+ opacity: 0;
1174
+ animation: dot-appear 1s ease-in 1;
1175
+
1176
+ &:nth-child(1) {
1177
+ animation-delay: 0.2s;
1178
+ }
1179
+
1180
+ &:nth-child(2) {
1181
+ animation-delay: 0.4s;
1182
+ }
1183
+
1184
+ &:nth-child(3) {
1185
+ animation-delay: 0.6s;
1186
+ }
1187
+ }
1188
+ }
1189
+ }
1190
+
1191
+ &__icon {
1192
+ animation: loader-spin 1s linear infinite;
1193
+ }
1194
+ }
1195
+
1196
+ @keyframes loader-appear {
1197
+ from {
1198
+ transform: scale(0);
1199
+ opacity: 0;
1200
+ }
1201
+ to {
1202
+ transform: scale(1);
1203
+ opacity: 1;
1204
+ }
1205
+ }
1206
+
1207
+ @keyframes dot-appear {
1208
+ 0% {
1209
+ opacity: 0;
1210
+ }
1211
+ 25% {
1212
+ opacity: 0.5;
1213
+ }
1214
+ 50% {
1215
+ opacity: 1;
1216
+ }
1217
+ 100% {
1218
+ opacity: 1;
1219
+ }
1220
+ }
1221
+
1222
+ @keyframes loader-spin {
1223
+ to {
1224
+ transform: rotate(360deg);
1225
+ }
1226
+ }