@vkontakte/vkui-tokens 4.42.0 → 4.43.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 (159) hide show
  1. package/build/compilers/docs/compileDocsJSON.js +2 -2
  2. package/build/compilers/index.js +9 -9
  3. package/build/compilers/styles/compileStyles.js +2 -2
  4. package/build/themeProcessors/customMedia/customMedia.js +4 -3
  5. package/build/themeProcessors/extractCssVarsStrict/extractCssVarsStrict.test.js +1 -1
  6. package/build/themeProcessors/extractVarsNames/extractVarsNames.test.js +1 -1
  7. package/interfaces/themes/dobro/index.d.ts +28 -0
  8. package/interfaces/themes/dobro/index.js +2 -0
  9. package/interfaces/themes/dobroDark/index.d.ts +4 -0
  10. package/interfaces/themes/dobroDark/index.js +2 -0
  11. package/package.json +25 -24
  12. package/themes/dobro/cssVars/declarations/index.css +1220 -0
  13. package/themes/dobro/cssVars/declarations/noColors.css +504 -0
  14. package/themes/dobro/cssVars/declarations/noSizes.css +338 -0
  15. package/themes/dobro/cssVars/declarations/onlyAdaptiveGroups.css +130 -0
  16. package/themes/dobro/cssVars/declarations/onlyColors.css +308 -0
  17. package/themes/dobro/cssVars/declarations/onlyColors.d.ts +3 -0
  18. package/themes/dobro/cssVars/declarations/onlyColors.js +11 -0
  19. package/themes/dobro/cssVars/declarations/onlyMedia.css +278 -0
  20. package/themes/dobro/cssVars/declarations/onlyVariables.css +532 -0
  21. package/themes/dobro/cssVars/declarations/onlyVariables.d.ts +3 -0
  22. package/themes/dobro/cssVars/declarations/onlyVariables.js +11 -0
  23. package/themes/dobro/cssVars/declarations/onlyVariablesLocal.css +532 -0
  24. package/themes/dobro/cssVars/declarations/onlyVariablesLocalIncremental.css +532 -0
  25. package/themes/dobro/cssVars/theme/fallbacks/index.css +811 -0
  26. package/themes/dobro/cssVars/theme/fallbacks/index.less +626 -0
  27. package/themes/dobro/cssVars/theme/fallbacks/index.pcss +607 -0
  28. package/themes/dobro/cssVars/theme/fallbacks/index.scss +828 -0
  29. package/themes/dobro/cssVars/theme/fallbacks/index.styl +626 -0
  30. package/themes/dobro/cssVars/theme/index.d.ts +4 -0
  31. package/themes/dobro/cssVars/theme/index.js +3286 -0
  32. package/themes/dobro/cssVars/theme/index.json +3283 -0
  33. package/themes/dobro/docs.json +2791 -0
  34. package/themes/dobro/index.css +811 -0
  35. package/themes/dobro/index.d.ts +4 -0
  36. package/themes/dobro/index.js +1000 -0
  37. package/themes/dobro/index.json +997 -0
  38. package/themes/dobro/index.less +626 -0
  39. package/themes/dobro/index.pcss +607 -0
  40. package/themes/dobro/index.scss +828 -0
  41. package/themes/dobro/index.styl +626 -0
  42. package/themes/dobro/struct.json +1023 -0
  43. package/themes/dobroDark/cssVars/declarations/index.css +1221 -0
  44. package/themes/dobroDark/cssVars/declarations/noColors.css +505 -0
  45. package/themes/dobroDark/cssVars/declarations/noSizes.css +339 -0
  46. package/themes/dobroDark/cssVars/declarations/onlyAdaptiveGroups.css +130 -0
  47. package/themes/dobroDark/cssVars/declarations/onlyColors.css +308 -0
  48. package/themes/dobroDark/cssVars/declarations/onlyColors.d.ts +3 -0
  49. package/themes/dobroDark/cssVars/declarations/onlyColors.js +11 -0
  50. package/themes/dobroDark/cssVars/declarations/onlyMedia.css +278 -0
  51. package/themes/dobroDark/cssVars/declarations/onlyVariables.css +533 -0
  52. package/themes/dobroDark/cssVars/declarations/onlyVariables.d.ts +3 -0
  53. package/themes/dobroDark/cssVars/declarations/onlyVariables.js +11 -0
  54. package/themes/dobroDark/cssVars/declarations/onlyVariablesLocal.css +533 -0
  55. package/themes/dobroDark/cssVars/declarations/onlyVariablesLocalIncremental.css +304 -0
  56. package/themes/dobroDark/cssVars/theme/fallbacks/index.css +812 -0
  57. package/themes/dobroDark/cssVars/theme/fallbacks/index.less +627 -0
  58. package/themes/dobroDark/cssVars/theme/fallbacks/index.pcss +608 -0
  59. package/themes/dobroDark/cssVars/theme/fallbacks/index.scss +829 -0
  60. package/themes/dobroDark/cssVars/theme/fallbacks/index.styl +627 -0
  61. package/themes/dobroDark/cssVars/theme/index.d.ts +4 -0
  62. package/themes/dobroDark/cssVars/theme/index.js +3290 -0
  63. package/themes/dobroDark/cssVars/theme/index.json +3287 -0
  64. package/themes/dobroDark/docs.json +2791 -0
  65. package/themes/dobroDark/index.css +812 -0
  66. package/themes/dobroDark/index.d.ts +4 -0
  67. package/themes/dobroDark/index.js +1001 -0
  68. package/themes/dobroDark/index.json +998 -0
  69. package/themes/dobroDark/index.less +627 -0
  70. package/themes/dobroDark/index.pcss +608 -0
  71. package/themes/dobroDark/index.scss +829 -0
  72. package/themes/dobroDark/index.styl +627 -0
  73. package/themes/dobroDark/struct.json +1024 -0
  74. package/themes/home/cssVars/declarations/index.css +3 -3
  75. package/themes/home/cssVars/declarations/noColors.css +3 -3
  76. package/themes/home/cssVars/declarations/noSizes.css +3 -3
  77. package/themes/home/cssVars/declarations/onlyVariables.css +3 -3
  78. package/themes/home/cssVars/declarations/onlyVariables.js +2 -2
  79. package/themes/home/cssVars/declarations/onlyVariablesLocal.css +3 -3
  80. package/themes/home/cssVars/declarations/onlyVariablesLocalIncremental.css +3 -3
  81. package/themes/home/cssVars/theme/fallbacks/index.css +3 -3
  82. package/themes/home/cssVars/theme/fallbacks/index.less +3 -3
  83. package/themes/home/cssVars/theme/fallbacks/index.pcss +3 -3
  84. package/themes/home/cssVars/theme/fallbacks/index.scss +3 -3
  85. package/themes/home/cssVars/theme/fallbacks/index.styl +3 -3
  86. package/themes/home/cssVars/theme/index.js +3 -3
  87. package/themes/home/cssVars/theme/index.json +3 -3
  88. package/themes/home/index.css +3 -3
  89. package/themes/home/index.js +3 -3
  90. package/themes/home/index.json +3 -3
  91. package/themes/home/index.less +3 -3
  92. package/themes/home/index.pcss +3 -3
  93. package/themes/home/index.scss +3 -3
  94. package/themes/home/index.styl +3 -3
  95. package/themes/home/struct.json +3 -3
  96. package/themes/homeDark/cssVars/declarations/index.css +3 -3
  97. package/themes/homeDark/cssVars/declarations/noColors.css +3 -3
  98. package/themes/homeDark/cssVars/declarations/noSizes.css +3 -3
  99. package/themes/homeDark/cssVars/declarations/onlyVariables.css +3 -3
  100. package/themes/homeDark/cssVars/declarations/onlyVariables.js +2 -2
  101. package/themes/homeDark/cssVars/declarations/onlyVariablesLocal.css +3 -3
  102. package/themes/homeDark/cssVars/declarations/onlyVariablesLocalIncremental.css +3 -3
  103. package/themes/homeDark/cssVars/theme/fallbacks/index.css +3 -3
  104. package/themes/homeDark/cssVars/theme/fallbacks/index.less +3 -3
  105. package/themes/homeDark/cssVars/theme/fallbacks/index.pcss +3 -3
  106. package/themes/homeDark/cssVars/theme/fallbacks/index.scss +3 -3
  107. package/themes/homeDark/cssVars/theme/fallbacks/index.styl +3 -3
  108. package/themes/homeDark/cssVars/theme/index.js +3 -3
  109. package/themes/homeDark/cssVars/theme/index.json +3 -3
  110. package/themes/homeDark/index.css +3 -3
  111. package/themes/homeDark/index.js +3 -3
  112. package/themes/homeDark/index.json +3 -3
  113. package/themes/homeDark/index.less +3 -3
  114. package/themes/homeDark/index.pcss +3 -3
  115. package/themes/homeDark/index.scss +3 -3
  116. package/themes/homeDark/index.styl +3 -3
  117. package/themes/homeDark/struct.json +3 -3
  118. package/themes/vkontakteAndroid/cssVars/declarations/index.css +1 -1
  119. package/themes/vkontakteAndroid/cssVars/declarations/noColors.css +1 -1
  120. package/themes/vkontakteAndroid/cssVars/declarations/onlyVariables.css +1 -1
  121. package/themes/vkontakteAndroid/cssVars/declarations/onlyVariables.js +2 -2
  122. package/themes/vkontakteAndroid/cssVars/declarations/onlyVariablesLocal.css +1 -1
  123. package/themes/vkontakteAndroid/cssVars/declarations/onlyVariablesLocalIncremental.css +1 -0
  124. package/themes/vkontakteAndroid/cssVars/theme/fallbacks/index.css +1 -1
  125. package/themes/vkontakteAndroid/cssVars/theme/fallbacks/index.less +1 -1
  126. package/themes/vkontakteAndroid/cssVars/theme/fallbacks/index.pcss +1 -1
  127. package/themes/vkontakteAndroid/cssVars/theme/fallbacks/index.scss +1 -1
  128. package/themes/vkontakteAndroid/cssVars/theme/fallbacks/index.styl +1 -1
  129. package/themes/vkontakteAndroid/cssVars/theme/index.js +1 -1
  130. package/themes/vkontakteAndroid/cssVars/theme/index.json +1 -1
  131. package/themes/vkontakteAndroid/index.css +1 -1
  132. package/themes/vkontakteAndroid/index.js +1 -1
  133. package/themes/vkontakteAndroid/index.json +1 -1
  134. package/themes/vkontakteAndroid/index.less +1 -1
  135. package/themes/vkontakteAndroid/index.pcss +1 -1
  136. package/themes/vkontakteAndroid/index.scss +1 -1
  137. package/themes/vkontakteAndroid/index.styl +1 -1
  138. package/themes/vkontakteAndroid/struct.json +1 -1
  139. package/themes/vkontakteAndroidDark/cssVars/declarations/index.css +1 -1
  140. package/themes/vkontakteAndroidDark/cssVars/declarations/noColors.css +1 -1
  141. package/themes/vkontakteAndroidDark/cssVars/declarations/onlyVariables.css +1 -1
  142. package/themes/vkontakteAndroidDark/cssVars/declarations/onlyVariables.js +2 -2
  143. package/themes/vkontakteAndroidDark/cssVars/declarations/onlyVariablesLocal.css +1 -1
  144. package/themes/vkontakteAndroidDark/cssVars/declarations/onlyVariablesLocalIncremental.css +1 -0
  145. package/themes/vkontakteAndroidDark/cssVars/theme/fallbacks/index.css +1 -1
  146. package/themes/vkontakteAndroidDark/cssVars/theme/fallbacks/index.less +1 -1
  147. package/themes/vkontakteAndroidDark/cssVars/theme/fallbacks/index.pcss +1 -1
  148. package/themes/vkontakteAndroidDark/cssVars/theme/fallbacks/index.scss +1 -1
  149. package/themes/vkontakteAndroidDark/cssVars/theme/fallbacks/index.styl +1 -1
  150. package/themes/vkontakteAndroidDark/cssVars/theme/index.js +1 -1
  151. package/themes/vkontakteAndroidDark/cssVars/theme/index.json +1 -1
  152. package/themes/vkontakteAndroidDark/index.css +1 -1
  153. package/themes/vkontakteAndroidDark/index.js +1 -1
  154. package/themes/vkontakteAndroidDark/index.json +1 -1
  155. package/themes/vkontakteAndroidDark/index.less +1 -1
  156. package/themes/vkontakteAndroidDark/index.pcss +1 -1
  157. package/themes/vkontakteAndroidDark/index.scss +1 -1
  158. package/themes/vkontakteAndroidDark/index.styl +1 -1
  159. package/themes/vkontakteAndroidDark/struct.json +1 -1
@@ -15,7 +15,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.compileDocsJSON = exports.getTypeDocs = void 0;
18
- var path_1 = __importDefault(require("path"));
18
+ var node_path_1 = __importDefault(require("node:path"));
19
19
  var ts_morph_1 = require("ts-morph");
20
20
  var capitalize_1 = require("../../helpers/capitalize");
21
21
  function getTagDescription(tag) {
@@ -149,7 +149,7 @@ exports.getTypeDocs = getTypeDocs;
149
149
  * - export { BaseTheme as MyTheme } from 'path/to/baseTheme.ts'
150
150
  */
151
151
  function compileDocsJSON(theme) {
152
- var themeFilePath = path_1.default.resolve("src/interfaces/themes/".concat(theme.themeName, "/index.ts"));
152
+ var themeFilePath = node_path_1.default.resolve("src/interfaces/themes/".concat(theme.themeName, "/index.ts"));
153
153
  var themeInterfaceName = "Theme".concat((0, capitalize_1.capitalize)(theme.themeName));
154
154
  var docs = getTypeDocs(themeFilePath, themeInterfaceName);
155
155
  return JSON.stringify(docs, null, ' ');
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.writeTsFile = exports.writeStyleFiles = exports.writeStructJsonFile = exports.writeJsonFile = exports.writeDocsFiles = exports.writeCssVarsSourceMediaFile = exports.writeCssVarsSourceFile = exports.writeCssVarsJsUtils = void 0;
7
+ var node_path_1 = __importDefault(require("node:path"));
7
8
  var fs_extra_1 = __importDefault(require("fs-extra"));
8
- var path_1 = __importDefault(require("path"));
9
9
  var compileGetDeclarationString_1 = require("./cssVars/jsUtils/compileGetDeclarationString");
10
10
  var compileDocsJSON_1 = require("./docs/compileDocsJSON");
11
11
  var compileJSON_1 = require("./json/compileJSON");
@@ -30,7 +30,7 @@ var cssModes = [
30
30
  function writeStructJsonFile(themePath, theme, _) {
31
31
  console.log("\u043A\u043E\u043C\u043F\u0438\u043B\u0438\u0440\u0443\u0435\u043C \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0439 json...");
32
32
  var fileName = "struct.json";
33
- var filePath = path_1.default.resolve(themePath, fileName);
33
+ var filePath = node_path_1.default.resolve(themePath, fileName);
34
34
  var content = (0, compileStructJSON_1.compileStructJSON)(theme);
35
35
  fs_extra_1.default.writeFileSync(filePath, content);
36
36
  console.log("\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u043F\u0438\u0441\u0430\u043B\u0438 \u0444\u0430\u0439\u043B ".concat(fileName));
@@ -39,7 +39,7 @@ exports.writeStructJsonFile = writeStructJsonFile;
39
39
  function writeJsonFile(themePath, theme, _) {
40
40
  console.log("\u043A\u043E\u043C\u043F\u0438\u043B\u0438\u0440\u0443\u0435\u043C json...");
41
41
  var fileName = "index.json";
42
- var filePath = path_1.default.resolve(themePath, fileName);
42
+ var filePath = node_path_1.default.resolve(themePath, fileName);
43
43
  var content = (0, compileJSON_1.compileJSON)(theme);
44
44
  fs_extra_1.default.writeFileSync(filePath, content);
45
45
  console.log("\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u043F\u0438\u0441\u0430\u043B\u0438 \u0444\u0430\u0439\u043B ".concat(fileName));
@@ -49,7 +49,7 @@ exports.writeJsonFile = writeJsonFile;
49
49
  function writeTsFile(themePath, theme, type, themeName) {
50
50
  console.log("\u043A\u043E\u043C\u043F\u0438\u043B\u0438\u0440\u0443\u0435\u043C ts...");
51
51
  var fileName = "index.ts";
52
- var filePath = path_1.default.resolve(themePath, fileName);
52
+ var filePath = node_path_1.default.resolve(themePath, fileName);
53
53
  var content = null;
54
54
  var sourceContent = (0, compileTypeScript_1.compileTypeScript)(theme);
55
55
  switch (type) {
@@ -83,7 +83,7 @@ function writeStyleFiles(themePath, theme) {
83
83
  a.forEach(function (format) {
84
84
  console.log("\u043A\u043E\u043C\u043F\u0438\u043B\u0438\u0440\u0443\u0435\u043C ".concat(format, "..."));
85
85
  var fileName = "index.".concat(format);
86
- var filePath = path_1.default.resolve(themePath, fileName);
86
+ var filePath = node_path_1.default.resolve(themePath, fileName);
87
87
  var content = (0, compileStyles_1.compileStyles)(format, theme);
88
88
  fs_extra_1.default.writeFileSync(filePath, content);
89
89
  console.log("\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u043F\u0438\u0441\u0430\u043B\u0438 \u0444\u0430\u0439\u043B ".concat(fileName));
@@ -98,7 +98,7 @@ cssVarsTheme, themeBase) {
98
98
  console.log("\u043A\u043E\u043C\u043F\u0438\u043B\u0438\u0440\u0443\u0435\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0434\u043B\u044F css vars \u0442\u0435\u043C...");
99
99
  for (var _i = 0, cssModes_1 = cssModes; _i < cssModes_1.length; _i++) {
100
100
  var modeConfig = cssModes_1[_i];
101
- var filePath = path_1.default.resolve(themePath, modeConfig.fileName);
101
+ var filePath = node_path_1.default.resolve(themePath, modeConfig.fileName);
102
102
  var compiledVars = (0, compileStyles_1.compileStyles)('css', theme, modeConfig.mode === 'default' ? 'withAdaptiveGroups' : modeConfig.mode, themeBase);
103
103
  var compiledBreakpoints = modeConfig.mode === 'default'
104
104
  ? "\n\n".concat((_a = (0, compileBreakpointsCssVarsDeclaration_1.compileBreakpointsCssVarsDeclaration)(cssVarsTheme)) !== null && _a !== void 0 ? _a : '')
@@ -116,7 +116,7 @@ exports.writeCssVarsSourceFile = writeCssVarsSourceFile;
116
116
  function writeCssVarsSourceMediaFile(themePath, theme) {
117
117
  console.log("\u043A\u043E\u043C\u043F\u0438\u043B\u0438\u0440\u0443\u0435\u043C \u043C\u0435\u0434\u0438\u0430 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u0434\u043B\u044F css vars \u0442\u0435\u043C...");
118
118
  var fileName = 'onlyMedia.css';
119
- var filePath = path_1.default.resolve(themePath, fileName);
119
+ var filePath = node_path_1.default.resolve(themePath, fileName);
120
120
  var content = (0, compileBreakpointsCssVarsDeclaration_1.compileBreakpointsCssVarsDeclaration)(theme);
121
121
  if (content !== null) {
122
122
  fs_extra_1.default.writeFileSync(filePath, content);
@@ -131,7 +131,7 @@ function writeCssVarsJsUtils(themePath, theme) {
131
131
  { mode: 'onlyColors', fileName: 'onlyColors.ts' },
132
132
  ].forEach(function (_a) {
133
133
  var mode = _a.mode, fileName = _a.fileName;
134
- var filePath = path_1.default.resolve(themePath, fileName);
134
+ var filePath = node_path_1.default.resolve(themePath, fileName);
135
135
  var content = (0, compileGetDeclarationString_1.compileGetDeclarationString)(theme, mode);
136
136
  fs_extra_1.default.writeFileSync(filePath, content);
137
137
  console.log("\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u043F\u0438\u0441\u0430\u043B\u0438 \u0444\u0430\u0439\u043B ".concat(fileName));
@@ -141,7 +141,7 @@ exports.writeCssVarsJsUtils = writeCssVarsJsUtils;
141
141
  function writeDocsFiles(themePath, theme) {
142
142
  console.log("\u043A\u043E\u043C\u043F\u0438\u043B\u0438\u0440\u0443\u0435\u043C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044E...");
143
143
  var fileName = "docs.json";
144
- var filePath = path_1.default.resolve(themePath, fileName);
144
+ var filePath = node_path_1.default.resolve(themePath, fileName);
145
145
  var content = (0, compileDocsJSON_1.compileDocsJSON)(theme);
146
146
  fs_extra_1.default.writeFileSync(filePath, content);
147
147
  console.log("\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u043F\u0438\u0441\u0430\u043B\u0438 \u0444\u0430\u0439\u043B ".concat(fileName));
@@ -6,7 +6,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.compileStyles = exports.getRootSelector = exports.getPrefix = exports.serviceKeys = void 0;
8
8
  require("css.escape");
9
- var assert_1 = require("assert");
9
+ var node_assert_1 = require("node:assert");
10
10
  var common_tags_1 = require("common-tags");
11
11
  var getAllButColors_1 = require("../../helpers/getAllButColors");
12
12
  var getAllButSizes_1 = require("../../helpers/getAllButSizes");
@@ -51,7 +51,7 @@ function getRootSelector(theme, mode) {
51
51
  exports.getRootSelector = getRootSelector;
52
52
  function isDeepEqual(actual, expected) {
53
53
  try {
54
- (0, assert_1.deepStrictEqual)(actual, expected);
54
+ (0, node_assert_1.deepStrictEqual)(actual, expected);
55
55
  return true;
56
56
  }
57
57
  catch (_) {
@@ -32,12 +32,13 @@ function processCustomMedia(_a) {
32
32
  var usingViewports = (0, exports.getUsingViewports)(breakpoints);
33
33
  var result = {};
34
34
  usingViewports.forEach(function (viewport, index, array) {
35
- var _a;
35
+ var _a, _b;
36
36
  if (viewport !== 'touch') {
37
37
  // больше теущего брейкпоинта
38
- result[(0, exports.getCustomMediaKey)(viewport, 'from')] = "(min-width: ".concat(breakpoints[viewport].breakpoint, "px)");
38
+ result[(0, exports.getCustomMediaKey)(viewport, 'from')] =
39
+ "(min-width: ".concat(breakpoints[viewport].breakpoint, "px)");
39
40
  // между текущим и следущим брейкпоинтом
40
- result[(0, exports.getCustomMediaKey)(viewport)] = "(min-width: ".concat(breakpoints[viewport].breakpoint, "px) and (max-width: ").concat(((_a = breakpoints[array[index + 1]]) === null || _a === void 0 ? void 0 : _a.breakpoint) - 1, "px)");
41
+ result[(0, exports.getCustomMediaKey)(viewport)] = "(min-width: ".concat(breakpoints[viewport].breakpoint, "px) and (max-width: ").concat(((_b = (_a = breakpoints[array[index + 1]]) === null || _a === void 0 ? void 0 : _a.breakpoint) !== null && _b !== void 0 ? _b : 0) - 1, "px)");
41
42
  }
42
43
  if (viewport === 'touch') {
43
44
  // меньше следующего
@@ -39,7 +39,7 @@ var extractCssVarsStrict_1 = require("./extractCssVarsStrict");
39
39
  },
40
40
  },
41
41
  };
42
- var expectedData = __assign({ breakpoints: __assign({}, theme.breakpoints) });
42
+ var expectedData = { breakpoints: __assign({}, theme.breakpoints) };
43
43
  (0, globals_1.expect)((0, extractCssVarsStrict_1.extractCssVarsStrict)(theme)).toStrictEqual(expectedData);
44
44
  });
45
45
  (0, globals_1.it)('should change type', function () {
@@ -63,7 +63,7 @@ var extractVarsNames_1 = require("./extractVarsNames");
63
63
  },
64
64
  },
65
65
  };
66
- var expectedData = __assign({ breakpoints: __assign({}, theme.breakpoints) });
66
+ var expectedData = { breakpoints: __assign({}, theme.breakpoints) };
67
67
  (0, globals_1.expect)((0, extractVarsNames_1.extractVarsNames)(theme)).toStrictEqual(expectedData);
68
68
  });
69
69
  (0, globals_1.it)('should change type', function () {
@@ -0,0 +1,28 @@
1
+ import type { Theme, ThemeDescription } from '../../general';
2
+ import type { Breakpoints } from '../../general/tools';
3
+ import type { CustomMediaByViewport } from '../../general/tools/customMedia';
4
+ import type { DefaultViewports, ViewportsTuple } from '../../general/tools/viewports';
5
+ import type { ParadigmThemeCssVars } from '../../namespaces/paradigm';
6
+ type DobroViewportsTuple = ['touch', 'tablet', 'desktopS', 'desktopM'];
7
+ interface ThemeDobroCustomTokens {
8
+ dobroPortalZIndex: number;
9
+ dobroPopoutZIndex: number;
10
+ dobroModalZIndex: number;
11
+ dobroMenuZIndex: number;
12
+ }
13
+ interface ThemeDobroFonts {
14
+ dobroFontFamily600: string;
15
+ dobroFontFamily500: string;
16
+ dobroFontFamily400: string;
17
+ }
18
+ interface ThemeDobroStatic<Vt extends ViewportsTuple = DefaultViewports> extends Theme, ThemeDobroCustomTokens, ThemeDobroFonts, Breakpoints<Vt> {
19
+ }
20
+ type ThemeDobroStaticType<Vt extends ViewportsTuple = DefaultViewports> = ThemeDobroStatic<Vt> & CustomMediaByViewport<Vt>;
21
+ interface ThemeDobroDescriptionStatic<Vt extends ViewportsTuple = DefaultViewports> extends ThemeDescription, ThemeDobroCustomTokens, ThemeDobroFonts, Breakpoints<Vt> {
22
+ }
23
+ interface ThemeDobroCssVarsStatic extends ParadigmThemeCssVars<DobroViewportsTuple, ThemeDobro> {
24
+ }
25
+ export type ThemeDobro = ThemeDobroStaticType<DobroViewportsTuple>;
26
+ export type ThemeDobroDescription = ThemeDobroDescriptionStatic<DobroViewportsTuple>;
27
+ export type ThemeDobroCssVars = ThemeDobroCssVarsStatic;
28
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type { ThemeDobro, ThemeDobroCssVars, ThemeDobroDescription } from '../dobro';
2
+ export type ThemeDobroDark = ThemeDobro;
3
+ export type ThemeDobroDarkDescription = ThemeDobroDescription;
4
+ export type ThemeDobroDarkCssVars = ThemeDobroCssVars;
@@ -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.42.0",
3
+ "version": "4.43.1",
4
4
  "description": "Репозиторий, который содержит в себе дизайн-токены и другие инструменты объединенной дизайн-системы VKUI и Paradigm",
5
5
  "license": "MIT",
6
6
  "homepage": "https://vkcom.github.io/vkui-tokens",
@@ -43,70 +43,71 @@
43
43
  "csstype": "^3.1.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@babel/core": "7.23.7",
46
+ "@babel/core": "7.23.9",
47
47
  "@svgr/webpack": "8.1.0",
48
48
  "@types/color": "3.0.6",
49
49
  "@types/common-tags": "1.8.4",
50
50
  "@types/fs-extra": "11.0.4",
51
51
  "@types/lodash": "4.14.202",
52
52
  "@types/node": "18.11.10",
53
- "@types/react": "18.2.48",
54
- "@types/react-dom": "18.2.18",
55
- "@typescript-eslint/eslint-plugin": "6.13.2",
56
- "@typescript-eslint/parser": "6.13.1",
57
- "@vkontakte/appearance": "https://github.com/VKCOM/Appearance#v10.1.7",
53
+ "@types/react": "18.2.55",
54
+ "@types/react-dom": "18.2.19",
55
+ "@vkontakte/appearance": "https://github.com/VKCOM/Appearance#v10.2.0",
58
56
  "@vkontakte/icons": "2.95.0",
59
57
  "@vkontakte/prettier-config": "0.1.0",
60
58
  "@vkontakte/vk-bridge": "2.12.2",
61
59
  "@vkontakte/vkjs": "1.1.1",
62
- "@vkontakte/vkui": "5.10.0",
60
+ "@vkontakte/vkui": "6.0.0",
63
61
  "babel-jest": "29.7.0",
64
62
  "babel-loader": "9.1.3",
65
63
  "clean-webpack-plugin": "4.0.0",
66
64
  "clsx": "2.0.0",
67
65
  "color": "4.2.3",
68
66
  "common-tags": "1.8.2",
69
- "copy-webpack-plugin": "11.0.0",
67
+ "copy-webpack-plugin": "12.0.2",
70
68
  "css-loader": "6.8.1",
71
69
  "css.escape": "1.5.1",
72
- "eslint": "7.32.0",
73
- "eslint-config-prettier": "9.0.0",
74
- "eslint-config-silence": "1.0.0",
70
+ "eslint": "8.56.0",
71
+ "eslint-config-prettier": "9.1.0",
75
72
  "eslint-import-resolver-alias": "1.1.2",
76
73
  "eslint-plugin-compat": "4.2.0",
77
- "eslint-plugin-import": "2.28.1",
74
+ "eslint-plugin-import": "2.29.1",
78
75
  "eslint-plugin-jasmine": "4.1.3",
79
- "eslint-plugin-prettier": "4.2.1",
80
- "eslint-plugin-simple-import-sort": "10.0.0",
81
- "eslint-plugin-sonarjs": "0.19.0",
76
+ "eslint-plugin-node": "11.1.0",
77
+ "eslint-plugin-prettier": "5.1.3",
78
+ "eslint-plugin-promise": "6.1.1",
79
+ "eslint-plugin-simple-import-sort": "12.0.0",
80
+ "eslint-plugin-sonarjs": "0.24.0",
81
+ "eslint-plugin-unicorn": "51.0.1",
82
82
  "fs-extra": "11.2.0",
83
83
  "html-webpack-plugin": "5.6.0",
84
- "husky": "8.0.3",
84
+ "husky": "9.0.11",
85
85
  "jest": "29.7.0",
86
86
  "jest-junit": "16.0.0",
87
87
  "lint-staged": "15.2.0",
88
88
  "lodash": "4.17.21",
89
- "prettier": "2.8.8",
89
+ "prettier": "3.2.5",
90
90
  "react": "18.2.0",
91
91
  "react-dom": "18.2.0",
92
92
  "rimraf": "5.0.5",
93
93
  "style-loader": "3.3.3",
94
- "terser-webpack-plugin": "5.3.9",
95
- "ts-jest": "29.1.1",
94
+ "terser-webpack-plugin": "5.3.10",
95
+ "ts-jest": "29.1.2",
96
96
  "ts-loader": "9.5.1",
97
97
  "ts-morph": "20.0.0",
98
98
  "ts-node": "10.9.2",
99
99
  "tsconfig-paths": "4.2.0",
100
100
  "tscpaths": "0.0.9",
101
- "type-fest": "4.8.3",
101
+ "type-fest": "4.10.2",
102
102
  "typescript": "5.2.2",
103
- "webpack": "5.89.0",
103
+ "typescript-eslint": "7.0.1",
104
+ "webpack": "5.90.1",
104
105
  "webpack-cli": "5.1.4",
105
106
  "webpack-dev-server": "4.15.1",
106
107
  "webpack-notifier": "1.15.0"
107
108
  },
108
109
  "engines": {
109
- "npm": "^9.3.1",
110
- "yarn": "^1.21.1"
110
+ "npm": ">=9.3.1",
111
+ "yarn": ">=1.21.1 <2"
111
112
  }
112
113
  }