@vkontakte/vkui-tokens 4.29.4 → 4.30.1-dev-ff0eeb.0
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/helpers/appearance.d.ts +5 -0
- package/build/helpers/appearance.js +34 -0
- package/build/helpers/appearance.test.d.ts +1 -0
- package/build/helpers/appearance.test.js +29 -0
- package/interfaces/namespaces/vk/index.d.ts +203 -0
- package/interfaces/namespaces/vk/index.js +2 -1
- package/interfaces/themes/calendar/index.d.ts +7 -0
- package/interfaces/themes/vkBase/index.d.ts +4 -4
- package/interfaces/themes/vkBaseDark/index.d.ts +4 -4
- package/package.json +6 -6
- package/themeDescriptions/base/vk.d.ts +8 -3
- package/themeDescriptions/base/vk.js +67 -3
- package/themes/calendar/cssVars/declarations/index.css +26 -9
- package/themes/calendar/cssVars/declarations/noColors.css +2 -0
- package/themes/calendar/cssVars/declarations/noSizes.css +26 -9
- package/themes/calendar/cssVars/declarations/onlyColors.css +24 -9
- package/themes/calendar/cssVars/declarations/onlyColors.js +2 -2
- package/themes/calendar/cssVars/declarations/onlyVariables.css +26 -9
- package/themes/calendar/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/calendar/cssVars/declarations/onlyVariablesLocal.css +26 -9
- package/themes/calendar/cssVars/declarations/onlyVariablesLocalIncremental.css +26 -9
- package/themes/calendar/cssVars/theme/fallbacks/index.css +26 -9
- package/themes/calendar/cssVars/theme/fallbacks/index.less +26 -9
- package/themes/calendar/cssVars/theme/fallbacks/index.pcss +26 -9
- package/themes/calendar/cssVars/theme/fallbacks/index.scss +26 -9
- package/themes/calendar/cssVars/theme/fallbacks/index.styl +26 -9
- package/themes/calendar/cssVars/theme/index.js +87 -9
- package/themes/calendar/cssVars/theme/index.json +87 -9
- package/themes/calendar/docs.json +28 -0
- package/themes/calendar/index.css +26 -9
- package/themes/calendar/index.js +36 -9
- package/themes/calendar/index.json +36 -9
- package/themes/calendar/index.less +26 -9
- package/themes/calendar/index.pcss +26 -9
- package/themes/calendar/index.scss +26 -9
- package/themes/calendar/index.styl +26 -9
- package/themes/calendar/struct.json +36 -9
- package/themes/calendarDark/cssVars/declarations/index.css +23 -6
- package/themes/calendarDark/cssVars/declarations/noColors.css +2 -0
- package/themes/calendarDark/cssVars/declarations/noSizes.css +23 -6
- package/themes/calendarDark/cssVars/declarations/onlyColors.css +21 -6
- package/themes/calendarDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/calendarDark/cssVars/declarations/onlyVariables.css +23 -6
- package/themes/calendarDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/calendarDark/cssVars/declarations/onlyVariablesLocal.css +23 -6
- package/themes/calendarDark/cssVars/declarations/onlyVariablesLocalIncremental.css +23 -6
- package/themes/calendarDark/cssVars/theme/fallbacks/index.css +23 -6
- package/themes/calendarDark/cssVars/theme/fallbacks/index.less +23 -6
- package/themes/calendarDark/cssVars/theme/fallbacks/index.pcss +23 -6
- package/themes/calendarDark/cssVars/theme/fallbacks/index.scss +23 -6
- package/themes/calendarDark/cssVars/theme/fallbacks/index.styl +23 -6
- package/themes/calendarDark/cssVars/theme/index.js +84 -6
- package/themes/calendarDark/cssVars/theme/index.json +84 -6
- package/themes/calendarDark/docs.json +28 -0
- package/themes/calendarDark/index.css +23 -6
- package/themes/calendarDark/index.js +33 -6
- package/themes/calendarDark/index.json +33 -6
- package/themes/calendarDark/index.less +23 -6
- package/themes/calendarDark/index.pcss +23 -6
- package/themes/calendarDark/index.scss +23 -6
- package/themes/calendarDark/index.styl +23 -6
- package/themes/calendarDark/struct.json +33 -6
- package/themes/vkBase/cssVars/declarations/index.css +79 -0
- package/themes/vkBase/cssVars/declarations/noColors.css +34 -0
- package/themes/vkBase/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkBase/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkBase/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkBase/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkBase/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkBase/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkBase/cssVars/declarations/onlyVariablesLocalIncremental.css +79 -0
- package/themes/vkBase/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkBase/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkBase/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkBase/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkBase/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkBase/cssVars/theme/index.js +346 -0
- package/themes/vkBase/cssVars/theme/index.json +346 -0
- package/themes/vkBase/docs.json +434 -0
- package/themes/vkBase/index.css +79 -0
- package/themes/vkBase/index.js +109 -0
- package/themes/vkBase/index.json +109 -0
- package/themes/vkBase/index.less +79 -0
- package/themes/vkBase/index.pcss +79 -0
- package/themes/vkBase/index.scss +79 -0
- package/themes/vkBase/index.styl +79 -0
- package/themes/vkBase/struct.json +109 -0
- package/themes/vkBaseDark/cssVars/declarations/index.css +79 -0
- package/themes/vkBaseDark/cssVars/declarations/noColors.css +34 -0
- package/themes/vkBaseDark/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkBaseDark/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkBaseDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkBaseDark/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkBaseDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkBaseDark/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkBaseDark/cssVars/declarations/onlyVariablesLocalIncremental.css +45 -0
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkBaseDark/cssVars/theme/index.js +346 -0
- package/themes/vkBaseDark/cssVars/theme/index.json +346 -0
- package/themes/vkBaseDark/docs.json +434 -0
- package/themes/vkBaseDark/index.css +79 -0
- package/themes/vkBaseDark/index.js +109 -0
- package/themes/vkBaseDark/index.json +109 -0
- package/themes/vkBaseDark/index.less +79 -0
- package/themes/vkBaseDark/index.pcss +79 -0
- package/themes/vkBaseDark/index.scss +79 -0
- package/themes/vkBaseDark/index.styl +79 -0
- package/themes/vkBaseDark/struct.json +109 -0
- package/themes/vkCom/cssVars/declarations/index.css +79 -0
- package/themes/vkCom/cssVars/declarations/noColors.css +34 -0
- package/themes/vkCom/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkCom/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkCom/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkCom/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkCom/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkCom/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkCom/cssVars/declarations/onlyVariablesLocalIncremental.css +21 -0
- package/themes/vkCom/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkCom/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkCom/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkCom/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkCom/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkCom/cssVars/theme/index.js +346 -0
- package/themes/vkCom/cssVars/theme/index.json +346 -0
- package/themes/vkCom/docs.json +434 -0
- package/themes/vkCom/index.css +79 -0
- package/themes/vkCom/index.js +109 -0
- package/themes/vkCom/index.json +109 -0
- package/themes/vkCom/index.less +79 -0
- package/themes/vkCom/index.pcss +79 -0
- package/themes/vkCom/index.scss +79 -0
- package/themes/vkCom/index.styl +79 -0
- package/themes/vkCom/struct.json +109 -0
- package/themes/vkComDark/cssVars/declarations/index.css +79 -0
- package/themes/vkComDark/cssVars/declarations/noColors.css +34 -0
- package/themes/vkComDark/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkComDark/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkComDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkComDark/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkComDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkComDark/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkComDark/cssVars/declarations/onlyVariablesLocalIncremental.css +24 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkComDark/cssVars/theme/index.js +346 -0
- package/themes/vkComDark/cssVars/theme/index.json +346 -0
- package/themes/vkComDark/docs.json +434 -0
- package/themes/vkComDark/index.css +79 -0
- package/themes/vkComDark/index.js +109 -0
- package/themes/vkComDark/index.json +109 -0
- package/themes/vkComDark/index.less +79 -0
- package/themes/vkComDark/index.pcss +79 -0
- package/themes/vkComDark/index.scss +79 -0
- package/themes/vkComDark/index.styl +79 -0
- package/themes/vkComDark/struct.json +109 -0
- package/themes/vkIOS/cssVars/declarations/index.css +79 -0
- package/themes/vkIOS/cssVars/declarations/noColors.css +34 -0
- package/themes/vkIOS/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkIOS/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkIOS/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkIOS/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkIOS/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkIOS/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkIOS/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkIOS/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkIOS/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkIOS/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkIOS/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkIOS/cssVars/theme/index.js +346 -0
- package/themes/vkIOS/cssVars/theme/index.json +346 -0
- package/themes/vkIOS/docs.json +434 -0
- package/themes/vkIOS/index.css +79 -0
- package/themes/vkIOS/index.js +109 -0
- package/themes/vkIOS/index.json +109 -0
- package/themes/vkIOS/index.less +79 -0
- package/themes/vkIOS/index.pcss +79 -0
- package/themes/vkIOS/index.scss +79 -0
- package/themes/vkIOS/index.styl +79 -0
- package/themes/vkIOS/struct.json +109 -0
- package/themes/vkIOSDark/cssVars/declarations/index.css +79 -0
- package/themes/vkIOSDark/cssVars/declarations/noColors.css +34 -0
- package/themes/vkIOSDark/cssVars/declarations/noSizes.css +79 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyColors.css +45 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkIOSDark/cssVars/declarations/onlyVariables.css +79 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkIOSDark/cssVars/declarations/onlyVariablesLocal.css +79 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.css +79 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.less +79 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.pcss +79 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.scss +79 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.styl +79 -0
- package/themes/vkIOSDark/cssVars/theme/index.js +346 -0
- package/themes/vkIOSDark/cssVars/theme/index.json +346 -0
- package/themes/vkIOSDark/docs.json +434 -0
- package/themes/vkIOSDark/index.css +79 -0
- package/themes/vkIOSDark/index.js +109 -0
- package/themes/vkIOSDark/index.json +109 -0
- package/themes/vkIOSDark/index.less +79 -0
- package/themes/vkIOSDark/index.pcss +79 -0
- package/themes/vkIOSDark/index.scss +79 -0
- package/themes/vkIOSDark/index.styl +79 -0
- package/themes/vkIOSDark/struct.json +109 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.resolveColor = void 0;
|
|
7
|
+
var palette_json_1 = __importDefault(require("@vkontakte/appearance/main.valette/palette.json"));
|
|
8
|
+
/* eslint-enable @typescript-eslint/naming-convention */
|
|
9
|
+
function resolveColor(clusterData, palette) {
|
|
10
|
+
if (palette === void 0) { palette = palette_json_1.default; }
|
|
11
|
+
var color = palette[clusterData.color_identifier];
|
|
12
|
+
var alphaMultiplier = clusterData.alpha_multiplier ? Number(clusterData.alpha_multiplier) : 1;
|
|
13
|
+
if (!color) {
|
|
14
|
+
throw new Error("Missing color: ".concat(clusterData.color_identifier));
|
|
15
|
+
}
|
|
16
|
+
else if (color.indexOf('#') === 0 && color.length === 9) {
|
|
17
|
+
// ahex
|
|
18
|
+
return ahex2rgba(color.replace('#', ''), alphaMultiplier);
|
|
19
|
+
}
|
|
20
|
+
else if (color.indexOf('#') === 0 && clusterData.alpha_multiplier) {
|
|
21
|
+
return opacify(color.replace('#', ''), alphaMultiplier);
|
|
22
|
+
}
|
|
23
|
+
return color;
|
|
24
|
+
}
|
|
25
|
+
exports.resolveColor = resolveColor;
|
|
26
|
+
function ahex2rgba(ahex, multiplier) {
|
|
27
|
+
if (multiplier === void 0) { multiplier = 1; }
|
|
28
|
+
var opacity = (parseInt(ahex.slice(0, 2), 16) / 255) * multiplier;
|
|
29
|
+
var colorHex = ahex.slice(2);
|
|
30
|
+
return opacify(colorHex, opacity);
|
|
31
|
+
}
|
|
32
|
+
function opacify(hex, opacity) {
|
|
33
|
+
return "rgba(".concat(parseInt(hex.slice(0, 2), 16), ", ").concat(parseInt(hex.slice(2, 4), 16), ", ").concat(parseInt(hex.slice(4), 16), ", ").concat(opacity.toFixed(2), ")");
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
4
|
+
var appearance_1 = require("./appearance");
|
|
5
|
+
describe('vkCom/appearance', function () {
|
|
6
|
+
test('white', function () {
|
|
7
|
+
expect((0, appearance_1.resolveColor)({
|
|
8
|
+
color_identifier: 'white',
|
|
9
|
+
})).toBe('#FFFFFF');
|
|
10
|
+
});
|
|
11
|
+
test('white_alpha12', function () {
|
|
12
|
+
expect((0, appearance_1.resolveColor)({
|
|
13
|
+
color_identifier: 'white_alpha12',
|
|
14
|
+
})).toBe('rgba(255, 255, 255, 0.12)');
|
|
15
|
+
});
|
|
16
|
+
test('white with alpha_multiplier', function () {
|
|
17
|
+
expect((0, appearance_1.resolveColor)({
|
|
18
|
+
color_identifier: 'white',
|
|
19
|
+
alpha_multiplier: 0.04,
|
|
20
|
+
})).toBe('rgba(255, 255, 255, 0.04)');
|
|
21
|
+
});
|
|
22
|
+
test('missing color', function () {
|
|
23
|
+
expect(function () {
|
|
24
|
+
return (0, appearance_1.resolveColor)({
|
|
25
|
+
color_identifier: 'impossible',
|
|
26
|
+
});
|
|
27
|
+
}).toThrow();
|
|
28
|
+
});
|
|
29
|
+
});
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { Theme, ThemeCssVars, ThemeDescription } from '../../general';
|
|
2
|
+
import { ColorDescription, ColorsDescriptionStruct, ColorWithStates } from '../../general/colors';
|
|
3
|
+
import { GradientPoints } from '../../general/gradients';
|
|
4
|
+
import { Tokens } from '../../general/tools/tokenValue';
|
|
5
|
+
export interface VkGradients {
|
|
6
|
+
/**
|
|
7
|
+
* @desc Градиент AquamarineBlue
|
|
8
|
+
* @tags gradient
|
|
9
|
+
*/
|
|
10
|
+
gradientAquamarineBlue: GradientPoints;
|
|
11
|
+
/**
|
|
12
|
+
* @desc Градиент Blue
|
|
13
|
+
* @tags gradient
|
|
14
|
+
*/
|
|
15
|
+
gradientBlue: GradientPoints;
|
|
16
|
+
/**
|
|
17
|
+
* @desc Градиент Candy
|
|
18
|
+
* @tags gradient
|
|
19
|
+
*/
|
|
20
|
+
gradientCandy: GradientPoints;
|
|
21
|
+
/**
|
|
22
|
+
* @desc Градиент Crimson
|
|
23
|
+
* @tags gradient
|
|
24
|
+
*/
|
|
25
|
+
gradientCrimson: GradientPoints;
|
|
26
|
+
/**
|
|
27
|
+
* @desc Градиент Disco
|
|
28
|
+
* @tags gradient
|
|
29
|
+
*/
|
|
30
|
+
gradientDisco: GradientPoints;
|
|
31
|
+
/**
|
|
32
|
+
* @desc Градиент Emerald
|
|
33
|
+
* @tags gradient
|
|
34
|
+
*/
|
|
35
|
+
gradientEmerald: GradientPoints;
|
|
36
|
+
/**
|
|
37
|
+
* @desc Градиент Gray
|
|
38
|
+
* @tags gradient
|
|
39
|
+
*/
|
|
40
|
+
gradientGray: GradientPoints;
|
|
41
|
+
/**
|
|
42
|
+
* @desc Градиент Green
|
|
43
|
+
* @tags gradient
|
|
44
|
+
*/
|
|
45
|
+
gradientGreen: GradientPoints;
|
|
46
|
+
/**
|
|
47
|
+
* @desc Градиент Lagoon
|
|
48
|
+
* @tags gradient
|
|
49
|
+
*/
|
|
50
|
+
gradientLagoon: GradientPoints;
|
|
51
|
+
/**
|
|
52
|
+
* @desc Градиент Lavender
|
|
53
|
+
* @tags gradient
|
|
54
|
+
*/
|
|
55
|
+
gradientLavender: GradientPoints;
|
|
56
|
+
/**
|
|
57
|
+
* @desc Градиент Marine
|
|
58
|
+
* @tags gradient
|
|
59
|
+
*/
|
|
60
|
+
gradientMarine: GradientPoints;
|
|
61
|
+
/**
|
|
62
|
+
* @desc Градиент Midnight
|
|
63
|
+
* @tags gradient
|
|
64
|
+
*/
|
|
65
|
+
gradientMidnight: GradientPoints;
|
|
66
|
+
/**
|
|
67
|
+
* @desc Градиент Orange
|
|
68
|
+
* @tags gradient
|
|
69
|
+
*/
|
|
70
|
+
gradientOrange: GradientPoints;
|
|
71
|
+
/**
|
|
72
|
+
* @desc Градиент Pink
|
|
73
|
+
* @tags gradient
|
|
74
|
+
*/
|
|
75
|
+
gradientPink: GradientPoints;
|
|
76
|
+
/**
|
|
77
|
+
* @desc Градиент Purple
|
|
78
|
+
* @tags gradient
|
|
79
|
+
*/
|
|
80
|
+
gradientPurple: GradientPoints;
|
|
81
|
+
/**
|
|
82
|
+
* @desc Градиент RaspberryPink
|
|
83
|
+
* @tags gradient
|
|
84
|
+
*/
|
|
85
|
+
gradientRaspberryPink: GradientPoints;
|
|
86
|
+
/**
|
|
87
|
+
* @desc Градиент Red
|
|
88
|
+
* @tags gradient
|
|
89
|
+
*/
|
|
90
|
+
gradientRed: GradientPoints;
|
|
91
|
+
/**
|
|
92
|
+
* @desc Градиент Retrowave
|
|
93
|
+
* @tags gradient
|
|
94
|
+
*/
|
|
95
|
+
gradientRetrowave: GradientPoints;
|
|
96
|
+
/**
|
|
97
|
+
* @desc Градиент Sunset
|
|
98
|
+
* @tags gradient
|
|
99
|
+
*/
|
|
100
|
+
gradientSunset: GradientPoints;
|
|
101
|
+
/**
|
|
102
|
+
* @desc Градиент Turquoise
|
|
103
|
+
* @tags gradient
|
|
104
|
+
*/
|
|
105
|
+
gradientTurquoise: GradientPoints;
|
|
106
|
+
/**
|
|
107
|
+
* @desc Градиент Twilight
|
|
108
|
+
* @tags gradient
|
|
109
|
+
*/
|
|
110
|
+
gradientTwilight: GradientPoints;
|
|
111
|
+
/**
|
|
112
|
+
* @desc Градиент Unicorn
|
|
113
|
+
* @tags gradient
|
|
114
|
+
*/
|
|
115
|
+
gradientUnicorn: GradientPoints;
|
|
116
|
+
/**
|
|
117
|
+
* @desc Градиент Violet
|
|
118
|
+
* @tags gradient
|
|
119
|
+
*/
|
|
120
|
+
gradientViolet: GradientPoints;
|
|
121
|
+
/**
|
|
122
|
+
* @desc Градиент Yellow
|
|
123
|
+
* @tags gradient
|
|
124
|
+
*/
|
|
125
|
+
gradientYellow: GradientPoints;
|
|
126
|
+
/**
|
|
127
|
+
* @desc Градиент YellowBright
|
|
128
|
+
* @tags gradient
|
|
129
|
+
*/
|
|
130
|
+
gradientYellowBright: GradientPoints;
|
|
131
|
+
/**
|
|
132
|
+
* @desc Градиент HalloweenOrange
|
|
133
|
+
* @tags gradient
|
|
134
|
+
*/
|
|
135
|
+
gradientHalloweenOrange: GradientPoints;
|
|
136
|
+
/**
|
|
137
|
+
* @desc Градиент HalloweenViolet
|
|
138
|
+
* @tags gradient
|
|
139
|
+
*/
|
|
140
|
+
gradientHalloweenViolet: GradientPoints;
|
|
141
|
+
/**
|
|
142
|
+
* @desc Градиент NewYear
|
|
143
|
+
* @tags gradient
|
|
144
|
+
*/
|
|
145
|
+
gradientNewYear: GradientPoints;
|
|
146
|
+
/**
|
|
147
|
+
* @desc Градиент Frost
|
|
148
|
+
* @tags gradient
|
|
149
|
+
*/
|
|
150
|
+
gradientFrost: GradientPoints;
|
|
151
|
+
/**
|
|
152
|
+
* @desc Градиент Valentine
|
|
153
|
+
* @tags gradient
|
|
154
|
+
*/
|
|
155
|
+
gradientValentine: GradientPoints;
|
|
156
|
+
/**
|
|
157
|
+
* @desc Градиент WarmValentine
|
|
158
|
+
* @tags gradient
|
|
159
|
+
*/
|
|
160
|
+
gradientWarmValentine: GradientPoints;
|
|
161
|
+
/**
|
|
162
|
+
* @desc Градиент Sberkot
|
|
163
|
+
* @tags gradient
|
|
164
|
+
*/
|
|
165
|
+
gradientSberkot: GradientPoints;
|
|
166
|
+
/**
|
|
167
|
+
* @desc Градиент Mable
|
|
168
|
+
* @tags gradient
|
|
169
|
+
*/
|
|
170
|
+
gradientMable: GradientPoints;
|
|
171
|
+
/**
|
|
172
|
+
* @desc Градиент WomensDay
|
|
173
|
+
* @tags gradient
|
|
174
|
+
*/
|
|
175
|
+
gradientWomensDay: GradientPoints;
|
|
176
|
+
}
|
|
177
|
+
export interface LocalVkColorsDescriptionStruct {
|
|
178
|
+
colorSnippetBorderAlpha: ColorDescription;
|
|
179
|
+
colorModalCardBorderAlpha: ColorDescription;
|
|
180
|
+
colorLandingSnippetBorderAlpha: ColorDescription;
|
|
181
|
+
colorActionSheetSeparatorAlpha: ColorDescription;
|
|
182
|
+
colorInputBorder: ColorDescription;
|
|
183
|
+
colorImForwardLineAlpha: ColorDescription;
|
|
184
|
+
colorImBubbleBorderAlternateHighlightedAlpha: ColorDescription;
|
|
185
|
+
colorImBubbleIncoming: ColorDescription;
|
|
186
|
+
colorImBubbleIncomingAlternate: ColorDescription;
|
|
187
|
+
colorImBubbleIncomingExpiring: ColorDescription;
|
|
188
|
+
colorImBubbleOutgoing: ColorDescription;
|
|
189
|
+
colorImBubbleOutgoingExpiringHighlighted: ColorDescription;
|
|
190
|
+
colorImBubbleGiftText: ColorDescription;
|
|
191
|
+
colorImBubbleGiftTextSecondary: ColorDescription;
|
|
192
|
+
colorImTextName: ColorDescription;
|
|
193
|
+
}
|
|
194
|
+
export type VkLocalColors = {
|
|
195
|
+
[key in keyof LocalVkColorsDescriptionStruct]: ColorWithStates;
|
|
196
|
+
};
|
|
197
|
+
export interface VkTheme extends Theme, VkGradients, VkLocalColors {
|
|
198
|
+
}
|
|
199
|
+
export interface VkThemeDescription extends ThemeDescription, Tokens<VkGradients> {
|
|
200
|
+
colors: LocalVkColorsDescriptionStruct & ColorsDescriptionStruct;
|
|
201
|
+
}
|
|
202
|
+
export interface VkThemeCssVars extends ThemeCssVars<VkTheme> {
|
|
203
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -12,6 +12,8 @@ export interface ThemeCalendarOverValues {
|
|
|
12
12
|
calendarSizeBorderRadiusSmall: number;
|
|
13
13
|
calendarSizeBorderRadiusMedium: number;
|
|
14
14
|
calendarSizeBorderRadiusLarge: number;
|
|
15
|
+
calendarImageOverlayBackground: string;
|
|
16
|
+
calendarElevationEventForm: string;
|
|
15
17
|
}
|
|
16
18
|
export interface LocalCalendarColorDescriptionStruct {
|
|
17
19
|
calendarColorBackgroundPositiveTintAlpha4: ColorDescription;
|
|
@@ -34,6 +36,11 @@ export interface LocalCalendarColorDescriptionStruct {
|
|
|
34
36
|
calendarColorSidebarComposeButtonIcon: ColorDescription;
|
|
35
37
|
calendarColorSidebarComposeButtonText: ColorDescription;
|
|
36
38
|
calendarColorSidebarScrollbar: ColorDescription;
|
|
39
|
+
calendarColorHeaderBackground: ColorDescription;
|
|
40
|
+
calendarColorHeaderSecondaryAlpha: ColorDescription;
|
|
41
|
+
calendarColorHeaderonSecondary: ColorDescription;
|
|
42
|
+
calendarColorHeaderonWidgetAlpha: ColorDescription;
|
|
43
|
+
calendarColorHeaderWidgetBackgroundAlpha: ColorDescription;
|
|
37
44
|
calendarColorHeaderIcon: ColorDescription;
|
|
38
45
|
calendarColorHeaderTextSecondary: ColorDescription;
|
|
39
46
|
calendarColorHeaderButtonText: ColorDescription;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ThemeVkBase extends
|
|
1
|
+
import { VkTheme, VkThemeCssVars, VkThemeDescription } from '../../namespaces/vk';
|
|
2
|
+
export interface ThemeVkBase extends VkTheme {
|
|
3
3
|
}
|
|
4
|
-
export interface ThemeVkBaseDescription extends
|
|
4
|
+
export interface ThemeVkBaseDescription extends VkThemeDescription {
|
|
5
5
|
}
|
|
6
|
-
export interface ThemeVkBaseCssVars extends
|
|
6
|
+
export interface ThemeVkBaseCssVars extends VkThemeCssVars {
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ThemeVkBaseDark extends
|
|
1
|
+
import { VkTheme, VkThemeCssVars, VkThemeDescription } from '../../namespaces/vk';
|
|
2
|
+
export interface ThemeVkBaseDark extends VkTheme {
|
|
3
3
|
}
|
|
4
|
-
export interface ThemeVkBaseDarkDescription extends
|
|
4
|
+
export interface ThemeVkBaseDarkDescription extends VkThemeDescription {
|
|
5
5
|
}
|
|
6
|
-
export interface ThemeVkBaseDarkCssVars extends
|
|
6
|
+
export interface ThemeVkBaseDarkCssVars extends VkThemeCssVars {
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/vkui-tokens",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.30.1-dev-ff0eeb.0",
|
|
4
4
|
"description": "Репозиторий, который содержит в себе дизайн-токены и другие инструменты объединенной дизайн-системы VKUI и Paradigm",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "utils/descriptions.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@types/react-dom": "18.0.10",
|
|
44
44
|
"@typescript-eslint/eslint-plugin": "4.33.0",
|
|
45
45
|
"@typescript-eslint/parser": "4.33.0",
|
|
46
|
-
"@vkontakte/appearance": "https://github.com/VKCOM/Appearance#
|
|
46
|
+
"@vkontakte/appearance": "https://github.com/VKCOM/Appearance#v10.1.0",
|
|
47
47
|
"@vkontakte/icons": "2.14.0",
|
|
48
48
|
"@vkontakte/prettier-config": "0.1.0",
|
|
49
49
|
"@vkontakte/vk-bridge": "2.7.2",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"css-loader": "6.7.3",
|
|
60
60
|
"css.escape": "1.5.1",
|
|
61
61
|
"eslint": "7.32.0",
|
|
62
|
-
"eslint-config-prettier": "8.
|
|
62
|
+
"eslint-config-prettier": "8.7.0",
|
|
63
63
|
"eslint-config-silence": "1.0.0",
|
|
64
64
|
"eslint-import-resolver-alias": "1.1.2",
|
|
65
|
-
"eslint-plugin-compat": "4.
|
|
65
|
+
"eslint-plugin-compat": "4.1.2",
|
|
66
66
|
"eslint-plugin-import": "2.27.5",
|
|
67
67
|
"eslint-plugin-jasmine": "4.1.3",
|
|
68
68
|
"eslint-plugin-prettier": "4.2.1",
|
|
@@ -87,13 +87,13 @@
|
|
|
87
87
|
"tscpaths": "0.0.9",
|
|
88
88
|
"type-fest": "3.6.1",
|
|
89
89
|
"typescript": "4.9.5",
|
|
90
|
-
"webpack": "5.
|
|
90
|
+
"webpack": "5.76.1",
|
|
91
91
|
"webpack-cli": "5.0.1",
|
|
92
92
|
"webpack-dev-server": "4.11.1",
|
|
93
93
|
"webpack-notifier": "1.15.0"
|
|
94
94
|
},
|
|
95
95
|
"engines": {
|
|
96
|
-
"npm": "^
|
|
96
|
+
"npm": "^9.3.1",
|
|
97
97
|
"yarn": "^1.21.1"
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bright_light, space_gray } from '@vkontakte/appearance/main.valette/scheme.json';
|
|
2
|
+
import { vkcom_dark, vkcom_light } from '@vkontakte/appearance/main.valette/scheme_web.json';
|
|
3
|
+
import { ColorsDescription } from '../../interfaces/general';
|
|
2
4
|
import { Elevation } from '../../interfaces/general/elevation';
|
|
3
5
|
import { Gradients } from '../../interfaces/general/gradients';
|
|
6
|
+
import { LocalVkColorsDescriptionStruct, VkGradients, VkThemeDescription } from '../../interfaces/namespaces/vk';
|
|
7
|
+
export declare const vkLocalColors: (theme: typeof bright_light | typeof space_gray | typeof vkcom_light | typeof vkcom_dark, palette?: Record<string, string>) => LocalVkColorsDescriptionStruct;
|
|
4
8
|
export declare const lightColors: ColorsDescription;
|
|
5
9
|
export declare const lightGradient: Gradients;
|
|
6
10
|
export declare const lightElevation: Elevation;
|
|
7
11
|
export declare const darkColors: ColorsDescription;
|
|
8
12
|
export declare const darkGradient: Gradients;
|
|
9
13
|
export declare const darkElevation: Elevation;
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
14
|
+
export declare const gradients: VkGradients;
|
|
15
|
+
export declare const lightTheme: VkThemeDescription;
|
|
16
|
+
export declare const darkTheme: VkThemeDescription;
|
|
@@ -10,10 +10,38 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
13
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.darkTheme = exports.lightTheme = exports.darkElevation = exports.darkGradient = exports.darkColors = exports.lightElevation = exports.lightGradient = exports.lightColors = void 0;
|
|
17
|
+
exports.darkTheme = exports.lightTheme = exports.gradients = exports.darkElevation = exports.darkGradient = exports.darkColors = exports.lightElevation = exports.lightGradient = exports.lightColors = exports.vkLocalColors = void 0;
|
|
18
|
+
var palette_json_1 = __importDefault(require("@vkontakte/appearance/main.valette/palette.json"));
|
|
19
|
+
var scheme_json_1 = require("@vkontakte/appearance/main.valette/scheme.json");
|
|
20
|
+
var appearance_1 = require("../../build/helpers/appearance");
|
|
15
21
|
var getGradientPointsFromColor_1 = require("../../build/helpers/getGradientPointsFromColor");
|
|
16
22
|
var tokenHelpers_1 = require("../../build/helpers/tokenHelpers");
|
|
23
|
+
var vkLocalColors = function (theme, palette) {
|
|
24
|
+
if (palette === void 0) { palette = palette_json_1.default; }
|
|
25
|
+
var resolve = function (clusterData) { return (0, appearance_1.resolveColor)(clusterData, palette); };
|
|
26
|
+
return {
|
|
27
|
+
colorSnippetBorderAlpha: resolve(theme.colors.snippet_border),
|
|
28
|
+
colorModalCardBorderAlpha: resolve(theme.colors.modal_card_border),
|
|
29
|
+
colorLandingSnippetBorderAlpha: resolve(theme.colors.landing_snippet_border),
|
|
30
|
+
colorActionSheetSeparatorAlpha: resolve(theme.colors.action_sheet_separator),
|
|
31
|
+
colorInputBorder: resolve(theme.colors.input_border),
|
|
32
|
+
colorImForwardLineAlpha: resolve(theme.colors.im_forward_line_tint),
|
|
33
|
+
colorImBubbleBorderAlternateHighlightedAlpha: resolve(theme.colors.im_bubble_border_alternate_highlighted),
|
|
34
|
+
colorImBubbleIncoming: resolve(theme.colors.im_bubble_incoming),
|
|
35
|
+
colorImBubbleIncomingAlternate: resolve(theme.colors.im_bubble_incoming_alternate),
|
|
36
|
+
colorImBubbleIncomingExpiring: resolve(theme.colors.im_bubble_incoming_expiring),
|
|
37
|
+
colorImBubbleOutgoing: resolve(theme.colors.im_bubble_outgoing),
|
|
38
|
+
colorImBubbleOutgoingExpiringHighlighted: resolve(theme.colors.im_bubble_outgoing_expiring_highlighted),
|
|
39
|
+
colorImBubbleGiftText: resolve(theme.colors.im_bubble_gift_text),
|
|
40
|
+
colorImBubbleGiftTextSecondary: resolve(theme.colors.im_bubble_gift_text_secondary),
|
|
41
|
+
colorImTextName: resolve(theme.colors.im_text_name),
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
exports.vkLocalColors = vkLocalColors;
|
|
17
45
|
var fontFamilyAccent = "-apple-system, system-ui, \"Helvetica Neue\", Roboto, sans-serif";
|
|
18
46
|
var fontFamilyBase = "-apple-system, system-ui, \"Helvetica Neue\", Roboto, sans-serif";
|
|
19
47
|
var fontWeightAccent1 = 600;
|
|
@@ -279,7 +307,43 @@ exports.darkElevation = {
|
|
|
279
307
|
elevation3: '0px 0px 2px rgba(0, 0, 0, 0.08), 0px 4px 16px rgba(0, 0, 0, 0.08)',
|
|
280
308
|
elevation4: '0px 0px 8px rgba(0, 0, 0, 0.12), 0px 16px 16px rgba(0, 0, 0, 0.16)',
|
|
281
309
|
};
|
|
282
|
-
exports.
|
|
310
|
+
exports.gradients = {
|
|
311
|
+
gradientAquamarineBlue: '#7DF1FA, #2BB4D6',
|
|
312
|
+
gradientBlue: '#66CCFF, #3F8AE0',
|
|
313
|
+
gradientCandy: '#FF99CC, #E52E6A',
|
|
314
|
+
gradientCrimson: '#FF7373, #E53949, #BF1C38',
|
|
315
|
+
gradientDisco: '#FFB726, #FF2693, #8122E0, #2693FF',
|
|
316
|
+
gradientEmerald: '#00D948, #0D8046',
|
|
317
|
+
gradientGray: '#C1CAD6, #878F99',
|
|
318
|
+
gradientGreen: '#6CD97E, #12B312',
|
|
319
|
+
gradientLagoon: '#2BD9D9, #5C9CE6',
|
|
320
|
+
gradientLavender: '#928FFF, #4B47B2',
|
|
321
|
+
gradientMarine: '#2EE54D, #0D7EFF',
|
|
322
|
+
gradientMidnight: '#73D0FF, #3885E1, #0032A6',
|
|
323
|
+
gradientOrange: '#FFBF80, #E66B2E',
|
|
324
|
+
gradientPink: '#FF8880, #E62E6B',
|
|
325
|
+
gradientPurple: '#A393F5, #735CE6',
|
|
326
|
+
gradientRaspberryPink: '#FF80D5, #E645B1',
|
|
327
|
+
gradientRed: '#FF7583, #E62E40',
|
|
328
|
+
gradientRetrowave: '#30F2B1, #5967FF, #FF26A5',
|
|
329
|
+
gradientSunset: '#FFD24D, #F26549, #E62E6B',
|
|
330
|
+
gradientTurquoise: '#8AE6E6, #12B3B3',
|
|
331
|
+
gradientTwilight: '#FF4D87, #9F40FF, #3399FF',
|
|
332
|
+
gradientUnicorn: '#FF99CC, #A179F2, #5CA1E6',
|
|
333
|
+
gradientViolet: '#D3A6FF, #903FE0',
|
|
334
|
+
gradientYellow: '#FFC44D, #F07300',
|
|
335
|
+
gradientYellowBright: '#FFD54F, #E7A902',
|
|
336
|
+
gradientHalloweenOrange: '#CB1E3B, #F05C44, #FFA000',
|
|
337
|
+
gradientHalloweenViolet: '#FFA000, #CD4C4B, #792EC0',
|
|
338
|
+
gradientNewYear: '#BB64E4, #805BD7, #2866D5',
|
|
339
|
+
gradientFrost: '#4FA0FF, #016CEA',
|
|
340
|
+
gradientValentine: '#FF8A65, #F25383, #8F13DB',
|
|
341
|
+
gradientWarmValentine: '#F3386A, #FF819E',
|
|
342
|
+
gradientSberkot: '#9DF19D, #31C2A7, #21A19A, #107F8C',
|
|
343
|
+
gradientMable: '#D9F4FF, #D9F4FF',
|
|
344
|
+
gradientWomensDay: '#FF99CC, #E52E6A',
|
|
345
|
+
};
|
|
346
|
+
exports.lightTheme = __assign(__assign(__assign(__assign(__assign(__assign({ themeName: 'vkBase', themeNameBase: 'vkBase' }, exports.lightColors), { colors: __assign(__assign({}, exports.lightColors.colors), (0, exports.vkLocalColors)(scheme_json_1.bright_light)) }), exports.gradients), exports.lightGradient), exports.lightElevation), {
|
|
283
347
|
// Типографика
|
|
284
348
|
fontFamilyAccent: fontFamilyAccent, fontFamilyBase: fontFamilyBase, fontWeightAccent1: fontWeightAccent1, fontWeightAccent2: fontWeightAccent2, fontWeightAccent3: fontWeightAccent3, fontWeightBase1: fontWeightBase1, fontWeightBase2: fontWeightBase2, fontWeightBase3: fontWeightBase3, fontTitle1: {
|
|
285
349
|
regular: {
|
|
@@ -577,4 +641,4 @@ exports.lightTheme = __assign(__assign(__assign(__assign({ themeName: 'vkBase',
|
|
|
577
641
|
},
|
|
578
642
|
// Разное
|
|
579
643
|
animationDurationL: '0.4s', animationDurationM: '0.2s', animationDurationS: '0.1s', animationEasingDefault: 'cubic-bezier(0.3, 0.3, 0.5, 1)', animationEasingPlatform: 'cubic-bezier(0.4, 0, 0.2, 1)', opacityDisable: 0.4, opacityDisableAccessibility: 0.64, zIndexModal: 99, zIndexPopout: 100 });
|
|
580
|
-
exports.darkTheme = __assign(__assign(__assign(__assign(__assign({}, exports.lightTheme), exports.darkColors), exports.darkGradient), exports.darkElevation), { themeName: 'vkBaseDark', themeInheritsFrom: 'vkBase', colorsScheme: 'dark' });
|
|
644
|
+
exports.darkTheme = __assign(__assign(__assign(__assign(__assign(__assign({}, exports.lightTheme), exports.darkColors), { colors: __assign(__assign({}, exports.darkColors.colors), (0, exports.vkLocalColors)(scheme_json_1.space_gray)) }), exports.darkGradient), exports.darkElevation), { themeName: 'vkBaseDark', themeInheritsFrom: 'vkBase', colorsScheme: 'dark' });
|
|
@@ -347,9 +347,11 @@
|
|
|
347
347
|
--vkui--type_border_position: inset;
|
|
348
348
|
--vkui--theme_name_base: 'calendar';
|
|
349
349
|
--vkui--calendar_elevation_header: 0 0 16px 0 rgba(2, 13, 41, 0.12);
|
|
350
|
+
--vkui--calendar_elevation_event_form: 0px 4px 64px 0px rgba(0, 16, 61, 0.2);
|
|
350
351
|
--vkui--calendar_size_border_radius_small: 4px;
|
|
351
352
|
--vkui--calendar_size_border_radius_medium: 6px;
|
|
352
353
|
--vkui--calendar_size_border_radius_large: 8px;
|
|
354
|
+
--vkui--calendar_image_overlay_background: none;
|
|
353
355
|
--vkui--calendar_font_text_event--font_size--regular: 17px;
|
|
354
356
|
--vkui--calendar_font_text_event--line_height--regular: 24px;
|
|
355
357
|
--vkui--calendar_font_text_event--font_weight--regular: 400;
|
|
@@ -732,12 +734,12 @@
|
|
|
732
734
|
--vkui--calendar_color_overlay_background: transparent;
|
|
733
735
|
--vkui--calendar_color_overlay_background--hover: rgba(0, 16, 61, 0.04);
|
|
734
736
|
--vkui--calendar_color_overlay_background--active: rgba(0, 16, 61, 0.08);
|
|
735
|
-
--vkui--calendar_color_sidebar_item_icon_primary: #
|
|
736
|
-
--vkui--calendar_color_sidebar_item_icon_primary--hover: #
|
|
737
|
-
--vkui--calendar_color_sidebar_item_icon_primary--active: #
|
|
738
|
-
--vkui--calendar_color_sidebar_item_text_primary: #
|
|
739
|
-
--vkui--calendar_color_sidebar_item_text_primary--hover: #
|
|
740
|
-
--vkui--calendar_color_sidebar_item_text_primary--active: #
|
|
737
|
+
--vkui--calendar_color_sidebar_item_icon_primary: #2C2D2E;
|
|
738
|
+
--vkui--calendar_color_sidebar_item_icon_primary--hover: #2A2C2F;
|
|
739
|
+
--vkui--calendar_color_sidebar_item_icon_primary--active: #282B2F;
|
|
740
|
+
--vkui--calendar_color_sidebar_item_text_primary: #2C2D2E;
|
|
741
|
+
--vkui--calendar_color_sidebar_item_text_primary--hover: #2A2C2F;
|
|
742
|
+
--vkui--calendar_color_sidebar_item_text_primary--active: #282B2F;
|
|
741
743
|
--vkui--calendar_color_sidebar_item_icon_secondary: #87898F;
|
|
742
744
|
--vkui--calendar_color_sidebar_item_icon_secondary--hover: #82848C;
|
|
743
745
|
--vkui--calendar_color_sidebar_item_icon_secondary--active: #7C7F88;
|
|
@@ -756,6 +758,21 @@
|
|
|
756
758
|
--vkui--calendar_color_sidebar_scrollbar: #C7C7C7;
|
|
757
759
|
--vkui--calendar_color_sidebar_scrollbar--hover: #BFC0C1;
|
|
758
760
|
--vkui--calendar_color_sidebar_scrollbar--active: #B7B8BC;
|
|
761
|
+
--vkui--calendar_color_header_background: #FFFFFF;
|
|
762
|
+
--vkui--calendar_color_header_background--hover: #F5F5F7;
|
|
763
|
+
--vkui--calendar_color_header_background--active: #EBECEF;
|
|
764
|
+
--vkui--calendar_color_header_secondary_alpha: rgba(0, 95, 249, 0.1);
|
|
765
|
+
--vkui--calendar_color_header_secondary_alpha--hover: rgba(0, 95, 249, 0.14);
|
|
766
|
+
--vkui--calendar_color_header_secondary_alpha--active: rgba(0, 95, 249, 0.18);
|
|
767
|
+
--vkui--calendar_color_headeron_secondary: #005FF9;
|
|
768
|
+
--vkui--calendar_color_headeron_secondary--hover: #005CF1;
|
|
769
|
+
--vkui--calendar_color_headeron_secondary--active: #0059EA;
|
|
770
|
+
--vkui--calendar_color_headeron_widget_alpha: rgba(0, 95, 249, 1);
|
|
771
|
+
--vkui--calendar_color_headeron_widget_alpha--hover: #005CF1;
|
|
772
|
+
--vkui--calendar_color_headeron_widget_alpha--active: #0059EA;
|
|
773
|
+
--vkui--calendar_color_header_widget_background_alpha: rgba(255, 255, 255, 1);
|
|
774
|
+
--vkui--calendar_color_header_widget_background_alpha--hover: #F5F5F7;
|
|
775
|
+
--vkui--calendar_color_header_widget_background_alpha--active: #EBECEF;
|
|
759
776
|
--vkui--calendar_color_header_icon: #2C2D2E;
|
|
760
777
|
--vkui--calendar_color_header_icon--hover: #2A2C2F;
|
|
761
778
|
--vkui--calendar_color_header_icon--active: #282B2F;
|
|
@@ -771,9 +788,9 @@
|
|
|
771
788
|
--vkui--calendar_color_header_search_icon: #B6B8BE;
|
|
772
789
|
--vkui--calendar_color_header_search_icon--hover: #AFB1B9;
|
|
773
790
|
--vkui--calendar_color_header_search_icon--active: #A7ABB4;
|
|
774
|
-
--vkui--calendar_color_header_search_text_collapsed: #
|
|
775
|
-
--vkui--calendar_color_header_search_text_collapsed--hover: #
|
|
776
|
-
--vkui--calendar_color_header_search_text_collapsed--active: #
|
|
791
|
+
--vkui--calendar_color_header_search_text_collapsed: #2C2D2E;
|
|
792
|
+
--vkui--calendar_color_header_search_text_collapsed--hover: #2A2C2F;
|
|
793
|
+
--vkui--calendar_color_header_search_text_collapsed--active: #282B2F;
|
|
777
794
|
--vkui--calendar_color_header_search_background: #F0F1F3;
|
|
778
795
|
--vkui--calendar_color_header_search_background--hover: #E6E8EC;
|
|
779
796
|
--vkui--calendar_color_header_search_background--active: #DDDFE4;
|
|
@@ -347,9 +347,11 @@
|
|
|
347
347
|
--vkui--type_border_position: inset;
|
|
348
348
|
--vkui--theme_name_base: 'calendar';
|
|
349
349
|
--vkui--calendar_elevation_header: 0 0 16px 0 rgba(2, 13, 41, 0.12);
|
|
350
|
+
--vkui--calendar_elevation_event_form: 0px 4px 64px 0px rgba(0, 16, 61, 0.2);
|
|
350
351
|
--vkui--calendar_size_border_radius_small: 4px;
|
|
351
352
|
--vkui--calendar_size_border_radius_medium: 6px;
|
|
352
353
|
--vkui--calendar_size_border_radius_large: 8px;
|
|
354
|
+
--vkui--calendar_image_overlay_background: none;
|
|
353
355
|
--vkui--calendar_font_text_event--font_size--regular: 17px;
|
|
354
356
|
--vkui--calendar_font_text_event--line_height--regular: 24px;
|
|
355
357
|
--vkui--calendar_font_text_event--font_weight--regular: 400;
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
--vkui--type_border_position: inset;
|
|
28
28
|
--vkui--theme_name_base: 'calendar';
|
|
29
29
|
--vkui--calendar_elevation_header: 0 0 16px 0 rgba(2, 13, 41, 0.12);
|
|
30
|
+
--vkui--calendar_elevation_event_form: 0px 4px 64px 0px rgba(0, 16, 61, 0.2);
|
|
31
|
+
--vkui--calendar_image_overlay_background: none;
|
|
30
32
|
--vkui--colors_scheme: light;
|
|
31
33
|
--vkui--color_background_accent: #005FF9;
|
|
32
34
|
--vkui--color_background_accent--hover: #005CF1;
|
|
@@ -385,12 +387,12 @@
|
|
|
385
387
|
--vkui--calendar_color_overlay_background: transparent;
|
|
386
388
|
--vkui--calendar_color_overlay_background--hover: rgba(0, 16, 61, 0.04);
|
|
387
389
|
--vkui--calendar_color_overlay_background--active: rgba(0, 16, 61, 0.08);
|
|
388
|
-
--vkui--calendar_color_sidebar_item_icon_primary: #
|
|
389
|
-
--vkui--calendar_color_sidebar_item_icon_primary--hover: #
|
|
390
|
-
--vkui--calendar_color_sidebar_item_icon_primary--active: #
|
|
391
|
-
--vkui--calendar_color_sidebar_item_text_primary: #
|
|
392
|
-
--vkui--calendar_color_sidebar_item_text_primary--hover: #
|
|
393
|
-
--vkui--calendar_color_sidebar_item_text_primary--active: #
|
|
390
|
+
--vkui--calendar_color_sidebar_item_icon_primary: #2C2D2E;
|
|
391
|
+
--vkui--calendar_color_sidebar_item_icon_primary--hover: #2A2C2F;
|
|
392
|
+
--vkui--calendar_color_sidebar_item_icon_primary--active: #282B2F;
|
|
393
|
+
--vkui--calendar_color_sidebar_item_text_primary: #2C2D2E;
|
|
394
|
+
--vkui--calendar_color_sidebar_item_text_primary--hover: #2A2C2F;
|
|
395
|
+
--vkui--calendar_color_sidebar_item_text_primary--active: #282B2F;
|
|
394
396
|
--vkui--calendar_color_sidebar_item_icon_secondary: #87898F;
|
|
395
397
|
--vkui--calendar_color_sidebar_item_icon_secondary--hover: #82848C;
|
|
396
398
|
--vkui--calendar_color_sidebar_item_icon_secondary--active: #7C7F88;
|
|
@@ -409,6 +411,21 @@
|
|
|
409
411
|
--vkui--calendar_color_sidebar_scrollbar: #C7C7C7;
|
|
410
412
|
--vkui--calendar_color_sidebar_scrollbar--hover: #BFC0C1;
|
|
411
413
|
--vkui--calendar_color_sidebar_scrollbar--active: #B7B8BC;
|
|
414
|
+
--vkui--calendar_color_header_background: #FFFFFF;
|
|
415
|
+
--vkui--calendar_color_header_background--hover: #F5F5F7;
|
|
416
|
+
--vkui--calendar_color_header_background--active: #EBECEF;
|
|
417
|
+
--vkui--calendar_color_header_secondary_alpha: rgba(0, 95, 249, 0.1);
|
|
418
|
+
--vkui--calendar_color_header_secondary_alpha--hover: rgba(0, 95, 249, 0.14);
|
|
419
|
+
--vkui--calendar_color_header_secondary_alpha--active: rgba(0, 95, 249, 0.18);
|
|
420
|
+
--vkui--calendar_color_headeron_secondary: #005FF9;
|
|
421
|
+
--vkui--calendar_color_headeron_secondary--hover: #005CF1;
|
|
422
|
+
--vkui--calendar_color_headeron_secondary--active: #0059EA;
|
|
423
|
+
--vkui--calendar_color_headeron_widget_alpha: rgba(0, 95, 249, 1);
|
|
424
|
+
--vkui--calendar_color_headeron_widget_alpha--hover: #005CF1;
|
|
425
|
+
--vkui--calendar_color_headeron_widget_alpha--active: #0059EA;
|
|
426
|
+
--vkui--calendar_color_header_widget_background_alpha: rgba(255, 255, 255, 1);
|
|
427
|
+
--vkui--calendar_color_header_widget_background_alpha--hover: #F5F5F7;
|
|
428
|
+
--vkui--calendar_color_header_widget_background_alpha--active: #EBECEF;
|
|
412
429
|
--vkui--calendar_color_header_icon: #2C2D2E;
|
|
413
430
|
--vkui--calendar_color_header_icon--hover: #2A2C2F;
|
|
414
431
|
--vkui--calendar_color_header_icon--active: #282B2F;
|
|
@@ -424,9 +441,9 @@
|
|
|
424
441
|
--vkui--calendar_color_header_search_icon: #B6B8BE;
|
|
425
442
|
--vkui--calendar_color_header_search_icon--hover: #AFB1B9;
|
|
426
443
|
--vkui--calendar_color_header_search_icon--active: #A7ABB4;
|
|
427
|
-
--vkui--calendar_color_header_search_text_collapsed: #
|
|
428
|
-
--vkui--calendar_color_header_search_text_collapsed--hover: #
|
|
429
|
-
--vkui--calendar_color_header_search_text_collapsed--active: #
|
|
444
|
+
--vkui--calendar_color_header_search_text_collapsed: #2C2D2E;
|
|
445
|
+
--vkui--calendar_color_header_search_text_collapsed--hover: #2A2C2F;
|
|
446
|
+
--vkui--calendar_color_header_search_text_collapsed--active: #282B2F;
|
|
430
447
|
--vkui--calendar_color_header_search_background: #F0F1F3;
|
|
431
448
|
--vkui--calendar_color_header_search_background--hover: #E6E8EC;
|
|
432
449
|
--vkui--calendar_color_header_search_background--active: #DDDFE4;
|