@vkontakte/vkui-tokens 4.1.0 → 4.1.1-dev-30db86.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.
Files changed (430) hide show
  1. package/build/compilers/index.d.ts +2 -2
  2. package/build/compilers/index.js +2 -0
  3. package/build/compilers/styles/compileStyles.d.ts +4 -2
  4. package/build/compilers/styles/compileStyles.js +31 -10
  5. package/build/compilers/styles/compileStyles.test.js +265 -196
  6. package/build/helpers/getAllButColors.d.ts +1 -0
  7. package/build/helpers/getAllButColors.js +17 -0
  8. package/build/helpers/getAllButColors.test.d.ts +1 -0
  9. package/build/helpers/getAllButColors.test.js +26 -0
  10. package/interfaces/general/index.d.ts +4 -0
  11. package/interfaces/themes/vkComDark/index.d.ts +1 -0
  12. package/interfaces/themes/vkComDark/index.js +2 -0
  13. package/interfaces/themes/vkIOSDark/index.d.ts +1 -0
  14. package/interfaces/themes/vkIOSDark/index.js +2 -0
  15. package/package.json +1 -1
  16. package/themeDescriptions/base/vk.js +1 -1
  17. package/themes/calendar/cssVars/declarations/index.css +1 -0
  18. package/themes/calendar/cssVars/declarations/noColors.css +572 -0
  19. package/themes/calendar/cssVars/declarations/noSizes.css +1 -0
  20. package/themes/calendar/cssVars/declarations/onlyVariables.css +1 -0
  21. package/themes/calendar/cssVars/declarations/onlyVariables.js +2 -2
  22. package/themes/calendar/cssVars/declarations/onlyVariablesLocal.css +518 -0
  23. package/themes/calendar/cssVars/theme/fallbacks/index.css +1 -0
  24. package/themes/calendar/cssVars/theme/fallbacks/index.less +1 -0
  25. package/themes/calendar/cssVars/theme/fallbacks/index.pcss +1 -0
  26. package/themes/calendar/cssVars/theme/fallbacks/index.scss +1 -0
  27. package/themes/calendar/cssVars/theme/fallbacks/index.styl +1 -0
  28. package/themes/calendar/cssVars/theme/index.js +4 -0
  29. package/themes/calendar/cssVars/theme/index.json +4 -0
  30. package/themes/calendar/index.css +1 -0
  31. package/themes/calendar/index.js +1 -0
  32. package/themes/calendar/index.json +1 -0
  33. package/themes/calendar/index.less +1 -0
  34. package/themes/calendar/index.pcss +1 -0
  35. package/themes/calendar/index.scss +1 -0
  36. package/themes/calendar/index.styl +1 -0
  37. package/themes/calendarDark/cssVars/declarations/index.css +1 -0
  38. package/themes/calendarDark/cssVars/declarations/noColors.css +572 -0
  39. package/themes/calendarDark/cssVars/declarations/noSizes.css +1 -0
  40. package/themes/calendarDark/cssVars/declarations/onlyVariables.css +1 -0
  41. package/themes/calendarDark/cssVars/declarations/onlyVariables.js +2 -2
  42. package/themes/calendarDark/cssVars/declarations/onlyVariablesLocal.css +518 -0
  43. package/themes/calendarDark/cssVars/theme/fallbacks/index.css +1 -0
  44. package/themes/calendarDark/cssVars/theme/fallbacks/index.less +1 -0
  45. package/themes/calendarDark/cssVars/theme/fallbacks/index.pcss +1 -0
  46. package/themes/calendarDark/cssVars/theme/fallbacks/index.scss +1 -0
  47. package/themes/calendarDark/cssVars/theme/fallbacks/index.styl +1 -0
  48. package/themes/calendarDark/cssVars/theme/index.js +4 -0
  49. package/themes/calendarDark/cssVars/theme/index.json +4 -0
  50. package/themes/calendarDark/index.css +1 -0
  51. package/themes/calendarDark/index.js +1 -0
  52. package/themes/calendarDark/index.json +1 -0
  53. package/themes/calendarDark/index.less +1 -0
  54. package/themes/calendarDark/index.pcss +1 -0
  55. package/themes/calendarDark/index.scss +1 -0
  56. package/themes/calendarDark/index.styl +1 -0
  57. package/themes/calls/cssVars/declarations/index.css +1 -0
  58. package/themes/calls/cssVars/declarations/noColors.css +425 -0
  59. package/themes/calls/cssVars/declarations/noSizes.css +1 -0
  60. package/themes/calls/cssVars/declarations/onlyVariables.css +1 -0
  61. package/themes/calls/cssVars/declarations/onlyVariables.js +2 -2
  62. package/themes/calls/cssVars/declarations/onlyVariablesLocal.css +475 -0
  63. package/themes/calls/cssVars/theme/fallbacks/index.css +1 -0
  64. package/themes/calls/cssVars/theme/fallbacks/index.less +1 -0
  65. package/themes/calls/cssVars/theme/fallbacks/index.pcss +1 -0
  66. package/themes/calls/cssVars/theme/fallbacks/index.scss +1 -0
  67. package/themes/calls/cssVars/theme/fallbacks/index.styl +1 -0
  68. package/themes/calls/cssVars/theme/index.js +4 -0
  69. package/themes/calls/cssVars/theme/index.json +4 -0
  70. package/themes/calls/index.css +1 -0
  71. package/themes/calls/index.js +1 -0
  72. package/themes/calls/index.json +1 -0
  73. package/themes/calls/index.less +1 -0
  74. package/themes/calls/index.pcss +1 -0
  75. package/themes/calls/index.scss +1 -0
  76. package/themes/calls/index.styl +1 -0
  77. package/themes/cloud/cssVars/declarations/index.css +1 -0
  78. package/themes/cloud/cssVars/declarations/noColors.css +508 -0
  79. package/themes/cloud/cssVars/declarations/noSizes.css +1 -0
  80. package/themes/cloud/cssVars/declarations/onlyVariables.css +1 -0
  81. package/themes/cloud/cssVars/declarations/onlyVariables.js +2 -2
  82. package/themes/cloud/cssVars/declarations/onlyVariablesLocal.css +498 -0
  83. package/themes/cloud/cssVars/theme/fallbacks/index.css +1 -0
  84. package/themes/cloud/cssVars/theme/fallbacks/index.less +1 -0
  85. package/themes/cloud/cssVars/theme/fallbacks/index.pcss +1 -0
  86. package/themes/cloud/cssVars/theme/fallbacks/index.scss +1 -0
  87. package/themes/cloud/cssVars/theme/fallbacks/index.styl +1 -0
  88. package/themes/cloud/cssVars/theme/index.js +4 -0
  89. package/themes/cloud/cssVars/theme/index.json +4 -0
  90. package/themes/cloud/index.css +1 -0
  91. package/themes/cloud/index.js +1 -0
  92. package/themes/cloud/index.json +1 -0
  93. package/themes/cloud/index.less +1 -0
  94. package/themes/cloud/index.pcss +1 -0
  95. package/themes/cloud/index.scss +1 -0
  96. package/themes/cloud/index.styl +1 -0
  97. package/themes/home/cssVars/declarations/index.css +1 -0
  98. package/themes/home/cssVars/declarations/noColors.css +450 -0
  99. package/themes/home/cssVars/declarations/noSizes.css +1 -3
  100. package/themes/home/cssVars/declarations/onlyVariables.css +1 -0
  101. package/themes/home/cssVars/declarations/onlyVariables.js +2 -2
  102. package/themes/home/cssVars/declarations/onlyVariablesLocal.css +495 -0
  103. package/themes/home/cssVars/theme/fallbacks/index.css +1 -0
  104. package/themes/home/cssVars/theme/fallbacks/index.less +1 -0
  105. package/themes/home/cssVars/theme/fallbacks/index.pcss +1 -0
  106. package/themes/home/cssVars/theme/fallbacks/index.scss +1 -0
  107. package/themes/home/cssVars/theme/fallbacks/index.styl +1 -0
  108. package/themes/home/cssVars/theme/index.js +4 -0
  109. package/themes/home/cssVars/theme/index.json +4 -0
  110. package/themes/home/index.css +1 -0
  111. package/themes/home/index.js +1 -0
  112. package/themes/home/index.json +1 -0
  113. package/themes/home/index.less +1 -0
  114. package/themes/home/index.pcss +1 -0
  115. package/themes/home/index.scss +1 -0
  116. package/themes/home/index.styl +1 -0
  117. package/themes/homeDark/cssVars/declarations/noColors.css +464 -0
  118. package/themes/homeDark/cssVars/declarations/onlyVariablesLocal.css +494 -0
  119. package/themes/media/cssVars/declarations/index.css +1 -0
  120. package/themes/media/cssVars/declarations/noColors.css +636 -0
  121. package/themes/media/cssVars/declarations/noSizes.css +1 -0
  122. package/themes/media/cssVars/declarations/onlyVariables.css +1 -0
  123. package/themes/media/cssVars/declarations/onlyVariables.js +2 -2
  124. package/themes/media/cssVars/declarations/onlyVariablesLocal.css +623 -0
  125. package/themes/media/cssVars/theme/fallbacks/index.css +1 -0
  126. package/themes/media/cssVars/theme/fallbacks/index.less +1 -0
  127. package/themes/media/cssVars/theme/fallbacks/index.pcss +1 -0
  128. package/themes/media/cssVars/theme/fallbacks/index.scss +1 -0
  129. package/themes/media/cssVars/theme/fallbacks/index.styl +1 -0
  130. package/themes/media/cssVars/theme/index.js +4 -0
  131. package/themes/media/cssVars/theme/index.json +4 -0
  132. package/themes/media/index.css +1 -0
  133. package/themes/media/index.js +1 -0
  134. package/themes/media/index.json +1 -0
  135. package/themes/media/index.less +1 -0
  136. package/themes/media/index.pcss +1 -0
  137. package/themes/media/index.scss +1 -0
  138. package/themes/media/index.styl +1 -0
  139. package/themes/mediaDark/cssVars/declarations/index.css +1 -0
  140. package/themes/mediaDark/cssVars/declarations/noColors.css +636 -0
  141. package/themes/mediaDark/cssVars/declarations/noSizes.css +1 -0
  142. package/themes/mediaDark/cssVars/declarations/onlyVariables.css +1 -0
  143. package/themes/mediaDark/cssVars/declarations/onlyVariables.js +2 -2
  144. package/themes/mediaDark/cssVars/declarations/onlyVariablesLocal.css +623 -0
  145. package/themes/mediaDark/cssVars/theme/fallbacks/index.css +1 -0
  146. package/themes/mediaDark/cssVars/theme/fallbacks/index.less +1 -0
  147. package/themes/mediaDark/cssVars/theme/fallbacks/index.pcss +1 -0
  148. package/themes/mediaDark/cssVars/theme/fallbacks/index.scss +1 -0
  149. package/themes/mediaDark/cssVars/theme/fallbacks/index.styl +1 -0
  150. package/themes/mediaDark/cssVars/theme/index.js +4 -0
  151. package/themes/mediaDark/cssVars/theme/index.json +4 -0
  152. package/themes/mediaDark/index.css +1 -0
  153. package/themes/mediaDark/index.js +1 -0
  154. package/themes/mediaDark/index.json +1 -0
  155. package/themes/mediaDark/index.less +1 -0
  156. package/themes/mediaDark/index.pcss +1 -0
  157. package/themes/mediaDark/index.scss +1 -0
  158. package/themes/mediaDark/index.styl +1 -0
  159. package/themes/mycom/cssVars/declarations/index.css +1 -0
  160. package/themes/mycom/cssVars/declarations/noColors.css +635 -0
  161. package/themes/mycom/cssVars/declarations/noSizes.css +1 -0
  162. package/themes/mycom/cssVars/declarations/onlyVariables.css +1 -0
  163. package/themes/mycom/cssVars/declarations/onlyVariables.js +2 -2
  164. package/themes/mycom/cssVars/declarations/onlyVariablesLocal.css +625 -0
  165. package/themes/mycom/cssVars/theme/fallbacks/index.css +1 -0
  166. package/themes/mycom/cssVars/theme/fallbacks/index.less +1 -0
  167. package/themes/mycom/cssVars/theme/fallbacks/index.pcss +1 -0
  168. package/themes/mycom/cssVars/theme/fallbacks/index.scss +1 -0
  169. package/themes/mycom/cssVars/theme/fallbacks/index.styl +1 -0
  170. package/themes/mycom/cssVars/theme/index.js +4 -0
  171. package/themes/mycom/cssVars/theme/index.json +4 -0
  172. package/themes/mycom/index.css +1 -0
  173. package/themes/mycom/index.js +1 -0
  174. package/themes/mycom/index.json +1 -0
  175. package/themes/mycom/index.less +1 -0
  176. package/themes/mycom/index.pcss +1 -0
  177. package/themes/mycom/index.scss +1 -0
  178. package/themes/mycom/index.styl +1 -0
  179. package/themes/octavius/cssVars/declarations/noColors.css +472 -0
  180. package/themes/octavius/cssVars/declarations/onlyVariablesLocal.css +839 -0
  181. package/themes/octaviusCompact/cssVars/declarations/noColors.css +473 -0
  182. package/themes/octaviusCompact/cssVars/declarations/onlyVariablesLocal.css +840 -0
  183. package/themes/octaviusCompactDark/cssVars/declarations/noColors.css +473 -0
  184. package/themes/octaviusCompactDark/cssVars/declarations/onlyVariablesLocal.css +840 -0
  185. package/themes/octaviusDark/cssVars/declarations/noColors.css +472 -0
  186. package/themes/octaviusDark/cssVars/declarations/onlyVariablesLocal.css +839 -0
  187. package/themes/octaviusVK/cssVars/declarations/noColors.css +517 -0
  188. package/themes/octaviusVK/cssVars/declarations/onlyVariablesLocal.css +852 -0
  189. package/themes/octaviusVKDark/cssVars/declarations/noColors.css +517 -0
  190. package/themes/octaviusVKDark/cssVars/declarations/onlyVariablesLocal.css +852 -0
  191. package/themes/octaviusWhite/cssVars/declarations/noColors.css +472 -0
  192. package/themes/octaviusWhite/cssVars/declarations/onlyVariablesLocal.css +839 -0
  193. package/themes/otvet/cssVars/declarations/index.css +1 -0
  194. package/themes/otvet/cssVars/declarations/noColors.css +411 -0
  195. package/themes/otvet/cssVars/declarations/noSizes.css +1 -0
  196. package/themes/otvet/cssVars/declarations/onlyVariables.css +1 -0
  197. package/themes/otvet/cssVars/declarations/onlyVariables.js +2 -2
  198. package/themes/otvet/cssVars/declarations/onlyVariablesLocal.css +461 -0
  199. package/themes/otvet/cssVars/theme/fallbacks/index.css +1 -0
  200. package/themes/otvet/cssVars/theme/fallbacks/index.less +1 -0
  201. package/themes/otvet/cssVars/theme/fallbacks/index.pcss +1 -0
  202. package/themes/otvet/cssVars/theme/fallbacks/index.scss +1 -0
  203. package/themes/otvet/cssVars/theme/fallbacks/index.styl +1 -0
  204. package/themes/otvet/cssVars/theme/index.js +4 -0
  205. package/themes/otvet/cssVars/theme/index.json +4 -0
  206. package/themes/otvet/index.css +1 -0
  207. package/themes/otvet/index.js +1 -0
  208. package/themes/otvet/index.json +1 -0
  209. package/themes/otvet/index.less +1 -0
  210. package/themes/otvet/index.pcss +1 -0
  211. package/themes/otvet/index.scss +1 -0
  212. package/themes/otvet/index.styl +1 -0
  213. package/themes/otvetDark/cssVars/declarations/index.css +1 -0
  214. package/themes/otvetDark/cssVars/declarations/noColors.css +411 -0
  215. package/themes/otvetDark/cssVars/declarations/noSizes.css +1 -0
  216. package/themes/otvetDark/cssVars/declarations/onlyVariables.css +1 -0
  217. package/themes/otvetDark/cssVars/declarations/onlyVariables.js +2 -2
  218. package/themes/otvetDark/cssVars/declarations/onlyVariablesLocal.css +461 -0
  219. package/themes/otvetDark/cssVars/theme/fallbacks/index.css +1 -0
  220. package/themes/otvetDark/cssVars/theme/fallbacks/index.less +1 -0
  221. package/themes/otvetDark/cssVars/theme/fallbacks/index.pcss +1 -0
  222. package/themes/otvetDark/cssVars/theme/fallbacks/index.scss +1 -0
  223. package/themes/otvetDark/cssVars/theme/fallbacks/index.styl +1 -0
  224. package/themes/otvetDark/cssVars/theme/index.js +4 -0
  225. package/themes/otvetDark/cssVars/theme/index.json +4 -0
  226. package/themes/otvetDark/index.css +1 -0
  227. package/themes/otvetDark/index.js +1 -0
  228. package/themes/otvetDark/index.json +1 -0
  229. package/themes/otvetDark/index.less +1 -0
  230. package/themes/otvetDark/index.pcss +1 -0
  231. package/themes/otvetDark/index.scss +1 -0
  232. package/themes/otvetDark/index.styl +1 -0
  233. package/themes/paradigmBase/cssVars/declarations/noColors.css +446 -0
  234. package/themes/paradigmBase/cssVars/declarations/onlyVariablesLocal.css +476 -0
  235. package/themes/paradigmBaseDark/cssVars/declarations/noColors.css +446 -0
  236. package/themes/paradigmBaseDark/cssVars/declarations/onlyVariablesLocal.css +476 -0
  237. package/themes/pharma/cssVars/declarations/index.css +1 -0
  238. package/themes/pharma/cssVars/declarations/noColors.css +636 -0
  239. package/themes/pharma/cssVars/declarations/noSizes.css +1 -0
  240. package/themes/pharma/cssVars/declarations/onlyVariables.css +1 -0
  241. package/themes/pharma/cssVars/declarations/onlyVariables.js +2 -2
  242. package/themes/pharma/cssVars/declarations/onlyVariablesLocal.css +626 -0
  243. package/themes/pharma/cssVars/theme/fallbacks/index.css +1 -0
  244. package/themes/pharma/cssVars/theme/fallbacks/index.less +1 -0
  245. package/themes/pharma/cssVars/theme/fallbacks/index.pcss +1 -0
  246. package/themes/pharma/cssVars/theme/fallbacks/index.scss +1 -0
  247. package/themes/pharma/cssVars/theme/fallbacks/index.styl +1 -0
  248. package/themes/pharma/cssVars/theme/index.js +4 -0
  249. package/themes/pharma/cssVars/theme/index.json +4 -0
  250. package/themes/pharma/index.css +1 -0
  251. package/themes/pharma/index.js +1 -0
  252. package/themes/pharma/index.json +1 -0
  253. package/themes/pharma/index.less +1 -0
  254. package/themes/pharma/index.pcss +1 -0
  255. package/themes/pharma/index.scss +1 -0
  256. package/themes/pharma/index.styl +1 -0
  257. package/themes/promo/cssVars/declarations/index.css +1 -0
  258. package/themes/promo/cssVars/declarations/noColors.css +730 -0
  259. package/themes/promo/cssVars/declarations/noSizes.css +1 -0
  260. package/themes/promo/cssVars/declarations/onlyVariables.css +1 -0
  261. package/themes/promo/cssVars/declarations/onlyVariables.js +2 -2
  262. package/themes/promo/cssVars/declarations/onlyVariablesLocal.css +634 -0
  263. package/themes/promo/cssVars/theme/fallbacks/index.css +1 -0
  264. package/themes/promo/cssVars/theme/fallbacks/index.less +1 -0
  265. package/themes/promo/cssVars/theme/fallbacks/index.pcss +1 -0
  266. package/themes/promo/cssVars/theme/fallbacks/index.scss +1 -0
  267. package/themes/promo/cssVars/theme/fallbacks/index.styl +1 -0
  268. package/themes/promo/cssVars/theme/index.js +4 -0
  269. package/themes/promo/cssVars/theme/index.json +4 -0
  270. package/themes/promo/index.css +1 -0
  271. package/themes/promo/index.js +1 -0
  272. package/themes/promo/index.json +1 -0
  273. package/themes/promo/index.less +1 -0
  274. package/themes/promo/index.pcss +1 -0
  275. package/themes/promo/index.scss +1 -0
  276. package/themes/promo/index.styl +1 -0
  277. package/themes/todo/cssVars/declarations/index.css +1 -0
  278. package/themes/todo/cssVars/declarations/noColors.css +447 -0
  279. package/themes/todo/cssVars/declarations/noSizes.css +1 -0
  280. package/themes/todo/cssVars/declarations/onlyVariables.css +1 -0
  281. package/themes/todo/cssVars/declarations/onlyVariables.js +2 -2
  282. package/themes/todo/cssVars/declarations/onlyVariablesLocal.css +477 -0
  283. package/themes/todo/cssVars/theme/fallbacks/index.css +1 -0
  284. package/themes/todo/cssVars/theme/fallbacks/index.less +1 -0
  285. package/themes/todo/cssVars/theme/fallbacks/index.pcss +1 -0
  286. package/themes/todo/cssVars/theme/fallbacks/index.scss +1 -0
  287. package/themes/todo/cssVars/theme/fallbacks/index.styl +1 -0
  288. package/themes/todo/cssVars/theme/index.js +4 -0
  289. package/themes/todo/cssVars/theme/index.json +4 -0
  290. package/themes/todo/index.css +1 -0
  291. package/themes/todo/index.js +1 -0
  292. package/themes/todo/index.json +1 -0
  293. package/themes/todo/index.less +1 -0
  294. package/themes/todo/index.pcss +1 -0
  295. package/themes/todo/index.scss +1 -0
  296. package/themes/todo/index.styl +1 -0
  297. package/themes/vkBase/cssVars/declarations/index.css +1 -0
  298. package/themes/vkBase/cssVars/declarations/noColors.css +330 -0
  299. package/themes/vkBase/cssVars/declarations/noSizes.css +1 -0
  300. package/themes/vkBase/cssVars/declarations/onlyVariables.css +1 -0
  301. package/themes/vkBase/cssVars/declarations/onlyVariables.js +2 -2
  302. package/themes/vkBase/cssVars/declarations/onlyVariablesLocal.css +376 -0
  303. package/themes/vkBase/cssVars/theme/fallbacks/index.css +1 -0
  304. package/themes/vkBase/cssVars/theme/fallbacks/index.less +1 -0
  305. package/themes/vkBase/cssVars/theme/fallbacks/index.pcss +1 -0
  306. package/themes/vkBase/cssVars/theme/fallbacks/index.scss +1 -0
  307. package/themes/vkBase/cssVars/theme/fallbacks/index.styl +1 -0
  308. package/themes/vkBase/cssVars/theme/index.js +4 -0
  309. package/themes/vkBase/cssVars/theme/index.json +4 -0
  310. package/themes/vkBase/index.css +1 -0
  311. package/themes/vkBase/index.js +1 -0
  312. package/themes/vkBase/index.json +1 -0
  313. package/themes/vkBase/index.less +1 -0
  314. package/themes/vkBase/index.pcss +1 -0
  315. package/themes/vkBase/index.scss +1 -0
  316. package/themes/vkBase/index.styl +1 -0
  317. package/themes/vkBaseDark/cssVars/declarations/index.css +1 -0
  318. package/themes/vkBaseDark/cssVars/declarations/noColors.css +330 -0
  319. package/themes/vkBaseDark/cssVars/declarations/noSizes.css +1 -0
  320. package/themes/vkBaseDark/cssVars/declarations/onlyVariables.css +1 -0
  321. package/themes/vkBaseDark/cssVars/declarations/onlyVariables.js +2 -2
  322. package/themes/vkBaseDark/cssVars/declarations/onlyVariablesLocal.css +376 -0
  323. package/themes/vkBaseDark/cssVars/theme/fallbacks/index.css +1 -0
  324. package/themes/vkBaseDark/cssVars/theme/fallbacks/index.less +1 -0
  325. package/themes/vkBaseDark/cssVars/theme/fallbacks/index.pcss +1 -0
  326. package/themes/vkBaseDark/cssVars/theme/fallbacks/index.scss +1 -0
  327. package/themes/vkBaseDark/cssVars/theme/fallbacks/index.styl +1 -0
  328. package/themes/vkBaseDark/cssVars/theme/index.js +4 -0
  329. package/themes/vkBaseDark/cssVars/theme/index.json +4 -0
  330. package/themes/vkBaseDark/index.css +1 -0
  331. package/themes/vkBaseDark/index.js +1 -0
  332. package/themes/vkBaseDark/index.json +1 -0
  333. package/themes/vkBaseDark/index.less +1 -0
  334. package/themes/vkBaseDark/index.pcss +1 -0
  335. package/themes/vkBaseDark/index.scss +1 -0
  336. package/themes/vkBaseDark/index.styl +1 -0
  337. package/themes/vkCom/cssVars/declarations/index.css +1 -0
  338. package/themes/vkCom/cssVars/declarations/noColors.css +330 -0
  339. package/themes/vkCom/cssVars/declarations/noSizes.css +1 -0
  340. package/themes/vkCom/cssVars/declarations/onlyVariables.css +1 -0
  341. package/themes/vkCom/cssVars/declarations/onlyVariables.js +2 -2
  342. package/themes/vkCom/cssVars/declarations/onlyVariablesLocal.css +376 -0
  343. package/themes/vkCom/cssVars/theme/fallbacks/index.css +1 -0
  344. package/themes/vkCom/cssVars/theme/fallbacks/index.less +1 -0
  345. package/themes/vkCom/cssVars/theme/fallbacks/index.pcss +1 -0
  346. package/themes/vkCom/cssVars/theme/fallbacks/index.scss +1 -0
  347. package/themes/vkCom/cssVars/theme/fallbacks/index.styl +1 -0
  348. package/themes/vkCom/cssVars/theme/index.js +4 -0
  349. package/themes/vkCom/cssVars/theme/index.json +4 -0
  350. package/themes/vkCom/index.css +1 -0
  351. package/themes/vkCom/index.js +1 -0
  352. package/themes/vkCom/index.json +1 -0
  353. package/themes/vkCom/index.less +1 -0
  354. package/themes/vkCom/index.pcss +1 -0
  355. package/themes/vkCom/index.scss +1 -0
  356. package/themes/vkCom/index.styl +1 -0
  357. package/themes/vkComDark/cssVars/declarations/index.css +668 -0
  358. package/themes/vkComDark/cssVars/declarations/noColors.css +330 -0
  359. package/themes/vkComDark/cssVars/declarations/noSizes.css +249 -0
  360. package/themes/vkComDark/cssVars/declarations/onlyAdaptiveGroups.css +102 -0
  361. package/themes/vkComDark/cssVars/declarations/onlyColors.css +236 -0
  362. package/themes/vkComDark/cssVars/declarations/onlyColors.d.ts +3 -0
  363. package/themes/vkComDark/cssVars/declarations/onlyColors.js +11 -0
  364. package/themes/vkComDark/cssVars/declarations/onlyVariables.css +376 -0
  365. package/themes/vkComDark/cssVars/declarations/onlyVariables.d.ts +3 -0
  366. package/themes/vkComDark/cssVars/declarations/onlyVariables.js +11 -0
  367. package/themes/vkComDark/cssVars/declarations/onlyVariablesLocal.css +376 -0
  368. package/themes/vkComDark/cssVars/theme/fallbacks/index.css +565 -0
  369. package/themes/vkComDark/cssVars/theme/fallbacks/index.less +408 -0
  370. package/themes/vkComDark/cssVars/theme/fallbacks/index.pcss +409 -0
  371. package/themes/vkComDark/cssVars/theme/fallbacks/index.scss +524 -0
  372. package/themes/vkComDark/cssVars/theme/fallbacks/index.styl +408 -0
  373. package/themes/vkComDark/cssVars/theme/index.d.ts +4 -0
  374. package/themes/vkComDark/cssVars/theme/index.js +2250 -0
  375. package/themes/vkComDark/cssVars/theme/index.json +2247 -0
  376. package/themes/vkComDark/index.css +565 -0
  377. package/themes/vkComDark/index.d.ts +4 -0
  378. package/themes/vkComDark/index.js +664 -0
  379. package/themes/vkComDark/index.json +661 -0
  380. package/themes/vkComDark/index.less +408 -0
  381. package/themes/vkComDark/index.pcss +409 -0
  382. package/themes/vkComDark/index.scss +524 -0
  383. package/themes/vkComDark/index.styl +408 -0
  384. package/themes/vkIOS/cssVars/declarations/index.css +1 -0
  385. package/themes/vkIOS/cssVars/declarations/noColors.css +330 -0
  386. package/themes/vkIOS/cssVars/declarations/noSizes.css +1 -0
  387. package/themes/vkIOS/cssVars/declarations/onlyVariables.css +1 -0
  388. package/themes/vkIOS/cssVars/declarations/onlyVariables.js +2 -2
  389. package/themes/vkIOS/cssVars/declarations/onlyVariablesLocal.css +376 -0
  390. package/themes/vkIOS/cssVars/theme/fallbacks/index.css +1 -0
  391. package/themes/vkIOS/cssVars/theme/fallbacks/index.less +1 -0
  392. package/themes/vkIOS/cssVars/theme/fallbacks/index.pcss +1 -0
  393. package/themes/vkIOS/cssVars/theme/fallbacks/index.scss +1 -0
  394. package/themes/vkIOS/cssVars/theme/fallbacks/index.styl +1 -0
  395. package/themes/vkIOS/cssVars/theme/index.js +4 -0
  396. package/themes/vkIOS/cssVars/theme/index.json +4 -0
  397. package/themes/vkIOS/index.css +1 -0
  398. package/themes/vkIOS/index.js +1 -0
  399. package/themes/vkIOS/index.json +1 -0
  400. package/themes/vkIOS/index.less +1 -0
  401. package/themes/vkIOS/index.pcss +1 -0
  402. package/themes/vkIOS/index.scss +1 -0
  403. package/themes/vkIOS/index.styl +1 -0
  404. package/themes/vkIOSDark/cssVars/declarations/index.css +668 -0
  405. package/themes/vkIOSDark/cssVars/declarations/noColors.css +330 -0
  406. package/themes/vkIOSDark/cssVars/declarations/noSizes.css +249 -0
  407. package/themes/vkIOSDark/cssVars/declarations/onlyAdaptiveGroups.css +102 -0
  408. package/themes/vkIOSDark/cssVars/declarations/onlyColors.css +236 -0
  409. package/themes/vkIOSDark/cssVars/declarations/onlyColors.d.ts +3 -0
  410. package/themes/vkIOSDark/cssVars/declarations/onlyColors.js +11 -0
  411. package/themes/vkIOSDark/cssVars/declarations/onlyVariables.css +376 -0
  412. package/themes/vkIOSDark/cssVars/declarations/onlyVariables.d.ts +3 -0
  413. package/themes/vkIOSDark/cssVars/declarations/onlyVariables.js +11 -0
  414. package/themes/vkIOSDark/cssVars/declarations/onlyVariablesLocal.css +376 -0
  415. package/themes/vkIOSDark/cssVars/theme/fallbacks/index.css +565 -0
  416. package/themes/vkIOSDark/cssVars/theme/fallbacks/index.less +408 -0
  417. package/themes/vkIOSDark/cssVars/theme/fallbacks/index.pcss +409 -0
  418. package/themes/vkIOSDark/cssVars/theme/fallbacks/index.scss +524 -0
  419. package/themes/vkIOSDark/cssVars/theme/fallbacks/index.styl +408 -0
  420. package/themes/vkIOSDark/cssVars/theme/index.d.ts +4 -0
  421. package/themes/vkIOSDark/cssVars/theme/index.js +2250 -0
  422. package/themes/vkIOSDark/cssVars/theme/index.json +2247 -0
  423. package/themes/vkIOSDark/index.css +565 -0
  424. package/themes/vkIOSDark/index.d.ts +4 -0
  425. package/themes/vkIOSDark/index.js +664 -0
  426. package/themes/vkIOSDark/index.json +661 -0
  427. package/themes/vkIOSDark/index.less +408 -0
  428. package/themes/vkIOSDark/index.pcss +409 -0
  429. package/themes/vkIOSDark/index.scss +524 -0
  430. package/themes/vkIOSDark/index.styl +408 -0
@@ -2,8 +2,8 @@ import { PixelifyTheme, SpecialTokens, Theme, ThemeCssVarsWide } from '../../int
2
2
  declare type ThemeBuildType = 'root' | 'subtheme' | 'flat' | 'cssVars' | 'cssVarsPseudoRoot';
3
3
  declare function writeJsonFile<T = Theme>(themePath: string, theme: T, _?: ThemeBuildType): void;
4
4
  declare function writeTsFile<T extends SpecialTokens = Theme>(themePath: string, theme: T, type: ThemeBuildType, themeName?: string): void;
5
- declare function writeStyleFiles<PT = PixelifyTheme>(themePath: string, theme: PT): void;
6
- declare function writeCssVarsSourceFile<PT = PixelifyTheme>(themePath: string, theme: PT, cssWarsTheme: any): void;
5
+ declare function writeStyleFiles<PT extends PixelifyTheme = PixelifyTheme>(themePath: string, theme: PT): void;
6
+ declare function writeCssVarsSourceFile<PT extends PixelifyTheme = PixelifyTheme>(themePath: string, theme: PT, cssWarsTheme: any): void;
7
7
  declare function writeCssVarsSourceMediaFile<T = ThemeCssVarsWide>(themePath: string, theme: T): void;
8
8
  declare function writeCssVarsJsUtils<T = Theme>(themePath: string, theme: ThemeCssVarsWide<T>): void;
9
9
  export { writeCssVarsJsUtils, writeCssVarsSourceFile, writeCssVarsSourceMediaFile, writeJsonFile, writeStyleFiles, writeTsFile, };
@@ -70,9 +70,11 @@ function writeCssVarsSourceFile(themePath, theme, cssWarsTheme) {
70
70
  [
71
71
  { mode: 'default', fileName: 'index.css' },
72
72
  { mode: 'onlyVariables', fileName: 'onlyVariables.css' },
73
+ { mode: 'onlyVariablesLocal', fileName: 'onlyVariablesLocal.css' },
73
74
  { mode: 'onlyColors', fileName: 'onlyColors.css' },
74
75
  { mode: 'onlyAdaptiveGroups', fileName: 'onlyAdaptiveGroups.css' },
75
76
  { mode: 'noSizes', fileName: 'noSizes.css' },
77
+ { mode: 'noColors', fileName: 'noColors.css' },
76
78
  ].forEach(function (_a) {
77
79
  var _b;
78
80
  var mode = _a.mode, fileName = _a.fileName;
@@ -2,8 +2,10 @@ import 'css.escape';
2
2
  import { PixelifyTheme } from '../../../interfaces/general';
3
3
  import { Formats } from './helpers/tokenProcessors';
4
4
  export declare const serviceKeys: string[];
5
- export declare type CompileStylesMode = 'default' | 'onlyVariables' | 'onlyColors' | 'withAdaptiveGroups' | 'onlyAdaptiveGroups' | 'noSizes';
5
+ export declare type CompileStylesMode = 'default' | 'onlyVariables' | 'onlyVariablesLocal' | 'onlyColors' | 'withAdaptiveGroups' | 'onlyAdaptiveGroups' | 'noSizes' | 'noColors';
6
+ export declare function getPrefix<PT extends PixelifyTheme>(format: Formats, theme: PT): string;
7
+ export declare function getRootSelector<PT extends PixelifyTheme>(theme: PT, mode: CompileStylesMode): string;
6
8
  /**
7
9
  * Компиллирует строку со стилями (в разных форматах), на основе темы
8
10
  */
9
- export declare const compileStyles: <PT = PixelifyTheme<import("../../../interfaces/general").Theme>>(format: Formats, theme: PT, mode?: CompileStylesMode) => string;
11
+ export declare const compileStyles: <PT extends PixelifyTheme<import("../../../interfaces/general").Theme> = PixelifyTheme<import("../../../interfaces/general").Theme>>(format: Formats, theme: PT, mode?: CompileStylesMode) => string;
@@ -4,28 +4,46 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  return cooked;
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.compileStyles = exports.serviceKeys = void 0;
7
+ exports.compileStyles = exports.getRootSelector = exports.getPrefix = exports.serviceKeys = void 0;
8
8
  require("css.escape");
9
9
  var common_tags_1 = require("common-tags");
10
+ var getAllButColors_1 = require("../../helpers/getAllButColors");
10
11
  var getAllButSizes_1 = require("../../helpers/getAllButSizes");
11
12
  var getOnlyColors_1 = require("../../helpers/getOnlyColors");
12
13
  var unCamelcasify_1 = require("../../helpers/unCamelcasify");
13
14
  var tokenProcessors_1 = require("./helpers/tokenProcessors");
14
15
  var tokenRecognition_1 = require("./helpers/tokenRecognition");
15
16
  exports.serviceKeys = ['breakpoints', 'prefix', 'themeType'];
16
- /**
17
- * Компиллирует строку со стилями разных форматах), на основе темы
18
- */
19
- var compileStyles = function (format, theme, mode) {
20
- if (mode === void 0) { mode = 'default'; }
21
- var classicCssType = format === tokenProcessors_1.EStyleTypes.CSS || format === tokenProcessors_1.EStyleTypes.PCSS;
17
+ function isClassicCssType(format) {
18
+ return format === tokenProcessors_1.EStyleTypes.CSS || format === tokenProcessors_1.EStyleTypes.PCSS;
19
+ }
20
+ function getPrefix(format, theme) {
22
21
  var prefix = theme.prefix ? theme.prefix + "-" : '';
23
- if (classicCssType && prefix) {
22
+ if (isClassicCssType(format) && prefix) {
24
23
  prefix += '-';
25
24
  }
26
25
  if (format === tokenProcessors_1.EStyleTypes.CSS && !prefix) {
27
26
  prefix = 'vkui--';
28
27
  }
28
+ return prefix;
29
+ }
30
+ exports.getPrefix = getPrefix;
31
+ function getRootSelector(theme, mode) {
32
+ var _a;
33
+ if (!mode.endsWith('Local')) {
34
+ return ':root';
35
+ }
36
+ return "." + getPrefix(tokenProcessors_1.EStyleTypes.CSS, theme) + ((_a = theme.themeNameBase) !== null && _a !== void 0 ? _a : theme.themeName) + "--" + theme.colorsScheme;
37
+ }
38
+ exports.getRootSelector = getRootSelector;
39
+ /**
40
+ * Компиллирует строку со стилями (в разных форматах), на основе темы
41
+ */
42
+ var compileStyles = function (format, theme, mode) {
43
+ if (mode === void 0) { mode = 'default'; }
44
+ var classicCssType = isClassicCssType(format);
45
+ var prefix = getPrefix(format, theme);
46
+ var rootSelector = getRootSelector(theme, mode);
29
47
  var getDeclaration = tokenProcessors_1.varDeclarations[format];
30
48
  var getVariableStatement = tokenProcessors_1.variablesStatementDeclaration[format];
31
49
  var getCustomMediaDeclaration = tokenProcessors_1.customMediaDeclaration[format];
@@ -39,6 +57,9 @@ var compileStyles = function (format, theme, mode) {
39
57
  case 'noSizes':
40
58
  theme = getAllButSizes_1.getAllButSizes(theme, theme.themeNameBase);
41
59
  break;
60
+ case 'noColors':
61
+ theme = getAllButColors_1.getAllButColors(theme, theme.themeNameBase);
62
+ break;
42
63
  }
43
64
  Object.keys(theme).forEach(function (key) {
44
65
  // пропускаем служебные ключи
@@ -91,9 +112,9 @@ var compileStyles = function (format, theme, mode) {
91
112
  });
92
113
  result = variables;
93
114
  if (classicCssType && variables) {
94
- result = common_tags_1.stripIndent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t\t:root {\n\t\t", "}\n\t\t"], ["\n\t\t:root {\n\t\t", "}\n\t\t"])), variables.split('\n').join('\n\t\t'));
115
+ result = common_tags_1.stripIndent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t\t", " {\n\t\t", "}\n\t\t"], ["\n\t\t", " {\n\t\t", "}\n\t\t"])), rootSelector, variables.split('\n').join('\n\t\t'));
95
116
  }
96
- if (mode === 'onlyVariables') {
117
+ if (mode === 'onlyVariables' || mode === 'onlyVariablesLocal') {
97
118
  return common_tags_1.stripIndent(result);
98
119
  }
99
120
  if (mode === 'onlyAdaptiveGroups') {