@vkontakte/vkui-tokens 4.33.1 → 4.34.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/compilers/styles/compileStyles.d.ts +1 -1
- package/interfaces/themes/portalUI/index.d.ts +199 -0
- package/interfaces/themes/portalUI/index.js +2 -0
- package/interfaces/themes/portalUIDark/index.d.ts +7 -0
- package/interfaces/themes/portalUIDark/index.js +2 -0
- package/package.json +6 -6
- package/themes/portalUI/cssVars/declarations/index.css +1484 -0
- package/themes/portalUI/cssVars/declarations/noColors.css +665 -0
- package/themes/portalUI/cssVars/declarations/noSizes.css +432 -0
- package/themes/portalUI/cssVars/declarations/onlyAdaptiveGroups.css +128 -0
- package/themes/portalUI/cssVars/declarations/onlyColors.css +383 -0
- package/themes/portalUI/cssVars/declarations/onlyColors.d.ts +3 -0
- package/themes/portalUI/cssVars/declarations/onlyColors.js +11 -0
- package/themes/portalUI/cssVars/declarations/onlyMedia.css +362 -0
- package/themes/portalUI/cssVars/declarations/onlyVariables.css +696 -0
- package/themes/portalUI/cssVars/declarations/onlyVariables.d.ts +3 -0
- package/themes/portalUI/cssVars/declarations/onlyVariables.js +11 -0
- package/themes/portalUI/cssVars/declarations/onlyVariablesLocal.css +696 -0
- package/themes/portalUI/cssVars/declarations/onlyVariablesLocalIncremental.css +696 -0
- package/themes/portalUI/cssVars/theme/fallbacks/index.css +993 -0
- package/themes/portalUI/cssVars/theme/fallbacks/index.less +780 -0
- package/themes/portalUI/cssVars/theme/fallbacks/index.pcss +773 -0
- package/themes/portalUI/cssVars/theme/fallbacks/index.scss +1004 -0
- package/themes/portalUI/cssVars/theme/fallbacks/index.styl +780 -0
- package/themes/portalUI/cssVars/theme/index.d.ts +4 -0
- package/themes/portalUI/cssVars/theme/index.js +4246 -0
- package/themes/portalUI/cssVars/theme/index.json +4243 -0
- package/themes/portalUI/docs.json +4076 -0
- package/themes/portalUI/index.css +993 -0
- package/themes/portalUI/index.d.ts +4 -0
- package/themes/portalUI/index.js +1296 -0
- package/themes/portalUI/index.json +1293 -0
- package/themes/portalUI/index.less +780 -0
- package/themes/portalUI/index.pcss +773 -0
- package/themes/portalUI/index.scss +1004 -0
- package/themes/portalUI/index.styl +780 -0
- package/themes/portalUI/struct.json +1319 -0
- package/themes/portalUIDark/cssVars/declarations/index.css +1483 -0
- package/themes/portalUIDark/cssVars/declarations/noColors.css +664 -0
- package/themes/portalUIDark/cssVars/declarations/noSizes.css +431 -0
- package/themes/portalUIDark/cssVars/declarations/onlyAdaptiveGroups.css +128 -0
- package/themes/portalUIDark/cssVars/declarations/onlyColors.css +383 -0
- package/themes/portalUIDark/cssVars/declarations/onlyColors.d.ts +3 -0
- package/themes/portalUIDark/cssVars/declarations/onlyColors.js +11 -0
- package/themes/portalUIDark/cssVars/declarations/onlyMedia.css +362 -0
- package/themes/portalUIDark/cssVars/declarations/onlyVariables.css +695 -0
- package/themes/portalUIDark/cssVars/declarations/onlyVariables.d.ts +3 -0
- package/themes/portalUIDark/cssVars/declarations/onlyVariables.js +11 -0
- package/themes/portalUIDark/cssVars/declarations/onlyVariablesLocal.css +695 -0
- package/themes/portalUIDark/cssVars/declarations/onlyVariablesLocalIncremental.css +695 -0
- package/themes/portalUIDark/cssVars/theme/fallbacks/index.css +992 -0
- package/themes/portalUIDark/cssVars/theme/fallbacks/index.less +779 -0
- package/themes/portalUIDark/cssVars/theme/fallbacks/index.pcss +772 -0
- package/themes/portalUIDark/cssVars/theme/fallbacks/index.scss +1003 -0
- package/themes/portalUIDark/cssVars/theme/fallbacks/index.styl +779 -0
- package/themes/portalUIDark/cssVars/theme/index.d.ts +4 -0
- package/themes/portalUIDark/cssVars/theme/index.js +4242 -0
- package/themes/portalUIDark/cssVars/theme/index.json +4239 -0
- package/themes/portalUIDark/docs.json +4076 -0
- package/themes/portalUIDark/index.css +992 -0
- package/themes/portalUIDark/index.d.ts +4 -0
- package/themes/portalUIDark/index.js +1295 -0
- package/themes/portalUIDark/index.json +1292 -0
- package/themes/portalUIDark/index.less +779 -0
- package/themes/portalUIDark/index.pcss +772 -0
- package/themes/portalUIDark/index.scss +1003 -0
- package/themes/portalUIDark/index.styl +779 -0
- package/themes/portalUIDark/struct.json +1318 -0
|
@@ -8,4 +8,4 @@ export declare function getRootSelector<PT extends PixelifyTheme>(theme: PT, mod
|
|
|
8
8
|
/**
|
|
9
9
|
* Компилирует строку со стилями (в разных форматах), на основе темы
|
|
10
10
|
*/
|
|
11
|
-
export declare const compileStyles: <PT extends PixelifyTheme
|
|
11
|
+
export declare const compileStyles: <PT extends PixelifyTheme = PixelifyTheme>(format: Formats, theme: PT, mode?: CompileStylesMode, themeBase?: PT) => string;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { ColorDescription, ColorWithStates } from '../../general/colors';
|
|
3
|
+
import { GradientPoints } from '../../general/gradients';
|
|
4
|
+
import { DefaultViewports } from '../../general/tools/viewports';
|
|
5
|
+
import { ParadigmTheme, ParadigmThemeCssVars, ParadigmThemeDescription } from '../../namespaces/paradigm';
|
|
6
|
+
interface PortalUITextColors {
|
|
7
|
+
/**
|
|
8
|
+
* @desc Цвет посещённой ссылки в саджестах поиска
|
|
9
|
+
* @tags color, text
|
|
10
|
+
*/
|
|
11
|
+
portalColorTextLinkVisitedAlternative: ColorDescription;
|
|
12
|
+
/**
|
|
13
|
+
* @desc Цвет текста акцентного тултипа
|
|
14
|
+
* @tags color, text
|
|
15
|
+
*/
|
|
16
|
+
portalColorTextBlueAccentThemed: ColorDescription;
|
|
17
|
+
/**
|
|
18
|
+
* @desc Цвет текста акцентного тултипа
|
|
19
|
+
* @tags color, text
|
|
20
|
+
*/
|
|
21
|
+
portalColorTextGreenAccentThemed: ColorDescription;
|
|
22
|
+
/**
|
|
23
|
+
* @desc Цвет текста акцентного тултипа
|
|
24
|
+
* @tags color, text
|
|
25
|
+
*/
|
|
26
|
+
portalColorTextOrangeAccentThemed: ColorDescription;
|
|
27
|
+
/**
|
|
28
|
+
* @desc Цвет текста акцентного тултипа
|
|
29
|
+
* @tags color, text
|
|
30
|
+
*/
|
|
31
|
+
portalColorTextPurpleAccentThemed: ColorDescription;
|
|
32
|
+
}
|
|
33
|
+
interface PortalUIBackgroundColors {
|
|
34
|
+
/**
|
|
35
|
+
* @desc Цвет прозрачных синих фонов
|
|
36
|
+
* @tags color, background, alpha
|
|
37
|
+
*/
|
|
38
|
+
portalColorBackgroundAccentAlpha: ColorDescription;
|
|
39
|
+
/**
|
|
40
|
+
* @desc Цвет акцентных синих фонов
|
|
41
|
+
* @tags color, background
|
|
42
|
+
*/
|
|
43
|
+
portalColorBackgroundAccent: ColorDescription;
|
|
44
|
+
/**
|
|
45
|
+
* @desc Цвет табов
|
|
46
|
+
* @tags color, background, alpha
|
|
47
|
+
*/
|
|
48
|
+
portalColorBackgroundAccentTabAlpha: ColorDescription;
|
|
49
|
+
/**
|
|
50
|
+
* @desc Цвет карточек (виджеты, пульс, баннер)
|
|
51
|
+
* @tags color, background
|
|
52
|
+
*/
|
|
53
|
+
portalColorBackgroundCard: ColorDescription;
|
|
54
|
+
/**
|
|
55
|
+
* @desc Цвет фона страницы
|
|
56
|
+
* @tags color, background
|
|
57
|
+
*/
|
|
58
|
+
portalColorBackground: ColorDescription;
|
|
59
|
+
/**
|
|
60
|
+
* @desc Цвет фона, одинаковый для всех тем
|
|
61
|
+
* @tags color, background
|
|
62
|
+
*/
|
|
63
|
+
portalColorBackgroundInvariable: ColorDescription;
|
|
64
|
+
/**
|
|
65
|
+
* @desc Цвет оверлея под омнибоксом поиска
|
|
66
|
+
* @tags color, background
|
|
67
|
+
*/
|
|
68
|
+
portalColorOverlayPrimaryAlpha: ColorDescription;
|
|
69
|
+
/**
|
|
70
|
+
* @desc Цвет контрастных блоков (видео, например)
|
|
71
|
+
* @tags color, background
|
|
72
|
+
*/
|
|
73
|
+
portalColorBackgroundDark: ColorDescription;
|
|
74
|
+
}
|
|
75
|
+
interface PortalUIPaletteColors {
|
|
76
|
+
/**
|
|
77
|
+
* @desc Цвет фона акцентного тултипа
|
|
78
|
+
* @tags color, palette
|
|
79
|
+
*/
|
|
80
|
+
portalColorPaletteSweetBlue: ColorDescription;
|
|
81
|
+
/**
|
|
82
|
+
* @desc Цвет фона акцентного тултипа
|
|
83
|
+
* @tags color, palette
|
|
84
|
+
*/
|
|
85
|
+
portalColorPaletteSweetGreen: ColorDescription;
|
|
86
|
+
/**
|
|
87
|
+
* @desc Цвет фона акцентного тултипа
|
|
88
|
+
* @tags color, palette
|
|
89
|
+
*/
|
|
90
|
+
portalColorPaletteSweetOrange: ColorDescription;
|
|
91
|
+
/**
|
|
92
|
+
* @desc Цвет фона акцентного тултипа
|
|
93
|
+
* @tags color, palette
|
|
94
|
+
*/
|
|
95
|
+
portalColorPaletteSweetPurple: ColorDescription;
|
|
96
|
+
/**
|
|
97
|
+
* @desc Цвет фона акцентного тултипа
|
|
98
|
+
* @tags color, palette
|
|
99
|
+
*/
|
|
100
|
+
portalColorPaletteLightBlue: ColorDescription;
|
|
101
|
+
}
|
|
102
|
+
type PortalUIColorsDescriptions = PortalUITextColors & PortalUIBackgroundColors & PortalUIPaletteColors;
|
|
103
|
+
type PortalUIColors = {
|
|
104
|
+
[key in keyof PortalUIColorsDescriptions]: ColorWithStates;
|
|
105
|
+
};
|
|
106
|
+
interface PortalUIElevation {
|
|
107
|
+
/**
|
|
108
|
+
* @desc Стандартная тень для карточек
|
|
109
|
+
* @tags elevation
|
|
110
|
+
*/
|
|
111
|
+
portalElevation1: Property.BoxShadow;
|
|
112
|
+
/**
|
|
113
|
+
* @desc Тень у карточек при наведении
|
|
114
|
+
* @tags elevation
|
|
115
|
+
*/
|
|
116
|
+
portalElevation2: Property.BoxShadow;
|
|
117
|
+
/**
|
|
118
|
+
* @desc Тень у попапов, хинтов, модалок
|
|
119
|
+
* @tags elevation
|
|
120
|
+
*/
|
|
121
|
+
portalElevation3: Property.BoxShadow;
|
|
122
|
+
}
|
|
123
|
+
interface PortalUIGradients {
|
|
124
|
+
/**
|
|
125
|
+
* @desc Градиент для обрезающихся элементов на фоне colorBackground
|
|
126
|
+
* @tags gradient
|
|
127
|
+
*/
|
|
128
|
+
portalGradientBackground: GradientPoints;
|
|
129
|
+
/**
|
|
130
|
+
* @desc Градиент Hover для обрезающихся элементов на фоне portalColorBackground
|
|
131
|
+
* @tags gradient
|
|
132
|
+
*/
|
|
133
|
+
portalGradientBackgroundHover: GradientPoints;
|
|
134
|
+
/**
|
|
135
|
+
* @desc Градиент Active для обрезающихся элементов на фоне colorBackground
|
|
136
|
+
* @tags gradient
|
|
137
|
+
*/
|
|
138
|
+
portalGradientBackgroundActive: GradientPoints;
|
|
139
|
+
/**
|
|
140
|
+
* @desc Градиент для обрезающихся элементов на фоне portalColorBackground
|
|
141
|
+
* @tags gradient
|
|
142
|
+
*/
|
|
143
|
+
portalGradientBackgroundSecondary: GradientPoints;
|
|
144
|
+
/**
|
|
145
|
+
* @desc Градиент для обрезающихся элементов на фоне portalColorBackgroundTertiary
|
|
146
|
+
* @tags gradient
|
|
147
|
+
*/
|
|
148
|
+
portalGradientBackgroundTertiary: GradientPoints;
|
|
149
|
+
/**
|
|
150
|
+
* @desc Градиент для обрезающихся элементов на фоне colorBackgroundContent
|
|
151
|
+
* @tags gradient
|
|
152
|
+
*/
|
|
153
|
+
portalGradientBackgroundContent: GradientPoints;
|
|
154
|
+
/**
|
|
155
|
+
* @desc Градиент для обрезающихся элементов на фоне colorBackgroundCard
|
|
156
|
+
* @tags gradient
|
|
157
|
+
*/
|
|
158
|
+
portalGradientBackgroundCard: GradientPoints;
|
|
159
|
+
/**
|
|
160
|
+
* @desc Градиент Hover для обрезающихся элементов на фоне colorBackgroundCard
|
|
161
|
+
* @tags gradient
|
|
162
|
+
*/
|
|
163
|
+
portalGradientBackgroundCardHover: GradientPoints;
|
|
164
|
+
/**
|
|
165
|
+
* @desc Градиент Active для обрезающихся элементов на фоне portalColorBackgroundCard
|
|
166
|
+
* @tags gradient
|
|
167
|
+
*/
|
|
168
|
+
portalGradientBackgroundCardActive: GradientPoints;
|
|
169
|
+
/**
|
|
170
|
+
* @desc Градиент для обрезающихся элементов на фоне portalColorBackgroundModal
|
|
171
|
+
* @tags gradient
|
|
172
|
+
*/
|
|
173
|
+
portalGradientBackgroundModal: GradientPoints;
|
|
174
|
+
/**
|
|
175
|
+
* @desc Градиент Hover для обрезающихся элементов на фоне portalColorBackgroundModal
|
|
176
|
+
* @tags gradient
|
|
177
|
+
*/
|
|
178
|
+
portalGradientBackgroundModalHover: GradientPoints;
|
|
179
|
+
/**
|
|
180
|
+
* @desc Градиент Active для обрезающихся элементов на фоне portalColorBackgroundModal
|
|
181
|
+
* @tags gradient
|
|
182
|
+
*/
|
|
183
|
+
portalGradientBackgroundModalActive: GradientPoints;
|
|
184
|
+
/**
|
|
185
|
+
* @desc Градиент для обрезающихся элементов на фоне portalColorBackgroundAccent
|
|
186
|
+
* @tags gradient
|
|
187
|
+
*/
|
|
188
|
+
portalGradientBackgroundAccent: GradientPoints;
|
|
189
|
+
}
|
|
190
|
+
interface PortalUIUniqueTokens extends PortalUIElevation, PortalUIGradients {
|
|
191
|
+
}
|
|
192
|
+
export interface ThemePortalUI extends ParadigmTheme, PortalUIColors, PortalUIUniqueTokens {
|
|
193
|
+
}
|
|
194
|
+
export interface ThemePortalUIDescription extends ParadigmThemeDescription, PortalUIUniqueTokens {
|
|
195
|
+
colors: ParadigmThemeDescription['colors'] & PortalUIColorsDescriptions;
|
|
196
|
+
}
|
|
197
|
+
export interface ThemePortalUICssVars extends ParadigmThemeCssVars<DefaultViewports, ThemePortalUI> {
|
|
198
|
+
}
|
|
199
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ThemePortalUI, ThemePortalUICssVars, ThemePortalUIDescription } from '../portalUI';
|
|
2
|
+
export interface ThemePortalUIDark extends ThemePortalUI {
|
|
3
|
+
}
|
|
4
|
+
export interface ThemePortalUIDarkDescription extends ThemePortalUIDescription {
|
|
5
|
+
}
|
|
6
|
+
export interface ThemePortalUIDarkCssVars extends ThemePortalUICssVars {
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/vkui-tokens",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.34.0",
|
|
4
4
|
"description": "Репозиторий, который содержит в себе дизайн-токены и другие инструменты объединенной дизайн-системы VKUI и Paradigm",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "utils/descriptions.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"csstype": "^3.1.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@babel/core": "7.21.
|
|
35
|
+
"@babel/core": "7.21.4",
|
|
36
36
|
"@svgr/webpack": "6.5.1",
|
|
37
37
|
"@types/color": "3.0.3",
|
|
38
38
|
"@types/common-tags": "1.8.1",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"prettier": "2.8.7",
|
|
76
76
|
"react": "18.2.0",
|
|
77
77
|
"react-dom": "18.2.0",
|
|
78
|
-
"rimraf": "
|
|
79
|
-
"style-loader": "3.3.
|
|
78
|
+
"rimraf": "5.0.0",
|
|
79
|
+
"style-loader": "3.3.2",
|
|
80
80
|
"terser-webpack-plugin": "5.3.7",
|
|
81
81
|
"ts-jest": "29.1.0",
|
|
82
82
|
"ts-loader": "9.4.2",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"ts-node": "10.9.1",
|
|
85
85
|
"tsconfig-paths": "4.2.0",
|
|
86
86
|
"tscpaths": "0.0.9",
|
|
87
|
-
"type-fest": "3.
|
|
88
|
-
"typescript": "
|
|
87
|
+
"type-fest": "3.9.0",
|
|
88
|
+
"typescript": "5.0.4",
|
|
89
89
|
"webpack": "5.77.0",
|
|
90
90
|
"webpack-cli": "5.0.1",
|
|
91
91
|
"webpack-dev-server": "4.11.1",
|