@expressms/smartapp-ui 1.1.5 → 1.1.7

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 (50) hide show
  1. package/build/main/assets/icons/check-mark.svg +2 -2
  2. package/build/main/assets/icons/notification-error.svg +3 -0
  3. package/build/main/assets/icons/notification-info.svg +5 -0
  4. package/build/main/assets/icons/notification-success.svg +4 -0
  5. package/build/main/assets/icons/notification-warning.svg +5 -0
  6. package/build/main/assets/icons/refresh.svg +1 -1
  7. package/build/main/constants/constants.d.ts +4 -2
  8. package/build/main/constants/constants.js +4 -2
  9. package/build/main/helpers/index.d.ts +2 -1
  10. package/build/main/helpers/index.js +6 -2
  11. package/build/main/styles/stories.module.scss +295 -96
  12. package/build/main/styles/styles.min.css +1 -1
  13. package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +1 -1
  14. package/build/main//321/201omponents/ActionModal/ActionModal.js +6 -6
  15. package/build/main//321/201omponents/ActionModal/types.d.ts +1 -0
  16. package/build/main//321/201omponents/Button/Button.d.ts +1 -1
  17. package/build/main//321/201omponents/Button/Button.js +3 -2
  18. package/build/main//321/201omponents/Button/types.d.ts +1 -0
  19. package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +1 -1
  20. package/build/main//321/201omponents/Checkbox/Checkbox.js +7 -3
  21. package/build/main//321/201omponents/Checkbox/types.d.ts +4 -3
  22. package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +1 -1
  23. package/build/main//321/201omponents/Header/Header.d.ts +1 -1
  24. package/build/main//321/201omponents/Header/Header.js +5 -5
  25. package/build/main//321/201omponents/Header/types.d.ts +3 -0
  26. package/build/main//321/201omponents/Input/Input.d.ts +1 -1
  27. package/build/main//321/201omponents/Input/Input.js +4 -4
  28. package/build/main//321/201omponents/Input/types.d.ts +1 -0
  29. package/build/main//321/201omponents/Modal/Modal.d.ts +1 -1
  30. package/build/main//321/201omponents/Modal/Modal.js +4 -4
  31. package/build/main//321/201omponents/Modal/types.d.ts +1 -0
  32. package/build/main//321/201omponents/Notification/Notification.d.ts +4 -0
  33. package/build/main//321/201omponents/Notification/Notification.js +40 -0
  34. package/build/main//321/201omponents/Notification/index.d.ts +1 -0
  35. package/build/main//321/201omponents/Notification/index.js +1 -0
  36. package/build/main//321/201omponents/Notification/types.d.ts +14 -0
  37. package/build/main//321/201omponents/Notification/types.js +1 -0
  38. package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
  39. package/build/main//321/201omponents/RadioButton/RadioButton.js +25 -0
  40. package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
  41. package/build/main//321/201omponents/RadioButton/index.js +1 -0
  42. package/build/main//321/201omponents/RadioButton/types.d.ts +8 -0
  43. package/build/main//321/201omponents/RadioButton/types.js +1 -0
  44. package/build/main//321/201omponents/Stories/Stories.js +22 -18
  45. package/build/main//321/201omponents/Toggle/Toggle.d.ts +1 -1
  46. package/build/main//321/201omponents/Toggle/Toggle.js +11 -2
  47. package/build/main//321/201omponents/Toggle/types.d.ts +4 -1
  48. package/build/main//321/201omponents/index.d.ts +2 -0
  49. package/build/main//321/201omponents/index.js +2 -0
  50. package/package.json +3 -1
@@ -2,31 +2,37 @@
2
2
  @import 'react-datepicker/dist/react-datepicker';
3
3
 
4
4
  $color-black: rgba(17, 17, 17, 1);
5
- $color-dark-gray: rgba(17, 17, 17, 0.5);
6
- $color-darker-gray: rgba(17, 17, 17, 0.3);
7
- $color-darker-gray-opacity: rgba(0, 0, 0, 0.2);
8
- $color-darkest-gray-opacity: rgba(204, 204, 204, 1);
9
- $color-gray: rgba(17, 17, 17, 0.1);
10
- $color-light-gray: rgba(239, 242, 244, 1);
5
+ $color-light-black-50: rgba(17, 17, 17, 0.5);
6
+ $color-light-black-30: rgba(17, 17, 17, 0.3);
7
+ $color-light-black-10: rgba(17, 17, 17, 0.1);
8
+ $color-black-60: rgba(0, 0, 0, 0.6);
9
+ $color-black-20: rgba(0, 0, 0, 0.2);
10
+ $color-black-10: rgba(0, 0, 0, 0.1);
11
+ $color-black-8: rgba(0, 0, 0, 0.08);
12
+ $color-black-5: rgba(0, 0, 0, 0.05);
13
+ $color-darkest-gray: rgba(61, 61, 61, 1);
14
+ $color-darker-gray: rgba(102, 102, 102, 1);
15
+ $color-dark-gray: rgba(128, 128, 128, 1);
16
+ $color-gray: rgba(140, 140, 140, 1);
17
+ $color-light-gray: rgba(204, 204, 204, 1);
11
18
  $color-lighter-gray: rgba(224, 228, 236, 1);
12
- $color-lighter-gray-opacity: rgba(224, 228, 236, 0.4);
13
- $color-lightest-gray: rgba(0, 0, 0, 0.05);
19
+ $color-lightest-gray: rgba(239, 242, 244, 1);
14
20
  $color-white: rgba(255, 255, 255, 1);
21
+ $color-white-30: rgba(255, 255, 255, 0.3);
22
+ $color-white-5: rgba(255, 255, 255, 0.05);
15
23
  $color-dark-red: rgba(222, 97, 97, 1);
16
24
  $color-red: rgba(235, 85, 69, 1);
25
+ $color-light-red: rgba(200, 66, 53, 1);
17
26
  $color-purple: rgba(130, 98, 223, 1);
27
+ $color-dark-blue: rgba(60, 130, 193, 1);
18
28
  $color-blue: rgba(71, 153, 227, 1);
19
29
  $color-light-blue: rgba(205, 244, 255, 1);
20
- $color-lighter-blue: rgba(71, 153, 227, 0.2);
21
-
22
- $border-color: rgba(85, 85, 85, 0.2);
30
+ $color-orange: rgba(252, 158, 90, 1);
31
+ $color-orange-10: rgba(252, 158, 90, 0.1);
32
+ $color-light-orange: rgba(253, 246, 228, 1);
23
33
 
24
34
  $popup-background: rgba(37, 77, 145, 0.2);
25
35
 
26
- $box-shadow-light-color: rgba(0, 0, 0, 0.05);
27
- $box-shadow-color: rgba(0, 0, 0, 0.25);
28
- $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
29
-
30
36
  .smartapp-action-modal {
31
37
  width: 100%;
32
38
  padding: 0 20px;
@@ -79,7 +85,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
79
85
  }
80
86
 
81
87
  &--delimiter {
82
- border-top: 0.5px solid $color-gray;
88
+ border-top: 0.5px solid $color-light-black-10;
83
89
  margin: 0 -24px 16px -24px;
84
90
  }
85
91
 
@@ -89,6 +95,22 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
89
95
  justify-content: center;
90
96
  }
91
97
  }
98
+
99
+ &__dark {
100
+ .smartapp-action-modal {
101
+ &__content {
102
+ background-color: $color-darkest-gray;
103
+
104
+ &--title {
105
+ color: $color-white;
106
+ }
107
+
108
+ &--delimiter {
109
+ border-top-color: $color-white-5;
110
+ }
111
+ }
112
+ }
113
+ }
92
114
  }
93
115
 
94
116
  .action-modal-content {
@@ -117,7 +139,9 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
117
139
  .smartapp-attached-file {
118
140
  display: flex;
119
141
  align-items: center;
142
+ font-family: Open Sans, 'sans-serif';
120
143
  margin-bottom: 8px;
144
+
121
145
  &--icon {
122
146
  display: flex;
123
147
  align-items: flex-start;
@@ -129,6 +153,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
129
153
  flex-direction: row;
130
154
  gap: 12px;
131
155
  width: 100%;
156
+
132
157
  &--info {
133
158
  &__name {
134
159
  font-weight: 700;
@@ -142,7 +167,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
142
167
  font-weight: 400;
143
168
  font-size: 12px;
144
169
  line-height: 16px;
145
- color: $color-dark-gray;
170
+ color: $color-light-black-50;
146
171
  margin: 0;
147
172
  }
148
173
  }
@@ -174,6 +199,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
174
199
  justify-content: center;
175
200
  width: 40px;
176
201
  height: 40px;
202
+ font-family: Open Sans, 'sans-serif';
177
203
  font-size: 18px;
178
204
  color: $color-white;
179
205
  background: linear-gradient(135deg, $color-purple 0%, $color-dark-red 100%);
@@ -250,6 +276,15 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
250
276
  background: $color-red;
251
277
  border: 0;
252
278
  }
279
+
280
+ &__dark--blue,
281
+ &__dark--red {
282
+ color: $color-darkest-gray;
283
+ }
284
+
285
+ &__dark--white {
286
+ background-color: $color-darkest-gray;
287
+ }
253
288
  }
254
289
 
255
290
  .smartapp-calendar-component {
@@ -261,7 +296,8 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
261
296
  }
262
297
 
263
298
  .react-datepicker {
264
- border-color: $color-gray !important;
299
+ font-family: Open Sans, 'sans-serif';
300
+ border-color: $color-light-black-10 !important;
265
301
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.02), 0 6px 12px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.14) !important;
266
302
  padding-bottom: 24px;
267
303
 
@@ -278,8 +314,8 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
278
314
 
279
315
  // Голова
280
316
  &__header {
281
- background: $color-light-gray !important;
282
- color: $color-dark-gray;
317
+ background: $color-lightest-gray !important;
318
+ color: $color-light-black-50;
283
319
  padding: 0;
284
320
  border-bottom: 0;
285
321
  }
@@ -289,7 +325,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
289
325
  font-weight: 700;
290
326
  font-size: 14px;
291
327
  line-height: 19px;
292
- color: $color-dark-gray;
328
+ color: $color-light-black-50;
293
329
  padding: 8px 0 !important;
294
330
  }
295
331
 
@@ -298,7 +334,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
298
334
  font-weight: 700;
299
335
  font-size: 12px;
300
336
  line-height: 16px;
301
- color: $color-dark-gray;
337
+ color: $color-light-black-50;
302
338
  margin-top: 16px;
303
339
  }
304
340
 
@@ -309,7 +345,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
309
345
  font-size: 12px;
310
346
  line-height: 16px;
311
347
  text-transform: uppercase;
312
- color: $color-dark-gray !important;
348
+ color: $color-light-black-50 !important;
313
349
  background: $color-white;
314
350
  }
315
351
 
@@ -320,7 +356,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
320
356
 
321
357
  // Дни, которые уже прошли
322
358
  &__day--disabled {
323
- color: $color-darkest-gray-opacity !important;
359
+ color: $color-light-gray !important;
324
360
  }
325
361
 
326
362
  // Каждый день
@@ -334,7 +370,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
334
370
 
335
371
  &:hover {
336
372
  border-radius: 8px;
337
- background-color: $color-darker-gray;
373
+ background-color: $color-light-black-30;
338
374
  color: $color-black;
339
375
  }
340
376
  }
@@ -372,6 +408,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
372
408
 
373
409
  // // Сам input для календаря с выбранными датами
374
410
  .smartapp-calendar-input {
411
+ font-family: Open Sans, 'sans-serif';
375
412
  font-weight: 400;
376
413
  font-size: 14px;
377
414
  line-height: 19px;
@@ -379,7 +416,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
379
416
  align-items: center;
380
417
  cursor: pointer;
381
418
  padding: 12px 16px;
382
- border: 1px solid $color-lightest-gray;
419
+ border: 1px solid $color-black-5;
383
420
  border-radius: 8px;
384
421
  box-sizing: border-box;
385
422
  width: 100%;
@@ -401,40 +438,44 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
401
438
  .checkmark::before {
402
439
  content: '';
403
440
  display: inline-block;
404
- width: 20px;
405
- height: 20px;
441
+ width: 17px;
442
+ height: 17px;
406
443
  background-color: $color-white;
407
- border: 1px solid $color-gray;
444
+ border: 1.5px solid $color-dark-gray;
408
445
  border-radius: 50%;
409
446
  cursor: pointer;
410
447
  }
411
448
 
412
449
  /* стили при наведении курсора на радио */
413
450
  &__custom-check-box:not(:disabled):not(:checked) + .checkmark:hover::before {
414
- border-color: $color-gray;
451
+ border-color: $color-darker-gray;
415
452
  }
416
453
 
417
454
  /* стили для активной радиокнопки (при нажатии на неё) */
418
455
  &__custom-check-box:not(:disabled):active + .checkmark::before {
419
- background-color: $color-gray;
420
- border-color: $color-gray;
456
+ border-color: $color-dark-gray;
421
457
  }
422
458
 
423
459
  /* стили для радиокнопки, находящейся в фокусе и не находящейся в состоянии checked */
424
460
  &__custom-check-box:focus:not(:checked) + .checkmark::before {
425
- border-color: $color-gray;
461
+ border-color: $color-dark-gray;
426
462
  background-size: 60% 60%;
427
463
  }
428
464
 
429
465
  /* стили для радиокнопки, находящейся в состоянии checked */
430
466
  &__custom-check-box:checked + svg {
431
- height: 22px;
432
- width: 22px;
467
+ height: 20px;
468
+ width: 20px;
433
469
  cursor: pointer;
434
470
  }
435
471
 
472
+ &__custom-check-box:checked:not(:disabled):hover + svg {
473
+ color: var(--checkbox-hover-color, $color-dark-blue) !important;
474
+ }
475
+
436
476
  &__custom-check-box:disabled:not(:checked) + .checkmark::before,
437
477
  &__custom-check-box:disabled:checked + svg {
478
+ opacity: 0.3;
438
479
  cursor: default;
439
480
  }
440
481
  }
@@ -443,10 +484,11 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
443
484
  display: flex;
444
485
  box-sizing: border-box;
445
486
  justify-content: space-between;
487
+ font-family: Open Sans, 'sans-serif';
446
488
  max-width: 172px;
447
489
  padding: 4px 8px 4px 4px;
448
490
  border-radius: 20px;
449
- background-color: $color-light-gray;
491
+ background-color: $color-lightest-gray;
450
492
 
451
493
  &__info {
452
494
  display: flex;
@@ -514,7 +556,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
514
556
  }
515
557
 
516
558
  &--delimiter {
517
- border-top: 0.5px solid $color-gray;
559
+ border-top: 0.5px solid $color-light-black-10;
518
560
  margin: 0 -24px 16px -24px;
519
561
  }
520
562
 
@@ -554,6 +596,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
554
596
  display: flex;
555
597
  flex-direction: row;
556
598
  align-items: center;
599
+ font-family: Open Sans, 'sans-serif';
557
600
  font-size: 14px;
558
601
  line-height: 19px;
559
602
  color: $color-black;
@@ -606,7 +649,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
606
649
  font-weight: 400;
607
650
  font-size: 12px;
608
651
  line-height: 16px;
609
- color: $color-dark-gray;
652
+ color: $color-light-black-50;
610
653
  }
611
654
  }
612
655
  }
@@ -631,7 +674,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
631
674
  font-weight: 400;
632
675
  font-size: 12px;
633
676
  line-height: 16px;
634
- color: $color-dark-gray;
677
+ color: $color-light-black-50;
635
678
  }
636
679
  }
637
680
 
@@ -646,6 +689,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
646
689
  cursor: pointer;
647
690
 
648
691
  &--name {
692
+ font-family: Open Sans, 'sans-serif';
649
693
  font-weight: 400;
650
694
  font-size: 14px;
651
695
  line-height: 20px;
@@ -705,6 +749,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
705
749
  display: flex;
706
750
  justify-content: center;
707
751
  flex-direction: column;
752
+ font-family: Open Sans, 'sans-serif';
708
753
  background-color: $color-white;
709
754
 
710
755
  &__icon {
@@ -728,13 +773,14 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
728
773
  font-weight: 400;
729
774
  font-size: 16px;
730
775
  line-height: 22px;
731
- color: $color-dark-gray;
776
+ color: $color-light-black-50;
732
777
  word-break: break-word;
733
778
  text-align: center;
734
779
  }
735
780
  }
736
781
 
737
782
  .smartapp-header {
783
+ font-family: Open Sans, 'sans-serif';
738
784
  font-weight: 700;
739
785
  display: flex;
740
786
  justify-content: space-between;
@@ -792,44 +838,45 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
792
838
  }
793
839
 
794
840
  .smartapp-input {
841
+ font-family: Open Sans, 'sans-serif';
795
842
  display: flex;
796
843
  flex-direction: column;
797
844
  position: relative;
798
845
 
799
846
  &__title {
800
- font-weight: 700;
801
847
  font-size: 14px;
848
+ font-weight: 600;
802
849
  line-height: 19px;
803
- margin: 0 0 8px 0;
804
850
  color: $color-black;
851
+ margin: 0 0 8px 0;
805
852
  }
806
853
 
807
854
  &__container {
808
855
  position: relative;
809
856
 
810
857
  &--field {
811
- padding: 13px 16px;
812
- border: 1px solid $color-lightest-gray;
813
- border-radius: 8px;
814
- font-weight: 400;
815
- color: $color-black;
816
858
  width: 100%;
817
859
  box-sizing: border-box;
860
+ font-family: inherit;
861
+ font-weight: 400;
862
+ color: $color-black;
863
+ border: 1px solid $color-black-5;
864
+ border-radius: 8px;
865
+ padding: 13px 16px;
818
866
 
819
867
  &__with-clear-button {
820
868
  padding-right: 44px;
821
869
  }
822
870
 
823
871
  &::placeholder {
824
- font-family: Open Sans, 'sans-serif';
825
872
  font-size: inherit;
826
873
  font-weight: 400;
827
874
  line-height: inherit;
828
- color: $color-darker-gray;
875
+ color: $color-light-black-30;
829
876
  }
830
877
 
831
878
  &:focus-visible {
832
- border: 1px solid $color-blue;
879
+ border: 1px solid $color-blue !important;
833
880
  outline: none;
834
881
  }
835
882
  }
@@ -847,6 +894,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
847
894
  position: absolute;
848
895
  right: 1px;
849
896
  top: 15px;
897
+ color: $color-gray;
850
898
 
851
899
  &:active {
852
900
  transform: scale(0.95);
@@ -866,12 +914,33 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
866
914
  &__error {
867
915
  font-size: 12px;
868
916
  line-height: 16px;
869
- color: $color-red;
917
+ color: $color-light-red;
870
918
  margin: 8px 0 0 0;
871
919
  }
920
+
921
+ &__dark {
922
+ .smartapp-input {
923
+ &__title {
924
+ color: $color-white;
925
+ }
926
+
927
+ &__container {
928
+ &--field {
929
+ color: $color-white;
930
+ background: $color-darkest-gray;
931
+ border-color: $color-black-5;
932
+
933
+ &::placeholder {
934
+ color: $color-white-30;
935
+ }
936
+ }
937
+ }
938
+ }
939
+ }
872
940
  }
873
941
 
874
942
  .smartapp-loader-wrapper {
943
+ font-family: Open Sans, 'sans-serif';
875
944
  display: flex;
876
945
  align-items: center;
877
946
  justify-content: center;
@@ -896,7 +965,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
896
965
  &__title {
897
966
  font-weight: 400;
898
967
  text-align: center;
899
- color: $color-darker-gray;
968
+ color: $color-light-black-30;
900
969
  word-break: break-word;
901
970
  margin: 0;
902
971
  }
@@ -906,7 +975,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
906
975
  position: absolute;
907
976
  padding: 16px;
908
977
  box-sizing: border-box;
909
- box-shadow: 2px 2px 6px $box-shadow-dark-color;
978
+ box-shadow: 2px 2px 6px $color-black-60;
910
979
  max-width: 330px;
911
980
  top: 45px;
912
981
  background-color: $color-white;
@@ -915,6 +984,7 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
915
984
  &__container {
916
985
  position: relative;
917
986
  display: inline-flex;
987
+ font-family: Open Sans, 'sans-serif';
918
988
  z-index: 1;
919
989
  max-width: 330px;
920
990
  }
@@ -990,16 +1060,18 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
990
1060
  }
991
1061
 
992
1062
  .smartapp-switcher {
1063
+ font-family: Open Sans, 'sans-serif';
1064
+
993
1065
  &__instance {
994
1066
  padding: 8px 16px;
995
- background: $color-lightest-gray;
1067
+ background: $color-black-5;
996
1068
  border-radius: 4px;
997
1069
  border: 0;
998
1070
  font-weight: 700;
999
1071
  font-size: 12px;
1000
1072
  line-height: 16px;
1001
1073
  letter-spacing: -0.01em;
1002
- color: $color-darker-gray-opacity;
1074
+ color: $color-black-20;
1003
1075
  text-decoration: none;
1004
1076
  white-space: nowrap;
1005
1077
  box-sizing: border-box;
@@ -1022,67 +1094,78 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
1022
1094
  }
1023
1095
  }
1024
1096
 
1025
- .smartapp-toggle {
1026
- position: relative;
1027
- display: inline-block;
1028
- width: 34px;
1029
- height: 14px;
1030
- }
1031
-
1032
1097
  .smartapp-toggle-wrapper {
1033
1098
  display: flex;
1034
1099
  flex-direction: row;
1035
1100
  align-items: center;
1101
+ width: fit-content;
1036
1102
  }
1037
1103
 
1038
- .smartapp-toggle input {
1039
- display: none;
1104
+ .smartapp-toggle {
1105
+ position: relative;
1106
+ display: inline-block;
1107
+ width: 38px;
1108
+ height: 20px;
1109
+
1110
+ input {
1111
+ display: none;
1112
+ }
1040
1113
  }
1041
1114
 
1042
1115
  .smartapp-slider {
1043
1116
  position: absolute;
1044
- cursor: pointer;
1045
1117
  top: 0;
1046
1118
  left: 0;
1047
1119
  right: 0;
1048
1120
  bottom: 0;
1121
+ border-radius: 69px;
1049
1122
  background: $color-dark-gray;
1050
- -webkit-transition: 0.2s;
1051
1123
  transition: 0.2s;
1052
- }
1053
-
1054
- .smartapp-slider:before {
1055
- position: absolute;
1056
- content: '';
1057
- height: 20px;
1058
- width: 20px;
1059
- top: -3px;
1060
- left: 0;
1061
- bottom: 3px;
1062
- background: $color-lighter-gray;
1063
1124
  -webkit-transition: 0.2s;
1064
- transition: 0.2s;
1065
- box-shadow: 0 2px 2px $box-shadow-color;
1125
+ cursor: pointer;
1126
+
1127
+ &__disabled {
1128
+ opacity: 0.3;
1129
+ background: $color-dark-gray !important;
1130
+ cursor: default;
1131
+ }
1132
+
1133
+ &:before {
1134
+ content: '';
1135
+ position: absolute;
1136
+ left: 2px;
1137
+ top: 0;
1138
+ bottom: 0;
1139
+ height: 16px;
1140
+ width: 16px;
1141
+ border-radius: 50%;
1142
+ background: $color-white;
1143
+ transition: 0.2s;
1144
+ -webkit-transition: 0.2s;
1145
+ margin: auto 0;
1146
+ }
1147
+
1148
+ &:hover {
1149
+ background: $color-darker-gray;
1150
+ }
1066
1151
  }
1067
1152
 
1068
1153
  input:checked + .smartapp-slider {
1069
- background: $color-lighter-blue;
1154
+ background: var(--toggle-color, $color-blue);
1070
1155
  }
1071
1156
 
1072
- input:checked + .smartapp-slider:before {
1073
- -webkit-transform: translateX(14px);
1074
- -ms-transform: translateX(14px);
1075
- transform: translateX(14px);
1076
- background-color: $color-blue;
1077
- box-shadow: 0 2px 2px $box-shadow-color;
1157
+ input:checked + .smartapp-slider__disabled {
1158
+ background: var(--toggle-color, $color-blue) !important;
1078
1159
  }
1079
1160
 
1080
- .smartapp-slider.round {
1081
- border-radius: 34px;
1161
+ input:checked + .smartapp-slider:hover {
1162
+ background: var(--toggle-hover-color, $color-dark-blue);
1082
1163
  }
1083
1164
 
1084
- .smartapp-slider.round:before {
1085
- border-radius: 50%;
1165
+ input:checked + .smartapp-slider:before {
1166
+ transform: translateX(18px);
1167
+ -ms-transform: translateX(18px);
1168
+ -webkit-transform: translateX(18px);
1086
1169
  }
1087
1170
 
1088
1171
  .smartapp-stories-content {
@@ -1156,14 +1239,17 @@ input:checked + .smartapp-slider:before {
1156
1239
  }
1157
1240
 
1158
1241
  &__story {
1242
+ height: 100%;
1243
+ display: flex;
1244
+ flex-direction: column;
1245
+ justify-content: center;
1159
1246
  color: $color-white;
1160
- padding-top: var(--padding);
1161
1247
 
1162
1248
  &--title {
1163
1249
  font-size: 24px;
1164
1250
  font-weight: 700;
1165
1251
  line-height: 33px;
1166
- margin-bottom: 24px;
1252
+ margin-bottom: 8px;
1167
1253
  padding: 0 24px;
1168
1254
  }
1169
1255
 
@@ -1188,9 +1274,9 @@ input:checked + .smartapp-slider:before {
1188
1274
  &--button {
1189
1275
  position: absolute;
1190
1276
  bottom: 32px;
1191
- font-size: 14px;
1192
- font-weight: 600;
1193
- line-height: 19px;
1277
+ font-size: 16px;
1278
+ font-weight: 700;
1279
+ line-height: 22px;
1194
1280
  text-align: center;
1195
1281
  border-radius: 8px;
1196
1282
  padding: 12px 32px;
@@ -1255,7 +1341,7 @@ input:checked + .smartapp-slider:before {
1255
1341
  align-items: center;
1256
1342
  gap: 8px;
1257
1343
  border-radius: 100px;
1258
- box-shadow: 0 1px 8px 0 $box-shadow-light-color;
1344
+ box-shadow: 0 1px 8px 0 $color-black-5;
1259
1345
  padding: 8px 12px;
1260
1346
  margin: 16px auto 0 auto;
1261
1347
  z-index: 1000;
@@ -1377,6 +1463,18 @@ input:checked + .smartapp-slider:before {
1377
1463
  cursor: pointer;
1378
1464
  }
1379
1465
  }
1466
+
1467
+ &__dark {
1468
+ .smartapp-modal {
1469
+ &__content {
1470
+ background-color: $color-darkest-gray;
1471
+
1472
+ &--title {
1473
+ color: $color-white;
1474
+ }
1475
+ }
1476
+ }
1477
+ }
1380
1478
  }
1381
1479
 
1382
1480
  .modal-content {
@@ -1400,4 +1498,105 @@ input:checked + .smartapp-slider:before {
1400
1498
  .modal-android-overlay {
1401
1499
  background: var(--modal-background, $popup-background);
1402
1500
  cursor: pointer;
1501
+ }
1502
+
1503
+ .smartapp-notification {
1504
+ display: grid;
1505
+ grid-template-columns: 24px auto;
1506
+ gap: 8px;
1507
+ width: calc(100vw - 50px);
1508
+ font-family: Open Sans, 'sans-serif';
1509
+ font-size: 14px;
1510
+ font-weight: 400;
1511
+ line-height: 19px;
1512
+ color: $color-black;
1513
+ background: $color-white;
1514
+ border-radius: 4px;
1515
+ border: 1px solid $color-black-10;
1516
+ box-shadow: 0 2px 16px 0 $color-black-8;
1517
+ padding: 16px;
1518
+
1519
+ &__content {
1520
+ display: flex;
1521
+ align-items: center;
1522
+ justify-content: space-between;
1523
+
1524
+ &--action {
1525
+ font-weight: 600;
1526
+ color: $color-blue;
1527
+ cursor: pointer;
1528
+ }
1529
+ }
1530
+
1531
+ &__warning {
1532
+ color: $color-orange;
1533
+ background: $color-light-orange;
1534
+ border: 1px solid $color-orange-10;
1535
+ box-shadow: none;
1536
+ }
1537
+
1538
+ &__error {
1539
+ color: $color-light-red;
1540
+ }
1541
+ }
1542
+
1543
+ .notification-overlay {
1544
+ inset: auto 8px 8px 8px !important;
1545
+ }
1546
+
1547
+ .notification-ios-overlay,
1548
+ .notification-android-overlay {
1549
+ bottom: 40px !important;
1550
+ }
1551
+
1552
+ .smartapp-radio-button {
1553
+ width: fit-content;
1554
+
1555
+ input[type="radio"] {
1556
+ display: grid;
1557
+ align-items: center;
1558
+ justify-content: center;
1559
+ width: 20px;
1560
+ height: 20px;
1561
+ border: 1.5px solid $color-dark-gray;
1562
+ border-radius: 50%;
1563
+ background-color: $color-white;
1564
+ margin: 0;
1565
+ appearance: none;
1566
+ -webkit-appearance: none;
1567
+ }
1568
+
1569
+ input[type="radio"]:not(:disabled):hover {
1570
+ border-color: $color-darker-gray;
1571
+ cursor: pointer;
1572
+ }
1573
+
1574
+ input[type="radio"]:disabled {
1575
+ opacity: 0.3;
1576
+ }
1577
+
1578
+ input[type="radio"]:checked {
1579
+ border: 2px solid var(--radio-button-color, $color-blue);
1580
+ }
1581
+
1582
+ input[type="radio"]:checked:not(:disabled):hover {
1583
+ border-color: var(--radio-button-hover-color, $color-dark-blue);
1584
+ }
1585
+
1586
+ input[type="radio"]::before {
1587
+ content: "";
1588
+ width: 10px;
1589
+ height: 10px;
1590
+ border-radius: 50%;
1591
+ transform: scale(0);
1592
+ background: var(--radio-button-color, $color-blue);
1593
+ }
1594
+
1595
+ input[type="radio"]:checked::before {
1596
+ transform: scale(1);
1597
+ }
1598
+
1599
+ input[type="radio"]:checked:not(:disabled):hover::before {
1600
+ background: var(--radio-button-hover-color, $color-dark-blue);
1601
+ }
1403
1602
  }