@expressms/smartapp-ui 1.1.7 → 1.1.8
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/build/main/assets/icons/story-loader.svg +3 -0
- package/build/main/constants/constants.d.ts +13 -14
- package/build/main/constants/constants.js +14 -14
- package/build/main/constants/index.d.ts +1 -0
- package/build/main/constants/index.js +1 -0
- package/build/main/constants/types.d.ts +8 -0
- package/build/main/constants/types.js +1 -0
- package/build/main/helpers/index.d.ts +2 -1
- package/build/main/helpers/index.js +2 -2
- package/build/main/styles/main.js +0 -0
- package/build/main/styles/stories.module.scss +38 -1
- package/build/main/styles/styles.min.css +30 -77
- package/build/main/styles/styles.scss +13 -0
- package/build/main//321/201omponents/ActionModal/ActionModal.js +4 -4
- package/build/main//321/201omponents/ActionModal/types.d.ts +2 -3
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js +3 -3
- package/build/main//321/201omponents/Button/types.d.ts +2 -2
- package/build/main//321/201omponents/Checkbox/Checkbox.js +3 -3
- package/build/main//321/201omponents/Chips/Chips.js +2 -2
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +4 -4
- package/build/main//321/201omponents/ConfirmationModal/types.d.ts +2 -2
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +2 -2
- package/build/main//321/201omponents/Error/Error.js +2 -2
- package/build/main//321/201omponents/Header/Header.js +5 -5
- package/build/main//321/201omponents/Header/types.d.ts +2 -2
- package/build/main//321/201omponents/Input/types.d.ts +2 -2
- package/build/main//321/201omponents/Loader/Loader.d.ts +1 -1
- package/build/main//321/201omponents/Loader/Loader.js +8 -5
- package/build/main//321/201omponents/Loader/types.d.ts +2 -1
- package/build/main//321/201omponents/Modal/Modal.js +4 -4
- package/build/main//321/201omponents/Modal/types.d.ts +2 -3
- package/build/main//321/201omponents/Notification/types.d.ts +2 -2
- package/build/main//321/201omponents/Profile/Profile.js +4 -4
- package/build/main//321/201omponents/RadioButton/RadioButton.js +3 -3
- package/build/main//321/201omponents/Stories/Stories.js +30 -8
- package/build/main//321/201omponents/Stories/types.d.ts +4 -3
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js +2 -2
- package/build/main//321/201omponents/SyncLoader/types.d.ts +2 -2
- package/build/main//321/201omponents/Toggle/Toggle.js +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7.5 30C7.5 42.4264 17.5736 52.5 30 52.5C42.4264 52.5 52.5 42.4264 52.5 30C52.5 17.5736 42.4264 7.5 30 7.5" stroke="white" stroke-width="4" stroke-linecap="round"/>
|
|
3
|
+
</svg>
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare const DEFAULT_POPUP_BACKGROUND_COLOR = "rgba(37, 77, 145, 0.2)";
|
|
1
|
+
export declare enum COLORS {
|
|
2
|
+
lighterBlue = "#4799E30D",
|
|
3
|
+
lightBlue = "rgba(37, 77, 145, 0.2)",
|
|
4
|
+
blue = "#4799E3",
|
|
5
|
+
darkBlue = "#3C82C1",
|
|
6
|
+
red = "#EB5545",
|
|
7
|
+
white = "#FFFFFF",
|
|
8
|
+
white3 = "#FFFFFF03",
|
|
9
|
+
white80 = "#FFFFFF80",
|
|
10
|
+
lightGray = "#E0E4EC66",
|
|
11
|
+
gray = "#1111114D",
|
|
12
|
+
black = "#111111"
|
|
13
|
+
}
|
|
15
14
|
export declare const INPUT_TYPE_PASSWORD = "password";
|
|
16
15
|
export declare const INPUT_TYPE_TEXT = "text";
|
|
17
16
|
export declare const ENTER_KEY = "Enter";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
export var COLORS;
|
|
2
|
+
(function (COLORS) {
|
|
3
|
+
COLORS["lighterBlue"] = "#4799E30D";
|
|
4
|
+
COLORS["lightBlue"] = "rgba(37, 77, 145, 0.2)";
|
|
5
|
+
COLORS["blue"] = "#4799E3";
|
|
6
|
+
COLORS["darkBlue"] = "#3C82C1";
|
|
7
|
+
COLORS["red"] = "#EB5545";
|
|
8
|
+
COLORS["white"] = "#FFFFFF";
|
|
9
|
+
COLORS["white3"] = "#FFFFFF03";
|
|
10
|
+
COLORS["white80"] = "#FFFFFF80";
|
|
11
|
+
COLORS["lightGray"] = "#E0E4EC66";
|
|
12
|
+
COLORS["gray"] = "#1111114D";
|
|
13
|
+
COLORS["black"] = "#111111";
|
|
14
|
+
})(COLORS || (COLORS = {}));
|
|
15
15
|
export var INPUT_TYPE_PASSWORD = 'password';
|
|
16
16
|
export var INPUT_TYPE_TEXT = 'text';
|
|
17
17
|
export var ENTER_KEY = 'Enter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { COLORS } from '../constants';
|
|
1
2
|
export declare const getColor: (color: string | undefined, defaultColor: string) => string;
|
|
2
3
|
export declare const isWebPlatform: (platform: string) => boolean;
|
|
3
4
|
export declare const isIosPlatform: (platform: string) => boolean;
|
|
4
5
|
export declare const isAndroidPlatform: (platform: string) => boolean;
|
|
5
6
|
export declare const isMobilePlatform: (platform: string) => boolean;
|
|
6
7
|
export declare const getClassNames: (className: string, delimiter: string, additionalClassName: string | string[]) => string;
|
|
7
|
-
export declare const getDefaultColorForCloseIcon: (theme: string) =>
|
|
8
|
+
export declare const getDefaultColorForCloseIcon: (theme: string) => COLORS.white80 | COLORS.gray;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import { isArray } from 'lodash';
|
|
3
|
-
import {
|
|
3
|
+
import { COLORS, PLATFORM, THEME } from '../constants';
|
|
4
4
|
export var getColor = function (color, defaultColor) {
|
|
5
5
|
return (color && CSS.supports('color', color)) ? color : defaultColor;
|
|
6
6
|
};
|
|
@@ -11,4 +11,4 @@ export var isMobilePlatform = function (platform) { return isAndroidPlatform(pla
|
|
|
11
11
|
export var getClassNames = function (className, delimiter, additionalClassName) { return (isArray(additionalClassName)
|
|
12
12
|
? classNames(className, additionalClassName.map(function (name) { return "".concat(className).concat(delimiter).concat(name); }))
|
|
13
13
|
: classNames(className, "".concat(className).concat(delimiter).concat(additionalClassName))); };
|
|
14
|
-
export var getDefaultColorForCloseIcon = function (theme) { return theme === THEME.default ?
|
|
14
|
+
export var getDefaultColorForCloseIcon = function (theme) { return theme === THEME.default ? COLORS.gray : COLORS.white80; };
|
|
File without changes
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
$color-black: rgba(17, 17, 17, 1);
|
|
5
5
|
$color-light-black-50: rgba(17, 17, 17, 0.5);
|
|
6
6
|
$color-light-black-30: rgba(17, 17, 17, 0.3);
|
|
7
|
+
$color-light-black-20: rgba(85, 85, 85, 0.2);
|
|
7
8
|
$color-light-black-10: rgba(17, 17, 17, 0.1);
|
|
8
9
|
$color-black-60: rgba(0, 0, 0, 0.6);
|
|
9
10
|
$color-black-20: rgba(0, 0, 0, 0.2);
|
|
@@ -32,6 +33,7 @@ $color-orange-10: rgba(252, 158, 90, 0.1);
|
|
|
32
33
|
$color-light-orange: rgba(253, 246, 228, 1);
|
|
33
34
|
|
|
34
35
|
$popup-background: rgba(37, 77, 145, 0.2);
|
|
36
|
+
$blurred-background: linear-gradient(0deg, rgba(85, 85, 85, 0.8) 0%, rgba(85, 85, 85, 0.8) 100%), rgba(255, 255, 255, 0.01);
|
|
35
37
|
|
|
36
38
|
.smartapp-action-modal {
|
|
37
39
|
width: 100%;
|
|
@@ -968,6 +970,11 @@ $popup-background: rgba(37, 77, 145, 0.2);
|
|
|
968
970
|
color: $color-light-black-30;
|
|
969
971
|
word-break: break-word;
|
|
970
972
|
margin: 0;
|
|
973
|
+
|
|
974
|
+
&--dark {
|
|
975
|
+
color: $color-white;
|
|
976
|
+
opacity: 0.3;
|
|
977
|
+
}
|
|
971
978
|
}
|
|
972
979
|
}
|
|
973
980
|
|
|
@@ -1174,7 +1181,9 @@ input:checked + .smartapp-slider:before {
|
|
|
1174
1181
|
display: flex;
|
|
1175
1182
|
justify-content: center;
|
|
1176
1183
|
align-items: center;
|
|
1177
|
-
background: $
|
|
1184
|
+
background: $blurred-background;
|
|
1185
|
+
-webkit-backdrop-filter: blur(15px);
|
|
1186
|
+
backdrop-filter: blur(15px);
|
|
1178
1187
|
border: none;
|
|
1179
1188
|
padding: 0;
|
|
1180
1189
|
|
|
@@ -1225,6 +1234,12 @@ input:checked + .smartapp-slider:before {
|
|
|
1225
1234
|
}
|
|
1226
1235
|
}
|
|
1227
1236
|
|
|
1237
|
+
&:has(> div:first-child > div:nth-child(2) > div:first-child > .smartapp-stories__story > .smartapp-stories__story--loader) {
|
|
1238
|
+
& > div:first-child > div:first-child {
|
|
1239
|
+
opacity: 1 !important;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1228
1243
|
&__web {
|
|
1229
1244
|
width: 400px;
|
|
1230
1245
|
}
|
|
@@ -1245,6 +1260,10 @@ input:checked + .smartapp-slider:before {
|
|
|
1245
1260
|
justify-content: center;
|
|
1246
1261
|
color: $color-white;
|
|
1247
1262
|
|
|
1263
|
+
&--image-bg {
|
|
1264
|
+
background: $color-light-black-20;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1248
1267
|
&--title {
|
|
1249
1268
|
font-size: 24px;
|
|
1250
1269
|
font-weight: 700;
|
|
@@ -1294,6 +1313,18 @@ input:checked + .smartapp-slider:before {
|
|
|
1294
1313
|
right: 16px;
|
|
1295
1314
|
}
|
|
1296
1315
|
}
|
|
1316
|
+
|
|
1317
|
+
&--loader {
|
|
1318
|
+
position: absolute;
|
|
1319
|
+
inset: 0;
|
|
1320
|
+
display: flex;
|
|
1321
|
+
align-items: center;
|
|
1322
|
+
justify-content: center;
|
|
1323
|
+
|
|
1324
|
+
svg {
|
|
1325
|
+
animation: loading 1s linear infinite;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1297
1328
|
}
|
|
1298
1329
|
|
|
1299
1330
|
&__animate-right {
|
|
@@ -1332,6 +1363,12 @@ input:checked + .smartapp-slider:before {
|
|
|
1332
1363
|
}
|
|
1333
1364
|
}
|
|
1334
1365
|
|
|
1366
|
+
@keyframes loading {
|
|
1367
|
+
to {
|
|
1368
|
+
transform: rotate(360deg);
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1335
1372
|
.smartapp-sync-loader {
|
|
1336
1373
|
position: absolute;
|
|
1337
1374
|
left: 0;
|