@vkontakte/vkui 4.37.1 → 4.37.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/vkui",
3
- "version": "4.37.1",
3
+ "version": "4.37.3",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -43,7 +43,7 @@
43
43
  "@types/webpack-dev-server": "^3.11.2",
44
44
  "@typescript-eslint/eslint-plugin": "^4.22.0",
45
45
  "@typescript-eslint/parser": "^4.0.0",
46
- "@vkontakte/appearance": "https://github.com/VKCOM/Appearance#v9.40.4",
46
+ "@vkontakte/appearance": "https://github.com/VKCOM/Appearance#v9.51.1",
47
47
  "@vkontakte/eslint-config": "3.1.0",
48
48
  "@vkontakte/icons": "^1.184.0",
49
49
  "@vkontakte/vk-bridge": "^2.1.3",
@@ -1,6 +1,4 @@
1
1
  .ModalPage {
2
- display: flex;
3
- justify-content: center;
4
2
  width: 100%;
5
3
  height: 100%;
6
4
  overflow: hidden;
@@ -11,6 +9,8 @@
11
9
  }
12
10
 
13
11
  .ModalPage--desktop {
12
+ display: flex;
13
+ justify-content: center;
14
14
  align-items: center;
15
15
  }
16
16
 
@@ -18,7 +18,11 @@
18
18
  width: 100%;
19
19
  height: 100%;
20
20
  position: absolute;
21
+ right: 0;
21
22
  bottom: 0;
23
+ left: 0;
24
+ margin-right: auto;
25
+ margin-left: auto;
22
26
  display: flex;
23
27
  align-items: flex-end;
24
28
  pointer-events: initial;
@@ -825,7 +825,7 @@ function initPageModal(modalState: ModalsStateEntry) {
825
825
 
826
826
  // Если модалка может открываться на весь экран, и новый сдвиг больше предыдущего, то откроем её на весь экран
827
827
  if (
828
- (modalState.expandable && translateY > (prevTranslateY ?? 0)) ||
828
+ (modalState.expandable && translateY > (prevTranslateY ?? 100)) ||
829
829
  modalState.settlingHeight === 100
830
830
  ) {
831
831
  translateY = 0;
@@ -213,7 +213,9 @@
213
213
  }
214
214
 
215
215
  /* TODO: v5.0.0 новая адаптивность */
216
- .PanelHeader--vkcom.PanelHeader--sizeX-regular:not(.ModalPageHeader__in)::after {
216
+ .PanelHeader--vkcom.PanelHeader--sizeX-regular:not(.ModalPageHeader__in)::after,
217
+ .PanelHeader--vkcom.PanelHeader--sizeX-regular:not(.PanelHeader--sep)
218
+ .PanelHeader__in::after {
217
219
  position: absolute;
218
220
  left: var(--thin-border);
219
221
  right: var(--thin-border);
@@ -157,6 +157,14 @@
157
157
  color: var(--header_tint_alternate, var(--vkui--color_icon_accent_themed));
158
158
  }
159
159
 
160
+ /* TODO удалить блок в v5.0.0 */
161
+ .TabsItem--selected.TabsItem--accent .TabsItem__after {
162
+ color: var(
163
+ --button_secondary_foreground,
164
+ var(--vkui--color_icon_accent_themed)
165
+ );
166
+ }
167
+
160
168
  /* Элемент */
161
169
  .TabsItem__underline {
162
170
  position: absolute;
@@ -33,8 +33,8 @@ body[scheme="vkcom_dark"],
33
33
  --button_outline_foreground: #e1e3e6;
34
34
  --button_primary_background: #e1e3e6;
35
35
  --button_primary_foreground: #222222;
36
- --button_secondary_background: #555555;
37
- --button_secondary_background_highlighted: #656565;
36
+ --button_secondary_background: #484848;
37
+ --button_secondary_background_highlighted: #555555;
38
38
  --button_secondary_destructive_background: #555555;
39
39
  --button_secondary_destructive_background_highlighted: rgba(85, 85, 85, 0.6);
40
40
  --button_secondary_destructive_foreground: #ff5c5c;
@@ -68,7 +68,7 @@ body[scheme="vkcom_dark"],
68
68
  --counter_secondary_background: #828282;
69
69
  --counter_secondary_text: #222222;
70
70
  --destructive: #ff5c5c;
71
- --dynamic_blue: #5181b8;
71
+ --dynamic_blue: #397dcc;
72
72
  --dynamic_gray: #aeb7c2;
73
73
  --dynamic_green: #4bb34b;
74
74
  --dynamic_neon_pink: #f45fff;
@@ -79,7 +79,7 @@ body[scheme="vkcom_dark"],
79
79
  --dynamic_violet: #a393f5;
80
80
  --feed_recommended_friend_promo_background: #6f7985;
81
81
  --field_background: #292929;
82
- --field_border: #424242;
82
+ --field_border: #484848;
83
83
  --field_error_background: rgba(230, 70, 70, 0.16);
84
84
  --field_error_border: #e64646;
85
85
  --field_text_placeholder: #828282;
@@ -95,10 +95,10 @@ body[scheme="vkcom_dark"],
95
95
  --header_background: #222222;
96
96
  --header_background_before_blur: #0a0a0a;
97
97
  --header_background_before_blur_alternate: #0a0a0a;
98
- --header_search_field_background: #424242;
98
+ --header_search_field_background: #484848;
99
99
  --header_search_field_tint: #b2b2b2;
100
100
  --header_tab_active_background: #656565;
101
- --header_tab_active_indicator: #5181b8;
101
+ --header_tab_active_indicator: #397dcc;
102
102
  --header_tab_active_text: #e1e3e6;
103
103
  --header_tab_inactive_text: #828282;
104
104
  --header_text: #e1e3e6;
@@ -153,7 +153,7 @@ body[scheme="vkcom_dark"],
153
153
  --im_toolbar_separator: #b2b2b2;
154
154
  --im_toolbar_voice_msg_background: #555555;
155
155
  --image_border: rgba(255, 255, 255, 0.08);
156
- --input_background: #424242;
156
+ --input_background: #484848;
157
157
  --input_border: #555555;
158
158
  --landing_background: #222222;
159
159
  --landing_field_background: #292929;
@@ -179,7 +179,7 @@ body[scheme="vkcom_dark"],
179
179
  --loader_track_value_fill: #ffffff;
180
180
  --media_overlay_button_background: #ffffff;
181
181
  --media_overlay_button_foreground: #333333;
182
- --modal_card_background: #292929;
182
+ --modal_card_background: #333333;
183
183
  --modal_card_border: rgba(255, 255, 255, 0.12);
184
184
  --modal_card_header_close: #ffffff;
185
185
  --music_playback_icon: #ffffff;
@@ -197,7 +197,7 @@ body[scheme="vkcom_dark"],
197
197
  --poll_option_background: #ffffff;
198
198
  --primary_overlay_badge: rgba(255, 255, 255, 0.4);
199
199
  --search_bar_background: #222222;
200
- --search_bar_field_background: #424242;
200
+ --search_bar_field_background: #484848;
201
201
  --search_bar_field_tint: #b2b2b2;
202
202
  --search_bar_segmented_control_tint: #939393;
203
203
  --secondary_overlay_badge: rgba(255, 255, 255, 0.16);
@@ -205,8 +205,8 @@ body[scheme="vkcom_dark"],
205
205
  --segmented_control_tint: #828282;
206
206
  --selection_off_icon: #656565;
207
207
  --separator_alpha: rgba(255, 255, 255, 0.16);
208
- --separator_alternate: #333333;
209
- --separator_common: #424242;
208
+ --separator_alternate: #292929;
209
+ --separator_common: #484848;
210
210
  --skeleton_foreground_from: #292929;
211
211
  --skeleton_foreground_to: #333333;
212
212
  --skeleton_shimmer_from: #222222;
@@ -216,8 +216,8 @@ body[scheme="vkcom_dark"],
216
216
  --snippet_icon_tertiary: #656565;
217
217
  --splashscreen_icon: #333333;
218
218
  --statusbar_alternate_legacy_background: rgba(0, 0, 0, 0);
219
- --stories_create_button_background_from: #424242;
220
- --stories_create_button_background_to: #424242;
219
+ --stories_create_button_background_from: #484848;
220
+ --stories_create_button_background_to: #484848;
221
221
  --stories_create_button_foreground: #cccccc;
222
222
  --stories_create_button_icon_background: #555555;
223
223
  --stories_skeleton_loader_background: #555555;
@@ -225,14 +225,14 @@ body[scheme="vkcom_dark"],
225
225
  --tabbar_active_icon: #ffffff;
226
226
  --tabbar_background: #333333;
227
227
  --tabbar_inactive_icon: #828282;
228
- --tabbar_tablet_active_icon: #5181b8;
228
+ --tabbar_tablet_active_icon: #397dcc;
229
229
  --tabbar_tablet_background: #292929;
230
230
  --tabbar_tablet_inactive_icon: #828282;
231
231
  --tabbar_tablet_text_primary: #e1e3e6;
232
232
  --tabbar_tablet_text_secondary: #828282;
233
233
  --text_action_counter: #b2b2b2;
234
234
  --text_link: #71aaeb;
235
- --text_link_highlighted_background: #5181b8;
235
+ --text_link_highlighted_background: #397dcc;
236
236
  --text_muted: #cccccc;
237
237
  --text_name: #e1e3e6;
238
238
  --text_placeholder: #b2b2b2;
@@ -5,14 +5,14 @@
5
5
  body[scheme="vkcom_light"],
6
6
  [scheme="vkcom_light"],
7
7
  .vkuivkcom_light {
8
- --accent: #5181b8;
8
+ --accent: #447bba;
9
9
  --accent_alternate: #0077ff;
10
- --action_sheet_action_foreground: #5181b8;
10
+ --action_sheet_action_foreground: #447bba;
11
11
  --action_sheet_separator: rgba(0, 0, 0, 0.12);
12
12
  --activity_indicator_tint: #aeb7c2;
13
- --attach_picker_tab_active_background: #5181b8;
13
+ --attach_picker_tab_active_background: #447bba;
14
14
  --attach_picker_tab_active_icon: #ffffff;
15
- --attach_picker_tab_active_text: #5181b8;
15
+ --attach_picker_tab_active_text: #447bba;
16
16
  --attach_picker_tab_inactive_background: #f5f5f5;
17
17
  --attach_picker_tab_inactive_icon: #818c99;
18
18
  --attach_picker_tab_inactive_text: #818c99;
@@ -28,10 +28,10 @@ body[scheme="vkcom_light"],
28
28
  --button_commerce_background: #4bb34b;
29
29
  --button_commerce_foreground: #ffffff;
30
30
  --button_muted_background: #e5ebf1;
31
- --button_muted_foreground: #55677d;
32
- --button_outline_border: #2a5885;
33
- --button_outline_foreground: #2a5885;
34
- --button_primary_background: #5181b8;
31
+ --button_muted_foreground: #346297;
32
+ --button_outline_border: #346297;
33
+ --button_outline_foreground: #346297;
34
+ --button_primary_background: #447bba;
35
35
  --button_primary_foreground: #ffffff;
36
36
  --button_secondary_background: #e5ebf1;
37
37
  --button_secondary_background_highlighted: #dae2ea;
@@ -49,11 +49,11 @@ body[scheme="vkcom_light"],
49
49
  70,
50
50
  0.12
51
51
  );
52
- --button_secondary_foreground: #55677d;
53
- --button_secondary_foreground_highlighted: #55677d;
52
+ --button_secondary_foreground: #346297;
53
+ --button_secondary_foreground_highlighted: #224b7a;
54
54
  --button_tertiary_background: rgba(0, 0, 0, 0);
55
- --button_tertiary_foreground: #2a5885;
56
- --cell_button_foreground: #2a5885;
55
+ --button_tertiary_foreground: #346297;
56
+ --cell_button_foreground: #346297;
57
57
  --content_negative_background: #faebeb;
58
58
  --content_placeholder_icon: #99a2ad;
59
59
  --content_placeholder_text: #818c99;
@@ -63,10 +63,10 @@ body[scheme="vkcom_light"],
63
63
  --content_warning_background: #faefd2;
64
64
  --control_background: #edeef0;
65
65
  --control_background_secondary: #ffffff;
66
- --control_foreground: #5181b8;
66
+ --control_foreground: #447bba;
67
67
  --control_tint: #ffffff;
68
68
  --control_tint_muted: #828282;
69
- --counter_primary_background: #5181b8;
69
+ --counter_primary_background: #447bba;
70
70
  --counter_primary_text: #ffffff;
71
71
  --counter_prominent_background: #ff3347;
72
72
  --counter_prominent_text: #ffffff;
@@ -82,7 +82,7 @@ body[scheme="vkcom_light"],
82
82
  --dynamic_raspberry_pink: #e03fab;
83
83
  --dynamic_red: #ff3347;
84
84
  --dynamic_violet: #792ec0;
85
- --feed_recommended_friend_promo_background: #5181b8;
85
+ --feed_recommended_friend_promo_background: #447bba;
86
86
  --field_background: #f7f8fa;
87
87
  --field_border: #dce1e6;
88
88
  --field_error_background: #faebeb;
@@ -94,7 +94,7 @@ body[scheme="vkcom_light"],
94
94
  --float_button_border: rgba(0, 0, 0, 0.08);
95
95
  --float_button_foreground: #99a2ad;
96
96
  --header_alternate_background: #ffffff;
97
- --header_alternate_tab_active_indicator: #5181b8;
97
+ --header_alternate_tab_active_indicator: #447bba;
98
98
  --header_alternate_tab_active_text: #000000;
99
99
  --header_alternate_tab_inactive_text: #99a2ad;
100
100
  --header_background: #ffffff;
@@ -103,14 +103,14 @@ body[scheme="vkcom_light"],
103
103
  --header_search_field_background: #edeef0;
104
104
  --header_search_field_tint: #818c99;
105
105
  --header_tab_active_background: rgba(0, 0, 0, 0);
106
- --header_tab_active_indicator: #5181b8;
106
+ --header_tab_active_indicator: #397dcc;
107
107
  --header_tab_active_text: #000000;
108
108
  --header_tab_inactive_text: #99a2ad;
109
109
  --header_text: #000000;
110
110
  --header_text_alternate: #000000;
111
111
  --header_text_secondary: #818c99;
112
112
  --header_tint: #aeb7c2;
113
- --header_tint_alternate: #0077ff;
113
+ --header_tint_alternate: #447bba;
114
114
  --icon_alpha_placeholder: #ffffff;
115
115
  --icon_medium: #6f7985;
116
116
  --icon_medium_alpha: rgba(0, 0, 0, 0.48);
@@ -121,7 +121,7 @@ body[scheme="vkcom_light"],
121
121
  --icon_secondary_alpha: rgba(0, 0, 0, 0.36);
122
122
  --icon_tertiary: #aeb7c2;
123
123
  --icon_tertiary_alpha: rgba(0, 0, 0, 0.24);
124
- --im_attach_tint: #5181b8;
124
+ --im_attach_tint: #447bba;
125
125
  --im_bubble_border_alternate: #dce1e6;
126
126
  --im_bubble_border_alternate_highlighted: #cccccc;
127
127
  --im_bubble_button_background: #f7f8fa;
@@ -164,24 +164,24 @@ body[scheme="vkcom_light"],
164
164
  --landing_field_background: #f7f8fa;
165
165
  --landing_field_border: rgba(0, 0, 0, 0);
166
166
  --landing_field_placeholder: #818c99;
167
- --landing_login_button_background: #5181b8;
167
+ --landing_login_button_background: #447bba;
168
168
  --landing_login_button_foreground: #ffffff;
169
- --landing_primary_button_background: #5181b8;
169
+ --landing_primary_button_background: #447bba;
170
170
  --landing_primary_button_foreground: #ffffff;
171
171
  --landing_secondary_button_background: rgba(0, 57, 115, 0.1);
172
- --landing_secondary_button_foreground: #5181b8;
172
+ --landing_secondary_button_foreground: #447bba;
173
173
  --landing_snippet_border: rgba(0, 0, 0, 0.12);
174
174
  --landing_tertiary_button_background: rgba(0, 0, 0, 0);
175
- --landing_tertiary_button_foreground: #5181b8;
175
+ --landing_tertiary_button_foreground: #447bba;
176
176
  --landing_text_primary: #000000;
177
177
  --landing_text_secondary: #818c99;
178
- --landing_text_title: #5181b8;
178
+ --landing_text_title: #447bba;
179
179
  --like_text_tint: #ff3347;
180
180
  --link_alternate: #2a5885;
181
181
  --loader_background: #edeef0;
182
182
  --loader_tint: #c5d0db;
183
183
  --loader_track_fill: #d3d9de;
184
- --loader_track_value_fill: #5181b8;
184
+ --loader_track_value_fill: #447bba;
185
185
  --media_overlay_button_background: #ffffff;
186
186
  --media_overlay_button_foreground: #333333;
187
187
  --modal_card_background: #ffffff;
@@ -199,7 +199,7 @@ body[scheme="vkcom_light"],
199
199
  --placeholder_icon_foreground_primary: #99a2ad;
200
200
  --placeholder_icon_foreground_secondary: #aeb7c2;
201
201
  --placeholder_icon_tint: #1d3a5c;
202
- --poll_option_background: #5181b8;
202
+ --poll_option_background: #447bba;
203
203
  --primary_overlay_badge: rgba(0, 0, 0, 0.56);
204
204
  --search_bar_background: rgba(0, 0, 0, 0);
205
205
  --search_bar_field_background: #edeef0;
@@ -213,7 +213,7 @@ body[scheme="vkcom_light"],
213
213
  --separator_alternate: #e7e8ec;
214
214
  --separator_common: #dce1e6;
215
215
  --skeleton_foreground_from: #f0f2f5;
216
- --skeleton_foreground_to: #edeef0;
216
+ --skeleton_foreground_to: #e7e8ec;
217
217
  --skeleton_shimmer_from: #ffffff;
218
218
  --skeleton_shimmer_to: rgba(255, 255, 255, 0);
219
219
  --snippet_background: #ffffff;
@@ -227,10 +227,10 @@ body[scheme="vkcom_light"],
227
227
  --stories_create_button_icon_background: #ffffff;
228
228
  --stories_skeleton_loader_background: #cccccc;
229
229
  --switch_ios_off_border: #dce1e6;
230
- --tabbar_active_icon: #5181b8;
230
+ --tabbar_active_icon: #447bba;
231
231
  --tabbar_background: #f7f8fa;
232
232
  --tabbar_inactive_icon: #99a2ad;
233
- --tabbar_tablet_active_icon: #5181b8;
233
+ --tabbar_tablet_active_icon: #447bba;
234
234
  --tabbar_tablet_background: #f7f8fa;
235
235
  --tabbar_tablet_inactive_icon: #99a2ad;
236
236
  --tabbar_tablet_text_primary: #000000;