@vkontakte/vkui-tokens 4.33.1 → 4.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/build/compilers/styles/compileStyles.d.ts +1 -1
  2. package/interfaces/themes/portalUI/index.d.ts +199 -0
  3. package/interfaces/themes/portalUI/index.js +2 -0
  4. package/interfaces/themes/portalUIDark/index.d.ts +7 -0
  5. package/interfaces/themes/portalUIDark/index.js +2 -0
  6. package/package.json +11 -11
  7. package/themes/portalUI/cssVars/declarations/index.css +1484 -0
  8. package/themes/portalUI/cssVars/declarations/noColors.css +665 -0
  9. package/themes/portalUI/cssVars/declarations/noSizes.css +432 -0
  10. package/themes/portalUI/cssVars/declarations/onlyAdaptiveGroups.css +128 -0
  11. package/themes/portalUI/cssVars/declarations/onlyColors.css +383 -0
  12. package/themes/portalUI/cssVars/declarations/onlyColors.d.ts +3 -0
  13. package/themes/portalUI/cssVars/declarations/onlyColors.js +11 -0
  14. package/themes/portalUI/cssVars/declarations/onlyMedia.css +362 -0
  15. package/themes/portalUI/cssVars/declarations/onlyVariables.css +696 -0
  16. package/themes/portalUI/cssVars/declarations/onlyVariables.d.ts +3 -0
  17. package/themes/portalUI/cssVars/declarations/onlyVariables.js +11 -0
  18. package/themes/portalUI/cssVars/declarations/onlyVariablesLocal.css +696 -0
  19. package/themes/portalUI/cssVars/declarations/onlyVariablesLocalIncremental.css +696 -0
  20. package/themes/portalUI/cssVars/theme/fallbacks/index.css +993 -0
  21. package/themes/portalUI/cssVars/theme/fallbacks/index.less +780 -0
  22. package/themes/portalUI/cssVars/theme/fallbacks/index.pcss +773 -0
  23. package/themes/portalUI/cssVars/theme/fallbacks/index.scss +1004 -0
  24. package/themes/portalUI/cssVars/theme/fallbacks/index.styl +780 -0
  25. package/themes/portalUI/cssVars/theme/index.d.ts +4 -0
  26. package/themes/portalUI/cssVars/theme/index.js +4246 -0
  27. package/themes/portalUI/cssVars/theme/index.json +4243 -0
  28. package/themes/portalUI/docs.json +4076 -0
  29. package/themes/portalUI/index.css +993 -0
  30. package/themes/portalUI/index.d.ts +4 -0
  31. package/themes/portalUI/index.js +1296 -0
  32. package/themes/portalUI/index.json +1293 -0
  33. package/themes/portalUI/index.less +780 -0
  34. package/themes/portalUI/index.pcss +773 -0
  35. package/themes/portalUI/index.scss +1004 -0
  36. package/themes/portalUI/index.styl +780 -0
  37. package/themes/portalUI/struct.json +1319 -0
  38. package/themes/portalUIDark/cssVars/declarations/index.css +1483 -0
  39. package/themes/portalUIDark/cssVars/declarations/noColors.css +664 -0
  40. package/themes/portalUIDark/cssVars/declarations/noSizes.css +431 -0
  41. package/themes/portalUIDark/cssVars/declarations/onlyAdaptiveGroups.css +128 -0
  42. package/themes/portalUIDark/cssVars/declarations/onlyColors.css +383 -0
  43. package/themes/portalUIDark/cssVars/declarations/onlyColors.d.ts +3 -0
  44. package/themes/portalUIDark/cssVars/declarations/onlyColors.js +11 -0
  45. package/themes/portalUIDark/cssVars/declarations/onlyMedia.css +362 -0
  46. package/themes/portalUIDark/cssVars/declarations/onlyVariables.css +695 -0
  47. package/themes/portalUIDark/cssVars/declarations/onlyVariables.d.ts +3 -0
  48. package/themes/portalUIDark/cssVars/declarations/onlyVariables.js +11 -0
  49. package/themes/portalUIDark/cssVars/declarations/onlyVariablesLocal.css +695 -0
  50. package/themes/portalUIDark/cssVars/declarations/onlyVariablesLocalIncremental.css +695 -0
  51. package/themes/portalUIDark/cssVars/theme/fallbacks/index.css +992 -0
  52. package/themes/portalUIDark/cssVars/theme/fallbacks/index.less +779 -0
  53. package/themes/portalUIDark/cssVars/theme/fallbacks/index.pcss +772 -0
  54. package/themes/portalUIDark/cssVars/theme/fallbacks/index.scss +1003 -0
  55. package/themes/portalUIDark/cssVars/theme/fallbacks/index.styl +779 -0
  56. package/themes/portalUIDark/cssVars/theme/index.d.ts +4 -0
  57. package/themes/portalUIDark/cssVars/theme/index.js +4242 -0
  58. package/themes/portalUIDark/cssVars/theme/index.json +4239 -0
  59. package/themes/portalUIDark/docs.json +4076 -0
  60. package/themes/portalUIDark/index.css +992 -0
  61. package/themes/portalUIDark/index.d.ts +4 -0
  62. package/themes/portalUIDark/index.js +1295 -0
  63. package/themes/portalUIDark/index.json +1292 -0
  64. package/themes/portalUIDark/index.less +779 -0
  65. package/themes/portalUIDark/index.pcss +772 -0
  66. package/themes/portalUIDark/index.scss +1003 -0
  67. package/themes/portalUIDark/index.styl +779 -0
  68. 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<import("../../../interfaces/general/tools/tokenValue").StaticTokens<import("../../../interfaces/general").Theme>> = PixelifyTheme<import("../../../interfaces/general/tools/tokenValue").StaticTokens<import("../../../interfaces/general").Theme>>>(format: Formats, theme: PT, mode?: CompileStylesMode, themeBase?: PT) => string;
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/vkui-tokens",
3
- "version": "4.33.1",
3
+ "version": "4.34.1",
4
4
  "description": "Репозиторий, который содержит в себе дизайн-токены и другие инструменты объединенной дизайн-системы VKUI и Paradigm",
5
5
  "license": "MIT",
6
6
  "main": "utils/descriptions.js",
@@ -32,14 +32,14 @@
32
32
  "csstype": "^3.1.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@babel/core": "7.21.3",
36
- "@svgr/webpack": "6.5.1",
35
+ "@babel/core": "7.21.4",
36
+ "@svgr/webpack": "7.0.0",
37
37
  "@types/color": "3.0.3",
38
38
  "@types/common-tags": "1.8.1",
39
39
  "@types/fs-extra": "11.0.1",
40
40
  "@types/node": "18.11.10",
41
- "@types/react": "18.0.26",
42
- "@types/react-dom": "18.0.10",
41
+ "@types/react-dom": "18.2.1",
42
+ "@types/react": "18.2.0",
43
43
  "@typescript-eslint/eslint-plugin": "4.33.0",
44
44
  "@typescript-eslint/parser": "4.33.0",
45
45
  "@vkontakte/appearance": "https://github.com/VKCOM/Appearance#v10.1.2",
@@ -70,13 +70,13 @@
70
70
  "fs-extra": "11.1.1",
71
71
  "html-webpack-plugin": "5.5.0",
72
72
  "jest": "29.5.0",
73
- "jest-junit": "15.0.0",
73
+ "jest-junit": "16.0.0",
74
74
  "lodash": "4.17.21",
75
75
  "prettier": "2.8.7",
76
76
  "react": "18.2.0",
77
77
  "react-dom": "18.2.0",
78
- "rimraf": "4.4.1",
79
- "style-loader": "3.3.1",
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,11 +84,11 @@
84
84
  "ts-node": "10.9.1",
85
85
  "tsconfig-paths": "4.2.0",
86
86
  "tscpaths": "0.0.9",
87
- "type-fest": "3.6.1",
88
- "typescript": "4.9.5",
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
- "webpack-dev-server": "4.11.1",
91
+ "webpack-dev-server": "4.13.3",
92
92
  "webpack-notifier": "1.15.0"
93
93
  },
94
94
  "engines": {