@vkontakte/vkui 4.35.3 → 4.35.4
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/.cache/.eslintcache +1 -1
- package/.cache/.stylelintcache +1 -1
- package/.cache/.tsbuildinfo +3 -3
- package/.cache/ts/src/components/ButtonGroup/ButtonGroup.d.ts +6 -2
- package/dist/cjs/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -2
- package/dist/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/cssm/components/ButtonGroup/ButtonGroup.d.ts +6 -2
- package/dist/cssm/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/cssm/components/Header/Header.css +1 -1
- package/dist/cssm/styles/components.css +1 -1
- package/dist/cssm/styles/themes.css +1 -1
- package/dist/cssm/styles/vkcom_dark.css +1 -1
- package/dist/cssm/styles/vkcom_light.css +1 -1
- package/dist/vkui.css +2 -2
- package/dist/vkui.css.map +1 -1
- package/package.json +2 -2
- package/src/components/ButtonGroup/ButtonGroup.tsx +6 -3
- package/src/components/ButtonGroup/Readme.md +13 -11
- package/src/components/Header/Header.css +1 -5
- package/src/styles/vkcom_dark.css +8 -8
- package/src/styles/vkcom_light.css +34 -34
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/vkui",
|
|
3
|
-
"version": "4.35.
|
|
3
|
+
"version": "4.35.4",
|
|
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.
|
|
46
|
+
"@vkontakte/appearance": "https://github.com/VKCOM/Appearance#v9.46.3",
|
|
47
47
|
"@vkontakte/eslint-config": "3.1.0",
|
|
48
48
|
"@vkontakte/icons": "^1.145.1",
|
|
49
49
|
"@vkontakte/vk-bridge": "^2.1.3",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { classNames } from "../../lib/classNames";
|
|
3
|
-
import type { HasRootRef,
|
|
3
|
+
import type { HasRootRef, AlignType } from "../../types";
|
|
4
4
|
import "./ButtonGroup.css";
|
|
5
5
|
|
|
6
6
|
export interface ButtonGroupProps
|
|
7
7
|
extends React.HTMLAttributes<HTMLDivElement>,
|
|
8
|
-
HasRootRef<HTMLDivElement
|
|
9
|
-
HasAlign {
|
|
8
|
+
HasRootRef<HTMLDivElement> {
|
|
10
9
|
/**
|
|
11
10
|
* Задает расположение элементов внутри группы, вертикальное или горизонтальное.
|
|
12
11
|
*/
|
|
@@ -21,6 +20,10 @@ export interface ButtonGroupProps
|
|
|
21
20
|
* Note: Для потомков соответствующее поведение нужно определять самостоятельно, где это необходимо.
|
|
22
21
|
*/
|
|
23
22
|
stretched?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Горизонтальное выравнивание элементов внутри группы. Работает только с mode="vertical".
|
|
25
|
+
*/
|
|
26
|
+
align?: AlignType;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
/**
|
|
@@ -44,17 +44,19 @@ const ButtonGroupPropsForm = ({ caption, defaultProps, onChange }) => {
|
|
|
44
44
|
]}
|
|
45
45
|
/>
|
|
46
46
|
</FormItem>
|
|
47
|
-
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
{mode === "vertical" && (
|
|
48
|
+
<FormItem top="align">
|
|
49
|
+
<Select
|
|
50
|
+
value={align}
|
|
51
|
+
onChange={(e) => handleChange("align", e.target.value)}
|
|
52
|
+
options={[
|
|
53
|
+
{ label: "left", value: "left" },
|
|
54
|
+
{ label: "center", value: "center" },
|
|
55
|
+
{ label: "right", value: "right" },
|
|
56
|
+
]}
|
|
57
|
+
/>
|
|
58
|
+
</FormItem>
|
|
59
|
+
)}
|
|
58
60
|
<Checkbox onChange={(e) => handleChange("stretched", e.target.checked)}>
|
|
59
61
|
stretched
|
|
60
62
|
</Checkbox>
|
|
@@ -41,15 +41,11 @@
|
|
|
41
41
|
margin-top: -1px;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.Header--mode-secondary .Header__main,
|
|
44
|
+
.Header--mode-secondary:not(.Header--pi) .Header__main,
|
|
45
45
|
.Header--mode-tertiary .Header__main {
|
|
46
46
|
color: var(--text_secondary);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.Header--pi .Header__main {
|
|
50
|
-
color: var(--text_primary);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
49
|
.Header__indicator {
|
|
54
50
|
color: var(--text_secondary);
|
|
55
51
|
margin-left: 6px;
|
|
@@ -21,7 +21,7 @@ body[scheme="vkcom_dark"],
|
|
|
21
21
|
--background_hover: rgba(255, 255, 255, 0.08);
|
|
22
22
|
--background_keyboard: #333333;
|
|
23
23
|
--background_light: #292929;
|
|
24
|
-
--background_page: #
|
|
24
|
+
--background_page: #0a0a0a;
|
|
25
25
|
--background_suggestions: #333333;
|
|
26
26
|
--background_text_highlighted: rgba(81, 129, 184, 0.2);
|
|
27
27
|
--button_bot_shadow: #222222;
|
|
@@ -53,7 +53,7 @@ body[scheme="vkcom_dark"],
|
|
|
53
53
|
--content_placeholder_icon: #b2b2b2;
|
|
54
54
|
--content_placeholder_text: #b2b2b2;
|
|
55
55
|
--content_positive_background: rgba(75, 179, 75, 0.16);
|
|
56
|
-
--content_tint_background: #
|
|
56
|
+
--content_tint_background: #292929;
|
|
57
57
|
--content_tint_foreground: #939393;
|
|
58
58
|
--content_warning_background: rgba(255, 202, 99, 0.16);
|
|
59
59
|
--control_background: #555555;
|
|
@@ -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: #
|
|
71
|
+
--dynamic_blue: #2b81d6;
|
|
72
72
|
--dynamic_gray: #aeb7c2;
|
|
73
73
|
--dynamic_green: #4bb34b;
|
|
74
74
|
--dynamic_neon_pink: #f45fff;
|
|
@@ -98,7 +98,7 @@ body[scheme="vkcom_dark"],
|
|
|
98
98
|
--header_search_field_background: #424242;
|
|
99
99
|
--header_search_field_tint: #b2b2b2;
|
|
100
100
|
--header_tab_active_background: #656565;
|
|
101
|
-
--header_tab_active_indicator: #
|
|
101
|
+
--header_tab_active_indicator: #2b81d6;
|
|
102
102
|
--header_tab_active_text: #e1e3e6;
|
|
103
103
|
--header_tab_inactive_text: #828282;
|
|
104
104
|
--header_text: #e1e3e6;
|
|
@@ -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: #
|
|
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;
|
|
@@ -205,7 +205,7 @@ 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: #
|
|
208
|
+
--separator_alternate: #292929;
|
|
209
209
|
--separator_common: #424242;
|
|
210
210
|
--skeleton_foreground_from: #292929;
|
|
211
211
|
--skeleton_foreground_to: #333333;
|
|
@@ -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: #
|
|
228
|
+
--tabbar_tablet_active_icon: #2b81d6;
|
|
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: #
|
|
235
|
+
--text_link_highlighted_background: #2b81d6;
|
|
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: #
|
|
8
|
+
--accent: #2b81d6;
|
|
9
9
|
--accent_alternate: #0077ff;
|
|
10
|
-
--action_sheet_action_foreground: #
|
|
10
|
+
--action_sheet_action_foreground: #2b81d6;
|
|
11
11
|
--action_sheet_separator: rgba(0, 0, 0, 0.12);
|
|
12
12
|
--activity_indicator_tint: #aeb7c2;
|
|
13
|
-
--attach_picker_tab_active_background: #
|
|
13
|
+
--attach_picker_tab_active_background: #2b81d6;
|
|
14
14
|
--attach_picker_tab_active_icon: #ffffff;
|
|
15
|
-
--attach_picker_tab_active_text: #
|
|
15
|
+
--attach_picker_tab_active_text: #2b81d6;
|
|
16
16
|
--attach_picker_tab_inactive_background: #f5f5f5;
|
|
17
17
|
--attach_picker_tab_inactive_icon: #818c99;
|
|
18
18
|
--attach_picker_tab_inactive_text: #818c99;
|
|
@@ -21,17 +21,17 @@ body[scheme="vkcom_light"],
|
|
|
21
21
|
--background_hover: rgba(174, 183, 194, 0.12);
|
|
22
22
|
--background_keyboard: #dce1e6;
|
|
23
23
|
--background_light: #fafbfc;
|
|
24
|
-
--background_page: #
|
|
24
|
+
--background_page: #f0f2f5;
|
|
25
25
|
--background_suggestions: #ffffff;
|
|
26
26
|
--background_text_highlighted: rgba(81, 129, 184, 0.2);
|
|
27
27
|
--button_bot_shadow: #cccccc;
|
|
28
28
|
--button_commerce_background: #4bb34b;
|
|
29
29
|
--button_commerce_foreground: #ffffff;
|
|
30
30
|
--button_muted_background: #e5ebf1;
|
|
31
|
-
--button_muted_foreground: #
|
|
32
|
-
--button_outline_border: #
|
|
33
|
-
--button_outline_foreground: #
|
|
34
|
-
--button_primary_background: #
|
|
31
|
+
--button_muted_foreground: #2a6fbd;
|
|
32
|
+
--button_outline_border: #2b81d6;
|
|
33
|
+
--button_outline_foreground: #2b81d6;
|
|
34
|
+
--button_primary_background: #2b81d6;
|
|
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: #
|
|
53
|
-
--button_secondary_foreground_highlighted: #
|
|
52
|
+
--button_secondary_foreground: #2a6fbd;
|
|
53
|
+
--button_secondary_foreground_highlighted: #2a6fbd;
|
|
54
54
|
--button_tertiary_background: rgba(0, 0, 0, 0);
|
|
55
|
-
--button_tertiary_foreground: #
|
|
56
|
-
--cell_button_foreground: #
|
|
55
|
+
--button_tertiary_foreground: #2a6fbd;
|
|
56
|
+
--cell_button_foreground: #2a6fbd;
|
|
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: #
|
|
66
|
+
--control_foreground: #2a6fbd;
|
|
67
67
|
--control_tint: #ffffff;
|
|
68
68
|
--control_tint_muted: #828282;
|
|
69
|
-
--counter_primary_background: #
|
|
69
|
+
--counter_primary_background: #2b81d6;
|
|
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: #
|
|
85
|
+
--feed_recommended_friend_promo_background: #2a6fbd;
|
|
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: #
|
|
97
|
+
--header_alternate_tab_active_indicator: #2b81d6;
|
|
98
98
|
--header_alternate_tab_active_text: #000000;
|
|
99
99
|
--header_alternate_tab_inactive_text: #99a2ad;
|
|
100
100
|
--header_background: #ffffff;
|
|
@@ -103,7 +103,7 @@ 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: #
|
|
106
|
+
--header_tab_active_indicator: #2b81d6;
|
|
107
107
|
--header_tab_active_text: #000000;
|
|
108
108
|
--header_tab_inactive_text: #99a2ad;
|
|
109
109
|
--header_text: #000000;
|
|
@@ -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: #
|
|
124
|
+
--im_attach_tint: #2b81d6;
|
|
125
125
|
--im_bubble_border_alternate: #dce1e6;
|
|
126
126
|
--im_bubble_border_alternate_highlighted: #cccccc;
|
|
127
127
|
--im_bubble_button_background: #f7f8fa;
|
|
@@ -152,9 +152,9 @@ body[scheme="vkcom_light"],
|
|
|
152
152
|
--im_bubble_wallpaper_outgoing: #cce4ff;
|
|
153
153
|
--im_bubble_wallpaper_outgoing_highlighted: #add3ff;
|
|
154
154
|
--im_forward_line_tint: rgba(0, 20, 51, 0.12);
|
|
155
|
-
--im_reply_separator: #
|
|
155
|
+
--im_reply_separator: #2a6fbd;
|
|
156
156
|
--im_service_message_text: #818c99;
|
|
157
|
-
--im_text_name: #
|
|
157
|
+
--im_text_name: #2a6fbd;
|
|
158
158
|
--im_toolbar_separator: #001c3d;
|
|
159
159
|
--im_toolbar_voice_msg_background: #99a2ad;
|
|
160
160
|
--image_border: rgba(0, 0, 0, 0.08);
|
|
@@ -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: #
|
|
167
|
+
--landing_login_button_background: #2b81d6;
|
|
168
168
|
--landing_login_button_foreground: #ffffff;
|
|
169
|
-
--landing_primary_button_background: #
|
|
169
|
+
--landing_primary_button_background: #2b81d6;
|
|
170
170
|
--landing_primary_button_foreground: #ffffff;
|
|
171
171
|
--landing_secondary_button_background: rgba(0, 57, 115, 0.1);
|
|
172
|
-
--landing_secondary_button_foreground: #
|
|
172
|
+
--landing_secondary_button_foreground: #2b81d6;
|
|
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: #
|
|
175
|
+
--landing_tertiary_button_foreground: #2b81d6;
|
|
176
176
|
--landing_text_primary: #000000;
|
|
177
177
|
--landing_text_secondary: #818c99;
|
|
178
|
-
--landing_text_title: #
|
|
178
|
+
--landing_text_title: #2b81d6;
|
|
179
179
|
--like_text_tint: #ff3347;
|
|
180
|
-
--link_alternate: #
|
|
180
|
+
--link_alternate: #2a6fbd;
|
|
181
181
|
--loader_background: #edeef0;
|
|
182
182
|
--loader_tint: #c5d0db;
|
|
183
183
|
--loader_track_fill: #d3d9de;
|
|
184
|
-
--loader_track_value_fill: #
|
|
184
|
+
--loader_track_value_fill: #2b81d6;
|
|
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: #
|
|
202
|
+
--poll_option_background: #2b81d6;
|
|
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: #
|
|
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,19 +227,19 @@ 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: #
|
|
230
|
+
--tabbar_active_icon: #2b81d6;
|
|
231
231
|
--tabbar_background: #f7f8fa;
|
|
232
232
|
--tabbar_inactive_icon: #99a2ad;
|
|
233
|
-
--tabbar_tablet_active_icon: #
|
|
233
|
+
--tabbar_tablet_active_icon: #2b81d6;
|
|
234
234
|
--tabbar_tablet_background: #f7f8fa;
|
|
235
235
|
--tabbar_tablet_inactive_icon: #99a2ad;
|
|
236
236
|
--tabbar_tablet_text_primary: #000000;
|
|
237
237
|
--tabbar_tablet_text_secondary: #818c99;
|
|
238
238
|
--text_action_counter: #818c99;
|
|
239
|
-
--text_link: #
|
|
239
|
+
--text_link: #2a6fbd;
|
|
240
240
|
--text_link_highlighted_background: #000000;
|
|
241
241
|
--text_muted: #333333;
|
|
242
|
-
--text_name: #
|
|
242
|
+
--text_name: #2a6fbd;
|
|
243
243
|
--text_placeholder: #818c99;
|
|
244
244
|
--text_primary: #000000;
|
|
245
245
|
--text_secondary: #818c99;
|