@vkontakte/vkui-tokens 4.0.0 → 4.2.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/README.md +108 -42
- package/build/compilers/index.d.ts +2 -2
- package/build/compilers/index.js +2 -0
- package/build/compilers/styles/compileStyles.d.ts +4 -2
- package/build/compilers/styles/compileStyles.js +31 -10
- package/build/compilers/styles/compileStyles.test.js +265 -196
- package/build/helpers/getAllButColors.d.ts +1 -0
- package/build/helpers/getAllButColors.js +17 -0
- package/build/helpers/getAllButColors.test.d.ts +1 -0
- package/build/helpers/getAllButColors.test.js +26 -0
- package/interfaces/general/geometry/index.d.ts +4 -0
- package/interfaces/general/index.d.ts +4 -0
- package/interfaces/themes/vkComDark/index.d.ts +1 -0
- package/interfaces/themes/vkComDark/index.js +2 -0
- package/interfaces/themes/vkIOSDark/index.d.ts +1 -0
- package/interfaces/themes/vkIOSDark/index.js +2 -0
- package/package.json +1 -1
- package/themeDescriptions/base/paradigm.js +11 -1
- package/themeDescriptions/base/vk.js +96 -98
- package/themes/calendar/cssVars/declarations/index.css +9 -0
- package/themes/calendar/cssVars/declarations/noColors.css +574 -0
- package/themes/calendar/cssVars/declarations/noSizes.css +1 -0
- package/themes/calendar/cssVars/declarations/onlyMedia.css +4 -0
- package/themes/calendar/cssVars/declarations/onlyVariables.css +5 -0
- package/themes/calendar/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/calendar/cssVars/declarations/onlyVariablesLocal.css +520 -0
- package/themes/calendar/cssVars/theme/fallbacks/index.css +5 -0
- package/themes/calendar/cssVars/theme/fallbacks/index.less +5 -0
- package/themes/calendar/cssVars/theme/fallbacks/index.pcss +5 -0
- package/themes/calendar/cssVars/theme/fallbacks/index.scss +5 -0
- package/themes/calendar/cssVars/theme/fallbacks/index.styl +5 -0
- package/themes/calendar/cssVars/theme/index.js +44 -0
- package/themes/calendar/cssVars/theme/index.json +44 -0
- package/themes/calendar/index.css +5 -0
- package/themes/calendar/index.js +13 -0
- package/themes/calendar/index.json +13 -0
- package/themes/calendar/index.less +5 -0
- package/themes/calendar/index.pcss +5 -0
- package/themes/calendar/index.scss +5 -0
- package/themes/calendar/index.styl +5 -0
- package/themes/calendarDark/cssVars/declarations/index.css +9 -0
- package/themes/calendarDark/cssVars/declarations/noColors.css +574 -0
- package/themes/calendarDark/cssVars/declarations/noSizes.css +1 -0
- package/themes/calendarDark/cssVars/declarations/onlyMedia.css +4 -0
- package/themes/calendarDark/cssVars/declarations/onlyVariables.css +5 -0
- package/themes/calendarDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/calendarDark/cssVars/declarations/onlyVariablesLocal.css +520 -0
- package/themes/calendarDark/cssVars/theme/fallbacks/index.css +5 -0
- package/themes/calendarDark/cssVars/theme/fallbacks/index.less +5 -0
- package/themes/calendarDark/cssVars/theme/fallbacks/index.pcss +5 -0
- package/themes/calendarDark/cssVars/theme/fallbacks/index.scss +5 -0
- package/themes/calendarDark/cssVars/theme/fallbacks/index.styl +5 -0
- package/themes/calendarDark/cssVars/theme/index.js +44 -0
- package/themes/calendarDark/cssVars/theme/index.json +44 -0
- package/themes/calendarDark/index.css +5 -0
- package/themes/calendarDark/index.js +13 -0
- package/themes/calendarDark/index.json +13 -0
- package/themes/calendarDark/index.less +5 -0
- package/themes/calendarDark/index.pcss +5 -0
- package/themes/calendarDark/index.scss +5 -0
- package/themes/calendarDark/index.styl +5 -0
- package/themes/calls/cssVars/declarations/index.css +13 -4
- package/themes/calls/cssVars/declarations/noColors.css +427 -0
- package/themes/calls/cssVars/declarations/noSizes.css +1 -0
- package/themes/calls/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/calls/cssVars/declarations/onlyVariables.css +6 -1
- package/themes/calls/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/calls/cssVars/declarations/onlyVariablesLocal.css +477 -0
- package/themes/calls/cssVars/theme/fallbacks/index.css +8 -3
- package/themes/calls/cssVars/theme/fallbacks/index.less +6 -1
- package/themes/calls/cssVars/theme/fallbacks/index.pcss +6 -1
- package/themes/calls/cssVars/theme/fallbacks/index.scss +7 -2
- package/themes/calls/cssVars/theme/fallbacks/index.styl +6 -1
- package/themes/calls/cssVars/theme/index.js +45 -1
- package/themes/calls/cssVars/theme/index.json +45 -1
- package/themes/calls/index.css +8 -3
- package/themes/calls/index.js +14 -1
- package/themes/calls/index.json +14 -1
- package/themes/calls/index.less +6 -1
- package/themes/calls/index.pcss +6 -1
- package/themes/calls/index.scss +7 -2
- package/themes/calls/index.styl +6 -1
- package/themes/cloud/cssVars/declarations/index.css +9 -0
- package/themes/cloud/cssVars/declarations/noColors.css +510 -0
- package/themes/cloud/cssVars/declarations/noSizes.css +1 -0
- package/themes/cloud/cssVars/declarations/onlyMedia.css +4 -0
- package/themes/cloud/cssVars/declarations/onlyVariables.css +5 -0
- package/themes/cloud/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/cloud/cssVars/declarations/onlyVariablesLocal.css +500 -0
- package/themes/cloud/cssVars/theme/fallbacks/index.css +5 -0
- package/themes/cloud/cssVars/theme/fallbacks/index.less +5 -0
- package/themes/cloud/cssVars/theme/fallbacks/index.pcss +5 -0
- package/themes/cloud/cssVars/theme/fallbacks/index.scss +5 -0
- package/themes/cloud/cssVars/theme/fallbacks/index.styl +5 -0
- package/themes/cloud/cssVars/theme/index.js +44 -0
- package/themes/cloud/cssVars/theme/index.json +44 -0
- package/themes/cloud/index.css +5 -0
- package/themes/cloud/index.js +13 -0
- package/themes/cloud/index.json +13 -0
- package/themes/cloud/index.less +5 -0
- package/themes/cloud/index.pcss +5 -0
- package/themes/cloud/index.scss +5 -0
- package/themes/cloud/index.styl +5 -0
- package/themes/home/cssVars/declarations/index.css +13 -4
- package/themes/home/cssVars/declarations/noColors.css +452 -0
- package/themes/home/cssVars/declarations/noSizes.css +1 -3
- package/themes/home/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/home/cssVars/declarations/onlyVariables.css +6 -1
- package/themes/home/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/home/cssVars/declarations/onlyVariablesLocal.css +497 -0
- package/themes/home/cssVars/theme/fallbacks/index.css +8 -3
- package/themes/home/cssVars/theme/fallbacks/index.less +6 -1
- package/themes/home/cssVars/theme/fallbacks/index.pcss +6 -1
- package/themes/home/cssVars/theme/fallbacks/index.scss +7 -2
- package/themes/home/cssVars/theme/fallbacks/index.styl +6 -1
- package/themes/home/cssVars/theme/index.js +45 -1
- package/themes/home/cssVars/theme/index.json +45 -1
- package/themes/home/index.css +8 -3
- package/themes/home/index.js +14 -1
- package/themes/home/index.json +14 -1
- package/themes/home/index.less +6 -1
- package/themes/home/index.pcss +6 -1
- package/themes/home/index.scss +7 -2
- package/themes/home/index.styl +6 -1
- package/themes/homeDark/cssVars/declarations/index.css +12 -4
- package/themes/homeDark/cssVars/declarations/noColors.css +466 -0
- package/themes/homeDark/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/homeDark/cssVars/declarations/onlyVariables.css +5 -1
- package/themes/homeDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/homeDark/cssVars/declarations/onlyVariablesLocal.css +496 -0
- package/themes/homeDark/cssVars/theme/fallbacks/index.css +7 -3
- package/themes/homeDark/cssVars/theme/fallbacks/index.less +5 -1
- package/themes/homeDark/cssVars/theme/fallbacks/index.pcss +5 -1
- package/themes/homeDark/cssVars/theme/fallbacks/index.scss +6 -2
- package/themes/homeDark/cssVars/theme/fallbacks/index.styl +5 -1
- package/themes/homeDark/cssVars/theme/index.js +41 -1
- package/themes/homeDark/cssVars/theme/index.json +41 -1
- package/themes/homeDark/index.css +7 -3
- package/themes/homeDark/index.js +13 -1
- package/themes/homeDark/index.json +13 -1
- package/themes/homeDark/index.less +5 -1
- package/themes/homeDark/index.pcss +5 -1
- package/themes/homeDark/index.scss +6 -2
- package/themes/homeDark/index.styl +5 -1
- package/themes/media/cssVars/declarations/index.css +14 -5
- package/themes/media/cssVars/declarations/noColors.css +638 -0
- package/themes/media/cssVars/declarations/noSizes.css +1 -0
- package/themes/media/cssVars/declarations/onlyMedia.css +4 -0
- package/themes/media/cssVars/declarations/onlyVariables.css +6 -1
- package/themes/media/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/media/cssVars/declarations/onlyVariablesLocal.css +625 -0
- package/themes/media/cssVars/theme/fallbacks/index.css +10 -5
- package/themes/media/cssVars/theme/fallbacks/index.less +7 -2
- package/themes/media/cssVars/theme/fallbacks/index.pcss +7 -2
- package/themes/media/cssVars/theme/fallbacks/index.scss +10 -5
- package/themes/media/cssVars/theme/fallbacks/index.styl +7 -2
- package/themes/media/cssVars/theme/index.js +45 -1
- package/themes/media/cssVars/theme/index.json +45 -1
- package/themes/media/index.css +10 -5
- package/themes/media/index.js +14 -1
- package/themes/media/index.json +14 -1
- package/themes/media/index.less +7 -2
- package/themes/media/index.pcss +7 -2
- package/themes/media/index.scss +10 -5
- package/themes/media/index.styl +7 -2
- package/themes/mediaDark/cssVars/declarations/index.css +14 -5
- package/themes/mediaDark/cssVars/declarations/noColors.css +638 -0
- package/themes/mediaDark/cssVars/declarations/noSizes.css +1 -0
- package/themes/mediaDark/cssVars/declarations/onlyMedia.css +4 -0
- package/themes/mediaDark/cssVars/declarations/onlyVariables.css +6 -1
- package/themes/mediaDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/mediaDark/cssVars/declarations/onlyVariablesLocal.css +625 -0
- package/themes/mediaDark/cssVars/theme/fallbacks/index.css +10 -5
- package/themes/mediaDark/cssVars/theme/fallbacks/index.less +7 -2
- package/themes/mediaDark/cssVars/theme/fallbacks/index.pcss +7 -2
- package/themes/mediaDark/cssVars/theme/fallbacks/index.scss +10 -5
- package/themes/mediaDark/cssVars/theme/fallbacks/index.styl +7 -2
- package/themes/mediaDark/cssVars/theme/index.js +45 -1
- package/themes/mediaDark/cssVars/theme/index.json +45 -1
- package/themes/mediaDark/index.css +10 -5
- package/themes/mediaDark/index.js +14 -1
- package/themes/mediaDark/index.json +14 -1
- package/themes/mediaDark/index.less +7 -2
- package/themes/mediaDark/index.pcss +7 -2
- package/themes/mediaDark/index.scss +10 -5
- package/themes/mediaDark/index.styl +7 -2
- package/themes/mycom/cssVars/declarations/index.css +14 -5
- package/themes/mycom/cssVars/declarations/noColors.css +637 -0
- package/themes/mycom/cssVars/declarations/noSizes.css +1 -0
- package/themes/mycom/cssVars/declarations/onlyMedia.css +4 -0
- package/themes/mycom/cssVars/declarations/onlyVariables.css +6 -1
- package/themes/mycom/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/mycom/cssVars/declarations/onlyVariablesLocal.css +627 -0
- package/themes/mycom/cssVars/theme/fallbacks/index.css +10 -5
- package/themes/mycom/cssVars/theme/fallbacks/index.less +7 -2
- package/themes/mycom/cssVars/theme/fallbacks/index.pcss +7 -2
- package/themes/mycom/cssVars/theme/fallbacks/index.scss +10 -5
- package/themes/mycom/cssVars/theme/fallbacks/index.styl +7 -2
- package/themes/mycom/cssVars/theme/index.js +45 -1
- package/themes/mycom/cssVars/theme/index.json +45 -1
- package/themes/mycom/index.css +10 -5
- package/themes/mycom/index.js +14 -1
- package/themes/mycom/index.json +14 -1
- package/themes/mycom/index.less +7 -2
- package/themes/mycom/index.pcss +7 -2
- package/themes/mycom/index.scss +10 -5
- package/themes/mycom/index.styl +7 -2
- package/themes/octavius/cssVars/declarations/index.css +12 -4
- package/themes/octavius/cssVars/declarations/noColors.css +474 -0
- package/themes/octavius/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/octavius/cssVars/declarations/onlyVariables.css +5 -1
- package/themes/octavius/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octavius/cssVars/declarations/onlyVariablesLocal.css +841 -0
- package/themes/octavius/cssVars/theme/fallbacks/index.css +7 -3
- package/themes/octavius/cssVars/theme/fallbacks/index.less +5 -1
- package/themes/octavius/cssVars/theme/fallbacks/index.pcss +5 -1
- package/themes/octavius/cssVars/theme/fallbacks/index.scss +6 -2
- package/themes/octavius/cssVars/theme/fallbacks/index.styl +5 -1
- package/themes/octavius/cssVars/theme/index.js +41 -1
- package/themes/octavius/cssVars/theme/index.json +41 -1
- package/themes/octavius/index.css +7 -3
- package/themes/octavius/index.js +13 -1
- package/themes/octavius/index.json +13 -1
- package/themes/octavius/index.less +5 -1
- package/themes/octavius/index.pcss +5 -1
- package/themes/octavius/index.scss +6 -2
- package/themes/octavius/index.styl +5 -1
- package/themes/octaviusCompact/cssVars/declarations/index.css +12 -4
- package/themes/octaviusCompact/cssVars/declarations/noColors.css +475 -0
- package/themes/octaviusCompact/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/octaviusCompact/cssVars/declarations/onlyVariables.css +5 -1
- package/themes/octaviusCompact/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusCompact/cssVars/declarations/onlyVariablesLocal.css +842 -0
- package/themes/octaviusCompact/cssVars/theme/fallbacks/index.css +7 -3
- package/themes/octaviusCompact/cssVars/theme/fallbacks/index.less +5 -1
- package/themes/octaviusCompact/cssVars/theme/fallbacks/index.pcss +5 -1
- package/themes/octaviusCompact/cssVars/theme/fallbacks/index.scss +6 -2
- package/themes/octaviusCompact/cssVars/theme/fallbacks/index.styl +5 -1
- package/themes/octaviusCompact/cssVars/theme/index.js +41 -1
- package/themes/octaviusCompact/cssVars/theme/index.json +41 -1
- package/themes/octaviusCompact/index.css +7 -3
- package/themes/octaviusCompact/index.js +13 -1
- package/themes/octaviusCompact/index.json +13 -1
- package/themes/octaviusCompact/index.less +5 -1
- package/themes/octaviusCompact/index.pcss +5 -1
- package/themes/octaviusCompact/index.scss +6 -2
- package/themes/octaviusCompact/index.styl +5 -1
- package/themes/octaviusCompactDark/cssVars/declarations/index.css +12 -4
- package/themes/octaviusCompactDark/cssVars/declarations/noColors.css +475 -0
- package/themes/octaviusCompactDark/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/octaviusCompactDark/cssVars/declarations/onlyVariables.css +5 -1
- package/themes/octaviusCompactDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusCompactDark/cssVars/declarations/onlyVariablesLocal.css +842 -0
- package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.css +7 -3
- package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.less +5 -1
- package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.pcss +5 -1
- package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.scss +6 -2
- package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.styl +5 -1
- package/themes/octaviusCompactDark/cssVars/theme/index.js +41 -1
- package/themes/octaviusCompactDark/cssVars/theme/index.json +41 -1
- package/themes/octaviusCompactDark/index.css +7 -3
- package/themes/octaviusCompactDark/index.js +13 -1
- package/themes/octaviusCompactDark/index.json +13 -1
- package/themes/octaviusCompactDark/index.less +5 -1
- package/themes/octaviusCompactDark/index.pcss +5 -1
- package/themes/octaviusCompactDark/index.scss +6 -2
- package/themes/octaviusCompactDark/index.styl +5 -1
- package/themes/octaviusDark/cssVars/declarations/index.css +12 -4
- package/themes/octaviusDark/cssVars/declarations/noColors.css +474 -0
- package/themes/octaviusDark/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/octaviusDark/cssVars/declarations/onlyVariables.css +5 -1
- package/themes/octaviusDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusDark/cssVars/declarations/onlyVariablesLocal.css +841 -0
- package/themes/octaviusDark/cssVars/theme/fallbacks/index.css +7 -3
- package/themes/octaviusDark/cssVars/theme/fallbacks/index.less +5 -1
- package/themes/octaviusDark/cssVars/theme/fallbacks/index.pcss +5 -1
- package/themes/octaviusDark/cssVars/theme/fallbacks/index.scss +6 -2
- package/themes/octaviusDark/cssVars/theme/fallbacks/index.styl +5 -1
- package/themes/octaviusDark/cssVars/theme/index.js +41 -1
- package/themes/octaviusDark/cssVars/theme/index.json +41 -1
- package/themes/octaviusDark/index.css +7 -3
- package/themes/octaviusDark/index.js +13 -1
- package/themes/octaviusDark/index.json +13 -1
- package/themes/octaviusDark/index.less +5 -1
- package/themes/octaviusDark/index.pcss +5 -1
- package/themes/octaviusDark/index.scss +6 -2
- package/themes/octaviusDark/index.styl +5 -1
- package/themes/octaviusVK/cssVars/declarations/index.css +59 -51
- package/themes/octaviusVK/cssVars/declarations/noColors.css +519 -0
- package/themes/octaviusVK/cssVars/declarations/noSizes.css +51 -51
- package/themes/octaviusVK/cssVars/declarations/onlyColors.css +51 -51
- package/themes/octaviusVK/cssVars/declarations/onlyColors.js +2 -2
- package/themes/octaviusVK/cssVars/declarations/onlyMedia.css +4 -0
- package/themes/octaviusVK/cssVars/declarations/onlyVariables.css +55 -51
- package/themes/octaviusVK/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusVK/cssVars/declarations/onlyVariablesLocal.css +854 -0
- package/themes/octaviusVK/cssVars/theme/fallbacks/index.css +55 -51
- package/themes/octaviusVK/cssVars/theme/fallbacks/index.less +55 -51
- package/themes/octaviusVK/cssVars/theme/fallbacks/index.pcss +55 -51
- package/themes/octaviusVK/cssVars/theme/fallbacks/index.scss +55 -51
- package/themes/octaviusVK/cssVars/theme/fallbacks/index.styl +55 -51
- package/themes/octaviusVK/cssVars/theme/index.js +91 -51
- package/themes/octaviusVK/cssVars/theme/index.json +91 -51
- package/themes/octaviusVK/index.css +55 -51
- package/themes/octaviusVK/index.js +63 -51
- package/themes/octaviusVK/index.json +63 -51
- package/themes/octaviusVK/index.less +55 -51
- package/themes/octaviusVK/index.pcss +55 -51
- package/themes/octaviusVK/index.scss +55 -51
- package/themes/octaviusVK/index.styl +55 -51
- package/themes/octaviusVKDark/cssVars/declarations/index.css +51 -43
- package/themes/octaviusVKDark/cssVars/declarations/noColors.css +519 -0
- package/themes/octaviusVKDark/cssVars/declarations/noSizes.css +43 -43
- package/themes/octaviusVKDark/cssVars/declarations/onlyColors.css +43 -43
- package/themes/octaviusVKDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/octaviusVKDark/cssVars/declarations/onlyMedia.css +4 -0
- package/themes/octaviusVKDark/cssVars/declarations/onlyVariables.css +47 -43
- package/themes/octaviusVKDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusVKDark/cssVars/declarations/onlyVariablesLocal.css +854 -0
- package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.css +47 -43
- package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.less +47 -43
- package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.pcss +47 -43
- package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.scss +47 -43
- package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.styl +47 -43
- package/themes/octaviusVKDark/cssVars/theme/index.js +83 -43
- package/themes/octaviusVKDark/cssVars/theme/index.json +83 -43
- package/themes/octaviusVKDark/index.css +47 -43
- package/themes/octaviusVKDark/index.js +55 -43
- package/themes/octaviusVKDark/index.json +55 -43
- package/themes/octaviusVKDark/index.less +47 -43
- package/themes/octaviusVKDark/index.pcss +47 -43
- package/themes/octaviusVKDark/index.scss +47 -43
- package/themes/octaviusVKDark/index.styl +47 -43
- package/themes/octaviusWhite/cssVars/declarations/index.css +12 -4
- package/themes/octaviusWhite/cssVars/declarations/noColors.css +474 -0
- package/themes/octaviusWhite/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/octaviusWhite/cssVars/declarations/onlyVariables.css +5 -1
- package/themes/octaviusWhite/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusWhite/cssVars/declarations/onlyVariablesLocal.css +841 -0
- package/themes/octaviusWhite/cssVars/theme/fallbacks/index.css +7 -3
- package/themes/octaviusWhite/cssVars/theme/fallbacks/index.less +5 -1
- package/themes/octaviusWhite/cssVars/theme/fallbacks/index.pcss +5 -1
- package/themes/octaviusWhite/cssVars/theme/fallbacks/index.scss +6 -2
- package/themes/octaviusWhite/cssVars/theme/fallbacks/index.styl +5 -1
- package/themes/octaviusWhite/cssVars/theme/index.js +41 -1
- package/themes/octaviusWhite/cssVars/theme/index.json +41 -1
- package/themes/octaviusWhite/index.css +7 -3
- package/themes/octaviusWhite/index.js +13 -1
- package/themes/octaviusWhite/index.json +13 -1
- package/themes/octaviusWhite/index.less +5 -1
- package/themes/octaviusWhite/index.pcss +5 -1
- package/themes/octaviusWhite/index.scss +6 -2
- package/themes/octaviusWhite/index.styl +5 -1
- package/themes/otvet/cssVars/declarations/index.css +13 -4
- package/themes/otvet/cssVars/declarations/noColors.css +413 -0
- package/themes/otvet/cssVars/declarations/noSizes.css +1 -0
- package/themes/otvet/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/otvet/cssVars/declarations/onlyVariables.css +6 -1
- package/themes/otvet/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/otvet/cssVars/declarations/onlyVariablesLocal.css +463 -0
- package/themes/otvet/cssVars/theme/fallbacks/index.css +8 -3
- package/themes/otvet/cssVars/theme/fallbacks/index.less +6 -1
- package/themes/otvet/cssVars/theme/fallbacks/index.pcss +6 -1
- package/themes/otvet/cssVars/theme/fallbacks/index.scss +7 -2
- package/themes/otvet/cssVars/theme/fallbacks/index.styl +6 -1
- package/themes/otvet/cssVars/theme/index.js +45 -1
- package/themes/otvet/cssVars/theme/index.json +45 -1
- package/themes/otvet/index.css +8 -3
- package/themes/otvet/index.js +14 -1
- package/themes/otvet/index.json +14 -1
- package/themes/otvet/index.less +6 -1
- package/themes/otvet/index.pcss +6 -1
- package/themes/otvet/index.scss +7 -2
- package/themes/otvet/index.styl +6 -1
- package/themes/otvetDark/cssVars/declarations/index.css +13 -4
- package/themes/otvetDark/cssVars/declarations/noColors.css +413 -0
- package/themes/otvetDark/cssVars/declarations/noSizes.css +1 -0
- package/themes/otvetDark/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/otvetDark/cssVars/declarations/onlyVariables.css +6 -1
- package/themes/otvetDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/otvetDark/cssVars/declarations/onlyVariablesLocal.css +463 -0
- package/themes/otvetDark/cssVars/theme/fallbacks/index.css +8 -3
- package/themes/otvetDark/cssVars/theme/fallbacks/index.less +6 -1
- package/themes/otvetDark/cssVars/theme/fallbacks/index.pcss +6 -1
- package/themes/otvetDark/cssVars/theme/fallbacks/index.scss +7 -2
- package/themes/otvetDark/cssVars/theme/fallbacks/index.styl +6 -1
- package/themes/otvetDark/cssVars/theme/index.js +45 -1
- package/themes/otvetDark/cssVars/theme/index.json +45 -1
- package/themes/otvetDark/index.css +8 -3
- package/themes/otvetDark/index.js +14 -1
- package/themes/otvetDark/index.json +14 -1
- package/themes/otvetDark/index.less +6 -1
- package/themes/otvetDark/index.pcss +6 -1
- package/themes/otvetDark/index.scss +7 -2
- package/themes/otvetDark/index.styl +6 -1
- package/themes/paradigmBase/cssVars/declarations/index.css +12 -4
- package/themes/paradigmBase/cssVars/declarations/noColors.css +448 -0
- package/themes/paradigmBase/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/paradigmBase/cssVars/declarations/onlyVariables.css +5 -1
- package/themes/paradigmBase/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/paradigmBase/cssVars/declarations/onlyVariablesLocal.css +478 -0
- package/themes/paradigmBase/cssVars/theme/fallbacks/index.css +7 -3
- package/themes/paradigmBase/cssVars/theme/fallbacks/index.less +5 -1
- package/themes/paradigmBase/cssVars/theme/fallbacks/index.pcss +5 -1
- package/themes/paradigmBase/cssVars/theme/fallbacks/index.scss +6 -2
- package/themes/paradigmBase/cssVars/theme/fallbacks/index.styl +5 -1
- package/themes/paradigmBase/cssVars/theme/index.js +41 -1
- package/themes/paradigmBase/cssVars/theme/index.json +41 -1
- package/themes/paradigmBase/index.css +7 -3
- package/themes/paradigmBase/index.js +13 -1
- package/themes/paradigmBase/index.json +13 -1
- package/themes/paradigmBase/index.less +5 -1
- package/themes/paradigmBase/index.pcss +5 -1
- package/themes/paradigmBase/index.scss +6 -2
- package/themes/paradigmBase/index.styl +5 -1
- package/themes/paradigmBaseDark/cssVars/declarations/index.css +12 -4
- package/themes/paradigmBaseDark/cssVars/declarations/noColors.css +448 -0
- package/themes/paradigmBaseDark/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/paradigmBaseDark/cssVars/declarations/onlyVariables.css +5 -1
- package/themes/paradigmBaseDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/paradigmBaseDark/cssVars/declarations/onlyVariablesLocal.css +478 -0
- package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.css +7 -3
- package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.less +5 -1
- package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.pcss +5 -1
- package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.scss +6 -2
- package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.styl +5 -1
- package/themes/paradigmBaseDark/cssVars/theme/index.js +41 -1
- package/themes/paradigmBaseDark/cssVars/theme/index.json +41 -1
- package/themes/paradigmBaseDark/index.css +7 -3
- package/themes/paradigmBaseDark/index.js +13 -1
- package/themes/paradigmBaseDark/index.json +13 -1
- package/themes/paradigmBaseDark/index.less +5 -1
- package/themes/paradigmBaseDark/index.pcss +5 -1
- package/themes/paradigmBaseDark/index.scss +6 -2
- package/themes/paradigmBaseDark/index.styl +5 -1
- package/themes/pharma/cssVars/declarations/index.css +14 -5
- package/themes/pharma/cssVars/declarations/noColors.css +638 -0
- package/themes/pharma/cssVars/declarations/noSizes.css +1 -0
- package/themes/pharma/cssVars/declarations/onlyMedia.css +4 -0
- package/themes/pharma/cssVars/declarations/onlyVariables.css +6 -1
- package/themes/pharma/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/pharma/cssVars/declarations/onlyVariablesLocal.css +628 -0
- package/themes/pharma/cssVars/theme/fallbacks/index.css +10 -5
- package/themes/pharma/cssVars/theme/fallbacks/index.less +7 -2
- package/themes/pharma/cssVars/theme/fallbacks/index.pcss +7 -2
- package/themes/pharma/cssVars/theme/fallbacks/index.scss +10 -5
- package/themes/pharma/cssVars/theme/fallbacks/index.styl +7 -2
- package/themes/pharma/cssVars/theme/index.js +45 -1
- package/themes/pharma/cssVars/theme/index.json +45 -1
- package/themes/pharma/index.css +10 -5
- package/themes/pharma/index.js +14 -1
- package/themes/pharma/index.json +14 -1
- package/themes/pharma/index.less +7 -2
- package/themes/pharma/index.pcss +7 -2
- package/themes/pharma/index.scss +10 -5
- package/themes/pharma/index.styl +7 -2
- package/themes/promo/cssVars/declarations/index.css +13 -4
- package/themes/promo/cssVars/declarations/noColors.css +732 -0
- package/themes/promo/cssVars/declarations/noSizes.css +1 -0
- package/themes/promo/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/promo/cssVars/declarations/onlyVariables.css +6 -1
- package/themes/promo/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/promo/cssVars/declarations/onlyVariablesLocal.css +636 -0
- package/themes/promo/cssVars/theme/fallbacks/index.css +8 -3
- package/themes/promo/cssVars/theme/fallbacks/index.less +6 -1
- package/themes/promo/cssVars/theme/fallbacks/index.pcss +6 -1
- package/themes/promo/cssVars/theme/fallbacks/index.scss +7 -2
- package/themes/promo/cssVars/theme/fallbacks/index.styl +6 -1
- package/themes/promo/cssVars/theme/index.js +45 -1
- package/themes/promo/cssVars/theme/index.json +45 -1
- package/themes/promo/index.css +8 -3
- package/themes/promo/index.js +14 -1
- package/themes/promo/index.json +14 -1
- package/themes/promo/index.less +6 -1
- package/themes/promo/index.pcss +6 -1
- package/themes/promo/index.scss +7 -2
- package/themes/promo/index.styl +6 -1
- package/themes/todo/cssVars/declarations/index.css +13 -4
- package/themes/todo/cssVars/declarations/noColors.css +449 -0
- package/themes/todo/cssVars/declarations/noSizes.css +1 -0
- package/themes/todo/cssVars/declarations/onlyMedia.css +5 -1
- package/themes/todo/cssVars/declarations/onlyVariables.css +6 -1
- package/themes/todo/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/todo/cssVars/declarations/onlyVariablesLocal.css +479 -0
- package/themes/todo/cssVars/theme/fallbacks/index.css +8 -3
- package/themes/todo/cssVars/theme/fallbacks/index.less +6 -1
- package/themes/todo/cssVars/theme/fallbacks/index.pcss +6 -1
- package/themes/todo/cssVars/theme/fallbacks/index.scss +7 -2
- package/themes/todo/cssVars/theme/fallbacks/index.styl +6 -1
- package/themes/todo/cssVars/theme/index.js +45 -1
- package/themes/todo/cssVars/theme/index.json +45 -1
- package/themes/todo/index.css +8 -3
- package/themes/todo/index.js +14 -1
- package/themes/todo/index.json +14 -1
- package/themes/todo/index.less +6 -1
- package/themes/todo/index.pcss +6 -1
- package/themes/todo/index.scss +7 -2
- package/themes/todo/index.styl +6 -1
- package/themes/vkBase/cssVars/declarations/index.css +132 -127
- package/themes/vkBase/cssVars/declarations/noColors.css +332 -0
- package/themes/vkBase/cssVars/declarations/noSizes.css +124 -123
- package/themes/vkBase/cssVars/declarations/onlyColors.css +123 -123
- package/themes/vkBase/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkBase/cssVars/declarations/onlyVariables.css +130 -125
- package/themes/vkBase/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkBase/cssVars/declarations/onlyVariablesLocal.css +378 -0
- package/themes/vkBase/cssVars/theme/fallbacks/index.css +132 -127
- package/themes/vkBase/cssVars/theme/fallbacks/index.less +130 -125
- package/themes/vkBase/cssVars/theme/fallbacks/index.pcss +130 -125
- package/themes/vkBase/cssVars/theme/fallbacks/index.scss +131 -126
- package/themes/vkBase/cssVars/theme/fallbacks/index.styl +130 -125
- package/themes/vkBase/cssVars/theme/index.js +483 -439
- package/themes/vkBase/cssVars/theme/index.json +483 -439
- package/themes/vkBase/index.css +132 -127
- package/themes/vkBase/index.js +194 -181
- package/themes/vkBase/index.json +194 -181
- package/themes/vkBase/index.less +130 -125
- package/themes/vkBase/index.pcss +130 -125
- package/themes/vkBase/index.scss +131 -126
- package/themes/vkBase/index.styl +130 -125
- package/themes/vkBaseDark/cssVars/declarations/index.css +133 -128
- package/themes/vkBaseDark/cssVars/declarations/noColors.css +332 -0
- package/themes/vkBaseDark/cssVars/declarations/noSizes.css +125 -124
- package/themes/vkBaseDark/cssVars/declarations/onlyColors.css +124 -124
- package/themes/vkBaseDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkBaseDark/cssVars/declarations/onlyVariables.css +131 -126
- package/themes/vkBaseDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkBaseDark/cssVars/declarations/onlyVariablesLocal.css +378 -0
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.css +133 -128
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.less +131 -126
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.pcss +131 -126
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.scss +132 -127
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.styl +131 -126
- package/themes/vkBaseDark/cssVars/theme/index.js +496 -452
- package/themes/vkBaseDark/cssVars/theme/index.json +496 -452
- package/themes/vkBaseDark/index.css +133 -128
- package/themes/vkBaseDark/index.js +204 -191
- package/themes/vkBaseDark/index.json +204 -191
- package/themes/vkBaseDark/index.less +131 -126
- package/themes/vkBaseDark/index.pcss +131 -126
- package/themes/vkBaseDark/index.scss +132 -127
- package/themes/vkBaseDark/index.styl +131 -126
- package/themes/vkCom/cssVars/declarations/index.css +133 -128
- package/themes/vkCom/cssVars/declarations/noColors.css +332 -0
- package/themes/vkCom/cssVars/declarations/noSizes.css +124 -123
- package/themes/vkCom/cssVars/declarations/onlyColors.css +123 -123
- package/themes/vkCom/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkCom/cssVars/declarations/onlyVariables.css +131 -126
- package/themes/vkCom/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkCom/cssVars/declarations/onlyVariablesLocal.css +378 -0
- package/themes/vkCom/cssVars/theme/fallbacks/index.css +133 -128
- package/themes/vkCom/cssVars/theme/fallbacks/index.less +131 -126
- package/themes/vkCom/cssVars/theme/fallbacks/index.pcss +131 -126
- package/themes/vkCom/cssVars/theme/fallbacks/index.scss +132 -127
- package/themes/vkCom/cssVars/theme/fallbacks/index.styl +131 -126
- package/themes/vkCom/cssVars/theme/index.js +484 -440
- package/themes/vkCom/cssVars/theme/index.json +484 -440
- package/themes/vkCom/index.css +133 -128
- package/themes/vkCom/index.js +195 -182
- package/themes/vkCom/index.json +195 -182
- package/themes/vkCom/index.less +131 -126
- package/themes/vkCom/index.pcss +131 -126
- package/themes/vkCom/index.scss +132 -127
- package/themes/vkCom/index.styl +131 -126
- package/themes/vkComDark/cssVars/declarations/index.css +670 -0
- package/themes/vkComDark/cssVars/declarations/noColors.css +332 -0
- package/themes/vkComDark/cssVars/declarations/noSizes.css +249 -0
- package/themes/vkComDark/cssVars/declarations/onlyAdaptiveGroups.css +102 -0
- package/themes/vkComDark/cssVars/declarations/onlyColors.css +236 -0
- package/themes/vkComDark/cssVars/declarations/onlyColors.d.ts +3 -0
- package/themes/vkComDark/cssVars/declarations/onlyColors.js +11 -0
- package/themes/vkComDark/cssVars/declarations/onlyVariables.css +378 -0
- package/themes/vkComDark/cssVars/declarations/onlyVariables.d.ts +3 -0
- package/themes/vkComDark/cssVars/declarations/onlyVariables.js +11 -0
- package/themes/vkComDark/cssVars/declarations/onlyVariablesLocal.css +378 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.css +567 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.less +410 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.pcss +411 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.scss +526 -0
- package/themes/vkComDark/cssVars/theme/fallbacks/index.styl +410 -0
- package/themes/vkComDark/cssVars/theme/index.d.ts +4 -0
- package/themes/vkComDark/cssVars/theme/index.js +2270 -0
- package/themes/vkComDark/cssVars/theme/index.json +2267 -0
- package/themes/vkComDark/index.css +567 -0
- package/themes/vkComDark/index.d.ts +4 -0
- package/themes/vkComDark/index.js +670 -0
- package/themes/vkComDark/index.json +667 -0
- package/themes/vkComDark/index.less +410 -0
- package/themes/vkComDark/index.pcss +411 -0
- package/themes/vkComDark/index.scss +526 -0
- package/themes/vkComDark/index.styl +410 -0
- package/themes/vkIOS/cssVars/declarations/index.css +132 -127
- package/themes/vkIOS/cssVars/declarations/noColors.css +332 -0
- package/themes/vkIOS/cssVars/declarations/noSizes.css +124 -123
- package/themes/vkIOS/cssVars/declarations/onlyColors.css +123 -123
- package/themes/vkIOS/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkIOS/cssVars/declarations/onlyVariables.css +130 -125
- package/themes/vkIOS/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkIOS/cssVars/declarations/onlyVariablesLocal.css +378 -0
- package/themes/vkIOS/cssVars/theme/fallbacks/index.css +132 -127
- package/themes/vkIOS/cssVars/theme/fallbacks/index.less +130 -125
- package/themes/vkIOS/cssVars/theme/fallbacks/index.pcss +130 -125
- package/themes/vkIOS/cssVars/theme/fallbacks/index.scss +131 -126
- package/themes/vkIOS/cssVars/theme/fallbacks/index.styl +130 -125
- package/themes/vkIOS/cssVars/theme/index.js +483 -439
- package/themes/vkIOS/cssVars/theme/index.json +483 -439
- package/themes/vkIOS/index.css +132 -127
- package/themes/vkIOS/index.js +194 -181
- package/themes/vkIOS/index.json +194 -181
- package/themes/vkIOS/index.less +130 -125
- package/themes/vkIOS/index.pcss +130 -125
- package/themes/vkIOS/index.scss +131 -126
- package/themes/vkIOS/index.styl +130 -125
- package/themes/vkIOSDark/cssVars/declarations/index.css +670 -0
- package/themes/vkIOSDark/cssVars/declarations/noColors.css +332 -0
- package/themes/vkIOSDark/cssVars/declarations/noSizes.css +249 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyAdaptiveGroups.css +102 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyColors.css +236 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyColors.d.ts +3 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyColors.js +11 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyVariables.css +378 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyVariables.d.ts +3 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyVariables.js +11 -0
- package/themes/vkIOSDark/cssVars/declarations/onlyVariablesLocal.css +378 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.css +567 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.less +410 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.pcss +411 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.scss +526 -0
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.styl +410 -0
- package/themes/vkIOSDark/cssVars/theme/index.d.ts +4 -0
- package/themes/vkIOSDark/cssVars/theme/index.js +2270 -0
- package/themes/vkIOSDark/cssVars/theme/index.json +2267 -0
- package/themes/vkIOSDark/index.css +567 -0
- package/themes/vkIOSDark/index.d.ts +4 -0
- package/themes/vkIOSDark/index.js +670 -0
- package/themes/vkIOSDark/index.json +667 -0
- package/themes/vkIOSDark/index.less +410 -0
- package/themes/vkIOSDark/index.pcss +411 -0
- package/themes/vkIOSDark/index.scss +526 -0
- package/themes/vkIOSDark/index.styl +410 -0
- package/CHANGELOG.md +0 -139
|
@@ -7,212 +7,281 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
var common_tags_1 = require("common-tags");
|
|
8
8
|
var compileStyles_1 = require("./compileStyles");
|
|
9
9
|
var tokenProcessors_1 = require("./helpers/tokenProcessors");
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
styl: common_tags_1.stripIndent(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n\t\t\t$color-accent = blue;\n\t\t\t$color-accent--hover = darkblue;\n\t\t\t$color-accent--active = darkslateblue;\n\t\t\t"], ["\n\t\t\t$color-accent = blue;\n\t\t\t$color-accent--hover = darkblue;\n\t\t\t$color-accent--active = darkslateblue;\n\t\t\t"]))),
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: 'should compile flat class variables',
|
|
30
|
-
descriptionTheme: {
|
|
31
|
-
fontSome: {
|
|
32
|
-
fontSize: '16px',
|
|
33
|
-
lineHeight: '25px',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
result: {
|
|
37
|
-
css: common_tags_1.stripIndent(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n\t\t\t:root {\n\t\t\t\t--vkui--font_some--font_size: 16px;\n\t\t\t\t--vkui--font_some--line_height: 25px;\n\t\t\t}\n\n\t\t\t.vkui--font_some {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tfont-size: var(--vkui--font_some--font_size, 16px);\n\t\t\t\tline-height: 25px;\n\t\t\t\tline-height: var(--vkui--font_some--line_height, 25px);\n\t\t\t}\n\t\t\t"], ["\n\t\t\t:root {\n\t\t\t\t--vkui--font_some--font_size: 16px;\n\t\t\t\t--vkui--font_some--line_height: 25px;\n\t\t\t}\n\n\t\t\t.vkui--font_some {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tfont-size: var(--vkui--font_some--font_size, 16px);\n\t\t\t\tline-height: 25px;\n\t\t\t\tline-height: var(--vkui--font_some--line_height, 25px);\n\t\t\t}\n\t\t\t"]))),
|
|
38
|
-
scss: common_tags_1.stripIndent(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n\t\t\t@mixin font-some() {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 25px;\n\t\t\t}\n\t\t\t$font-some--map: (\n\t\t\t\t'fontSize': 16px,\n\t\t\t\t'lineHeight': 25px,\n\t\t\t);\n\t\t\t"], ["\n\t\t\t@mixin font-some() {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 25px;\n\t\t\t}\n\t\t\t$font-some--map: (\n\t\t\t\t'fontSize': 16px,\n\t\t\t\t'lineHeight': 25px,\n\t\t\t);\n\t\t\t"]))),
|
|
39
|
-
pcss: common_tags_1.stripIndent(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n\t\t\t%font-some {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 25px;\n\t\t\t}\n\t\t\t"], ["\n\t\t\t%font-some {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 25px;\n\t\t\t}\n\t\t\t"]))),
|
|
40
|
-
less: common_tags_1.stripIndent(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n\t\t\t.font-some {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 25px;\n\t\t\t}\n\t\t\t"], ["\n\t\t\t.font-some {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 25px;\n\t\t\t}\n\t\t\t"]))),
|
|
41
|
-
styl: common_tags_1.stripIndent(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n\t\t\tfont-some() {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 25px;\n\t\t\t}\n\t\t\t"], ["\n\t\t\tfont-some() {\n\t\t\t\tfont-size: 16px;\n\t\t\t\tline-height: 25px;\n\t\t\t}\n\t\t\t"]))),
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: 'should compile adaptive class variables',
|
|
46
|
-
descriptionTheme: {
|
|
47
|
-
fontText: {
|
|
48
|
-
regular: {
|
|
49
|
-
fontSize: '15px',
|
|
50
|
-
lineHeight: '20px',
|
|
51
|
-
fontFamily: 'Arial',
|
|
52
|
-
fontWeight: 500,
|
|
10
|
+
var formats = Object.values(tokenProcessors_1.EStyleTypes);
|
|
11
|
+
function runTest(format, testData) {
|
|
12
|
+
var compiled = compileStyles_1.compileStyles(format, testData.descriptionTheme, testData.mode);
|
|
13
|
+
expect(compiled).toBe(testData.result[format]);
|
|
14
|
+
}
|
|
15
|
+
describe('compileStyles', function () {
|
|
16
|
+
test.each(formats)('%s: should compile colors', function (format) {
|
|
17
|
+
runTest(format, {
|
|
18
|
+
descriptionTheme: {
|
|
19
|
+
themeName: 'testTheme',
|
|
20
|
+
colorsScheme: 'light',
|
|
21
|
+
colorAccent: {
|
|
22
|
+
normal: 'blue',
|
|
23
|
+
hover: 'darkblue',
|
|
24
|
+
active: 'darkslateblue',
|
|
53
25
|
},
|
|
54
|
-
|
|
26
|
+
},
|
|
27
|
+
result: {
|
|
28
|
+
css: common_tags_1.stripIndent(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--color_accent: blue;\n\t\t\t\t\t--vkui--color_accent--hover: darkblue;\n\t\t\t\t\t--vkui--color_accent--active: darkslateblue;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--color_accent: blue;\n\t\t\t\t\t--vkui--color_accent--hover: darkblue;\n\t\t\t\t\t--vkui--color_accent--active: darkslateblue;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
29
|
+
scss: common_tags_1.stripIndent(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\t\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t\t$colors-scheme: light;\n\t\t\t\t\t$color-accent: blue;\n\t\t\t\t\t$color-accent--hover: darkblue;\n\t\t\t\t\t$color-accent--active: darkslateblue;\n\t\t\t\t"], ["\n\t\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t\t$colors-scheme: light;\n\t\t\t\t\t$color-accent: blue;\n\t\t\t\t\t$color-accent--hover: darkblue;\n\t\t\t\t\t$color-accent--active: darkslateblue;\n\t\t\t\t"]))),
|
|
30
|
+
pcss: common_tags_1.stripIndent(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t\t--color-accent: blue;\n\t\t\t\t\t--color-accent--hover: darkblue;\n\t\t\t\t\t--color-accent--active: darkslateblue;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t\t--color-accent: blue;\n\t\t\t\t\t--color-accent--hover: darkblue;\n\t\t\t\t\t--color-accent--active: darkslateblue;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
31
|
+
less: common_tags_1.stripIndent(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\t\t\t\t@color-accent: blue;\n\t\t\t\t@color-accent--hover: darkblue;\n\t\t\t\t@color-accent--active: darkslateblue;\n\t\t\t\t"], ["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\t\t\t\t@color-accent: blue;\n\t\t\t\t@color-accent--hover: darkblue;\n\t\t\t\t@color-accent--active: darkslateblue;\n\t\t\t\t"]))),
|
|
32
|
+
styl: common_tags_1.stripIndent(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\t\t\t\t$color-accent = blue;\n\t\t\t\t$color-accent--hover = darkblue;\n\t\t\t\t$color-accent--active = darkslateblue;\n\t\t\t\t"], ["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\t\t\t\t$color-accent = blue;\n\t\t\t\t$color-accent--hover = darkblue;\n\t\t\t\t$color-accent--active = darkslateblue;\n\t\t\t\t"]))),
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
test.each(formats)('%s: should compile flat class variables', function (format) {
|
|
37
|
+
runTest(format, {
|
|
38
|
+
descriptionTheme: {
|
|
39
|
+
themeName: 'testTheme',
|
|
40
|
+
colorsScheme: 'light',
|
|
41
|
+
fontSome: {
|
|
55
42
|
fontSize: '16px',
|
|
56
|
-
lineHeight: '
|
|
43
|
+
lineHeight: '25px',
|
|
57
44
|
},
|
|
58
45
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'should compile flat variables',
|
|
88
|
-
descriptionTheme: {
|
|
89
|
-
opacityDisable: 0.4,
|
|
90
|
-
},
|
|
91
|
-
result: {
|
|
92
|
-
css: common_tags_1.stripIndent(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n\t\t\t:root {\n\t\t\t\t--vkui--opacity_disable: 0.4;\n\t\t\t}\n\t\t\t"], ["\n\t\t\t:root {\n\t\t\t\t--vkui--opacity_disable: 0.4;\n\t\t\t}\n\t\t\t"]))),
|
|
93
|
-
scss: common_tags_1.stripIndent(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n\t\t\t$opacity-disable: 0.4;\n\t\t\t"], ["\n\t\t\t$opacity-disable: 0.4;\n\t\t\t"]))),
|
|
94
|
-
pcss: common_tags_1.stripIndent(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n\t\t\t:root {\n\t\t\t\t--opacity-disable: 0.4;\n\t\t\t}\n\t\t\t"], ["\n\t\t\t:root {\n\t\t\t\t--opacity-disable: 0.4;\n\t\t\t}\n\t\t\t"]))),
|
|
95
|
-
less: common_tags_1.stripIndent(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n\t\t\t@opacity-disable: 0.4;\n\t\t\t"], ["\n\t\t\t@opacity-disable: 0.4;\n\t\t\t"]))),
|
|
96
|
-
styl: common_tags_1.stripIndent(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n\t\t\t$opacity-disable = 0.4;\n\t\t\t"], ["\n\t\t\t$opacity-disable = 0.4;\n\t\t\t"]))),
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: 'should compile media queries',
|
|
101
|
-
descriptionTheme: {
|
|
102
|
-
widthTablet: '(min-width: 768px) and (max-width: 999px)',
|
|
103
|
-
widthToDesktopL: '(max-width: 2199px)',
|
|
104
|
-
},
|
|
105
|
-
result: {
|
|
106
|
-
css: common_tags_1.stripIndent(templateObject_26 || (templateObject_26 = __makeTemplateObject([""], [""]))),
|
|
107
|
-
scss: common_tags_1.stripIndent(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n\t\t\t@mixin media-width-tablet {\n\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { @content; }\n\t\t\t}\n\t\t\t@mixin media-width-to-desktop-l {\n\t\t\t\t@media (max-width: 2199px) { @content; }\n\t\t\t}\n\t\t\t"], ["\n\t\t\t@mixin media-width-tablet {\n\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { @content; }\n\t\t\t}\n\t\t\t@mixin media-width-to-desktop-l {\n\t\t\t\t@media (max-width: 2199px) { @content; }\n\t\t\t}\n\t\t\t"]))),
|
|
108
|
-
pcss: common_tags_1.stripIndent(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n\t\t\t@custom-media --width-tablet (min-width: 768px) and (max-width: 999px);\n\t\t\t@custom-media --width-to-desktop-l (max-width: 2199px);\n\t\t\t"], ["\n\t\t\t@custom-media --width-tablet (min-width: 768px) and (max-width: 999px);\n\t\t\t@custom-media --width-to-desktop-l (max-width: 2199px);\n\t\t\t"]))),
|
|
109
|
-
less: common_tags_1.stripIndent(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n\t\t\t.media-width-tablet(@content) {\n\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { @content; }\n\t\t\t}\n\t\t\t.media-width-to-desktop-l(@content) {\n\t\t\t\t@media (max-width: 2199px) { @content; }\n\t\t\t}\n\t\t\t"], ["\n\t\t\t.media-width-tablet(@content) {\n\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { @content; }\n\t\t\t}\n\t\t\t.media-width-to-desktop-l(@content) {\n\t\t\t\t@media (max-width: 2199px) { @content; }\n\t\t\t}\n\t\t\t"]))),
|
|
110
|
-
styl: common_tags_1.stripIndent(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n\t\t\tmedia-width-tablet(content) {\n\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { content }\n\t\t\t}\n\t\t\tmedia-width-to-desktop-l(content) {\n\t\t\t\t@media (max-width: 2199px) { content }\n\t\t\t}\n\t\t\t"], ["\n\t\t\tmedia-width-tablet(content) {\n\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { content }\n\t\t\t}\n\t\t\tmedia-width-to-desktop-l(content) {\n\t\t\t\t@media (max-width: 2199px) { content }\n\t\t\t}\n\t\t\t"]))),
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
name: 'should compile adaptive class variables with onlyAdaptiveGroups',
|
|
115
|
-
descriptionTheme: {
|
|
116
|
-
fontText: {
|
|
117
|
-
regular: {
|
|
118
|
-
fontSize: '15px',
|
|
119
|
-
lineHeight: '20px',
|
|
120
|
-
fontFamily: 'Arial',
|
|
121
|
-
fontWeight: 500,
|
|
46
|
+
result: {
|
|
47
|
+
css: common_tags_1.stripIndent(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--font_some--font_size: 16px;\n\t\t\t\t\t--vkui--font_some--line_height: 25px;\n\t\t\t\t}\n\n\t\t\t\t.vkui--font_some {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tfont-size: var(--vkui--font_some--font_size, 16px);\n\t\t\t\t\tline-height: 25px;\n\t\t\t\t\tline-height: var(--vkui--font_some--line_height, 25px);\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--font_some--font_size: 16px;\n\t\t\t\t\t--vkui--font_some--line_height: 25px;\n\t\t\t\t}\n\n\t\t\t\t.vkui--font_some {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tfont-size: var(--vkui--font_some--font_size, 16px);\n\t\t\t\t\tline-height: 25px;\n\t\t\t\t\tline-height: var(--vkui--font_some--line_height, 25px);\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
48
|
+
scss: common_tags_1.stripIndent(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\n\n\t\t\t\t@mixin font-some() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 25px;\n\t\t\t\t}\n\t\t\t\t$font-some--map: (\n\t\t\t\t\t'fontSize': 16px,\n\t\t\t\t\t'lineHeight': 25px,\n\t\t\t\t);\n\t\t\t\t"], ["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\n\n\t\t\t\t@mixin font-some() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 25px;\n\t\t\t\t}\n\t\t\t\t$font-some--map: (\n\t\t\t\t\t'fontSize': 16px,\n\t\t\t\t\t'lineHeight': 25px,\n\t\t\t\t);\n\t\t\t\t"]))),
|
|
49
|
+
pcss: common_tags_1.stripIndent(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t}\n\n\t\t\t\t%font-some {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 25px;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t}\n\n\t\t\t\t%font-some {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 25px;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
50
|
+
less: common_tags_1.stripIndent(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\n\n\t\t\t\t.font-some {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 25px;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\n\n\t\t\t\t.font-some {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 25px;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
51
|
+
styl: common_tags_1.stripIndent(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\n\n\t\t\t\tfont-some() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 25px;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\n\n\t\t\t\tfont-some() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 25px;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
test.each(formats)('%s: should compile adaptive class variables', function (f) {
|
|
56
|
+
runTest(f, {
|
|
57
|
+
descriptionTheme: {
|
|
58
|
+
themeName: 'testTheme',
|
|
59
|
+
colorsScheme: 'light',
|
|
60
|
+
fontText: {
|
|
61
|
+
regular: {
|
|
62
|
+
fontSize: '15px',
|
|
63
|
+
lineHeight: '20px',
|
|
64
|
+
fontFamily: 'Arial',
|
|
65
|
+
fontWeight: 500,
|
|
66
|
+
},
|
|
67
|
+
compactX: {
|
|
68
|
+
fontSize: '16px',
|
|
69
|
+
lineHeight: '24px',
|
|
70
|
+
},
|
|
122
71
|
},
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
72
|
+
},
|
|
73
|
+
result: {
|
|
74
|
+
css: common_tags_1.stripIndent(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--font_text--font_size--regular: 15px;\n\t\t\t\t\t--vkui--font_text--line_height--regular: 20px;\n\t\t\t\t\t--vkui--font_text--font_family--regular: Arial;\n\t\t\t\t\t--vkui--font_text--font_weight--regular: 500;\n\t\t\t\t\t--vkui--font_text--font_size--compact_x: 16px;\n\t\t\t\t\t--vkui--font_text--line_height--compact_x: 24px;\n\t\t\t\t}\n\n\t\t\t\t.vkui--font_text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size--regular, 15px);\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height--regular, 20px);\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family--regular, Arial);\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight--regular, 500);\n\t\t\t\t}\n\t\t\t\t.vkui--font_text--compact-x {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size--compact_x, 16px);\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height--compact_x, 24px);\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family--regular, Arial);\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight--regular, 500);\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--font_text--font_size--regular: 15px;\n\t\t\t\t\t--vkui--font_text--line_height--regular: 20px;\n\t\t\t\t\t--vkui--font_text--font_family--regular: Arial;\n\t\t\t\t\t--vkui--font_text--font_weight--regular: 500;\n\t\t\t\t\t--vkui--font_text--font_size--compact_x: 16px;\n\t\t\t\t\t--vkui--font_text--line_height--compact_x: 24px;\n\t\t\t\t}\n\n\t\t\t\t.vkui--font_text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size--regular, 15px);\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height--regular, 20px);\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family--regular, Arial);\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight--regular, 500);\n\t\t\t\t}\n\t\t\t\t.vkui--font_text--compact-x {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size--compact_x, 16px);\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height--compact_x, 24px);\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family--regular, Arial);\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight--regular, 500);\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
75
|
+
scss: common_tags_1.stripIndent(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\n\n\t\t\t\t@mixin font-text--regular() {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t$font-text--regular--map: (\n\t\t\t\t\t'fontSize': 15px,\n\t\t\t\t\t'lineHeight': 20px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t@mixin font-text--compact-x() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t$font-text--regular--map: (\n\t\t\t\t\t'fontSize': 15px,\n\t\t\t\t\t'lineHeight': 20px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t$font-text--compact-x--map: (\n\t\t\t\t\t'fontSize': 16px,\n\t\t\t\t\t'lineHeight': 24px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t"], ["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\n\n\t\t\t\t@mixin font-text--regular() {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t$font-text--regular--map: (\n\t\t\t\t\t'fontSize': 15px,\n\t\t\t\t\t'lineHeight': 20px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t@mixin font-text--compact-x() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t$font-text--regular--map: (\n\t\t\t\t\t'fontSize': 15px,\n\t\t\t\t\t'lineHeight': 20px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t$font-text--compact-x--map: (\n\t\t\t\t\t'fontSize': 16px,\n\t\t\t\t\t'lineHeight': 24px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t"]))),
|
|
76
|
+
pcss: common_tags_1.stripIndent(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t}\n\n\t\t\t\t%font-text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t%font-text--compact-x {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t}\n\n\t\t\t\t%font-text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t%font-text--compact-x {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
77
|
+
less: common_tags_1.stripIndent(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\n\n\t\t\t\t.font-text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t.font-text--compact-x {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\n\n\t\t\t\t.font-text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t.font-text--compact-x {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
78
|
+
styl: common_tags_1.stripIndent(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\n\n\t\t\t\tfont-text--regular() {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\tfont-text--compact-x() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\n\n\t\t\t\tfont-text--regular() {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\tfont-text--compact-x() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
test.each(formats)('%s: should compile adaptive flat variables', function (f) {
|
|
83
|
+
runTest(f, {
|
|
84
|
+
descriptionTheme: {
|
|
85
|
+
themeName: 'testTheme',
|
|
86
|
+
colorsScheme: 'light',
|
|
87
|
+
sizePopupBasePadding: {
|
|
88
|
+
compact: '20px',
|
|
89
|
+
regular: '32px',
|
|
90
|
+
large: '40px',
|
|
91
|
+
largeX: '50px',
|
|
126
92
|
},
|
|
127
93
|
},
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
94
|
+
result: {
|
|
95
|
+
css: common_tags_1.stripIndent(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--size_popup_base_padding--compact: 20px;\n\t\t\t\t\t--vkui--size_popup_base_padding--regular: 32px;\n\t\t\t\t\t--vkui--size_popup_base_padding--large: 40px;\n\t\t\t\t\t--vkui--size_popup_base_padding--large_x: 50px;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--size_popup_base_padding--compact: 20px;\n\t\t\t\t\t--vkui--size_popup_base_padding--regular: 32px;\n\t\t\t\t\t--vkui--size_popup_base_padding--large: 40px;\n\t\t\t\t\t--vkui--size_popup_base_padding--large_x: 50px;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
96
|
+
scss: common_tags_1.stripIndent(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\t\t\t\t$size-popup-base-padding--compact: 20px;\n\t\t\t\t$size-popup-base-padding--regular: 32px;\n\t\t\t\t$size-popup-base-padding--large: 40px;\n\t\t\t\t$size-popup-base-padding--large-x: 50px;\n\t\t\t\t"], ["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\t\t\t\t$size-popup-base-padding--compact: 20px;\n\t\t\t\t$size-popup-base-padding--regular: 32px;\n\t\t\t\t$size-popup-base-padding--large: 40px;\n\t\t\t\t$size-popup-base-padding--large-x: 50px;\n\t\t\t\t"]))),
|
|
97
|
+
pcss: common_tags_1.stripIndent(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t\t--size-popup-base-padding--compact: 20px;\n\t\t\t\t\t--size-popup-base-padding--regular: 32px;\n\t\t\t\t\t--size-popup-base-padding--large: 40px;\n\t\t\t\t\t--size-popup-base-padding--large_x: 50px;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t\t--size-popup-base-padding--compact: 20px;\n\t\t\t\t\t--size-popup-base-padding--regular: 32px;\n\t\t\t\t\t--size-popup-base-padding--large: 40px;\n\t\t\t\t\t--size-popup-base-padding--large_x: 50px;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
98
|
+
less: common_tags_1.stripIndent(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\t\t\t\t@size-popup-base-padding--compact: 20px;\n\t\t\t\t@size-popup-base-padding--regular: 32px;\n\t\t\t\t@size-popup-base-padding--large: 40px;\n\t\t\t\t@size-popup-base-padding--large-x: 50px;\n\t\t\t\t"], ["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\t\t\t\t@size-popup-base-padding--compact: 20px;\n\t\t\t\t@size-popup-base-padding--regular: 32px;\n\t\t\t\t@size-popup-base-padding--large: 40px;\n\t\t\t\t@size-popup-base-padding--large-x: 50px;\n\t\t\t\t"]))),
|
|
99
|
+
styl: common_tags_1.stripIndent(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\t\t\t\t$size-popup-base-padding--compact = 20px;\n\t\t\t\t$size-popup-base-padding--regular = 32px;\n\t\t\t\t$size-popup-base-padding--large = 40px;\n\t\t\t\t$size-popup-base-padding--large-x = 50px;\n\t\t\t\t"], ["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\t\t\t\t$size-popup-base-padding--compact = 20px;\n\t\t\t\t$size-popup-base-padding--regular = 32px;\n\t\t\t\t$size-popup-base-padding--large = 40px;\n\t\t\t\t$size-popup-base-padding--large-x = 50px;\n\t\t\t\t"]))),
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
test.each(formats)('%s: should compile flat variables', function (f) {
|
|
104
|
+
runTest(f, {
|
|
105
|
+
descriptionTheme: {
|
|
106
|
+
themeName: 'testTheme',
|
|
107
|
+
colorsScheme: 'light',
|
|
108
|
+
opacityDisable: 0.4,
|
|
109
|
+
},
|
|
110
|
+
result: {
|
|
111
|
+
css: common_tags_1.stripIndent(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--opacity_disable: 0.4;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--opacity_disable: 0.4;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
112
|
+
scss: common_tags_1.stripIndent(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\t\t\t\t$opacity-disable: 0.4;\n\t\t\t\t"], ["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\t\t\t\t$opacity-disable: 0.4;\n\t\t\t\t"]))),
|
|
113
|
+
pcss: common_tags_1.stripIndent(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t\t--opacity-disable: 0.4;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t\t--opacity-disable: 0.4;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
114
|
+
less: common_tags_1.stripIndent(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\t\t\t\t@opacity-disable: 0.4;\n\t\t\t\t"], ["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\t\t\t\t@opacity-disable: 0.4;\n\t\t\t\t"]))),
|
|
115
|
+
styl: common_tags_1.stripIndent(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\t\t\t\t$opacity-disable = 0.4;\n\t\t\t\t"], ["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\t\t\t\t$opacity-disable = 0.4;\n\t\t\t\t"]))),
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
test.each(formats)('%s: should compile media queries', function (f) {
|
|
120
|
+
runTest(f, {
|
|
121
|
+
descriptionTheme: {
|
|
122
|
+
themeName: 'testTheme',
|
|
123
|
+
colorsScheme: 'light',
|
|
124
|
+
widthTablet: '(min-width: 768px) and (max-width: 999px)',
|
|
125
|
+
widthToDesktopL: '(max-width: 2199px)',
|
|
126
|
+
},
|
|
127
|
+
result: {
|
|
128
|
+
css: common_tags_1.stripIndent(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t}"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t}"]))),
|
|
129
|
+
scss: common_tags_1.stripIndent(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\n\n\t\t\t\t@mixin media-width-tablet {\n\t\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { @content; }\n\t\t\t\t}\n\t\t\t\t@mixin media-width-to-desktop-l {\n\t\t\t\t\t@media (max-width: 2199px) { @content; }\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\n\n\t\t\t\t@mixin media-width-tablet {\n\t\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { @content; }\n\t\t\t\t}\n\t\t\t\t@mixin media-width-to-desktop-l {\n\t\t\t\t\t@media (max-width: 2199px) { @content; }\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
130
|
+
pcss: common_tags_1.stripIndent(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t}\n\n\t\t\t\t@custom-media --width-tablet (min-width: 768px) and (max-width: 999px);\n\t\t\t\t@custom-media --width-to-desktop-l (max-width: 2199px);\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t}\n\n\t\t\t\t@custom-media --width-tablet (min-width: 768px) and (max-width: 999px);\n\t\t\t\t@custom-media --width-to-desktop-l (max-width: 2199px);\n\t\t\t\t"]))),
|
|
131
|
+
less: common_tags_1.stripIndent(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\n\n\t\t\t\t.media-width-tablet(@content) {\n\t\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { @content; }\n\t\t\t\t}\n\t\t\t\t.media-width-to-desktop-l(@content) {\n\t\t\t\t\t@media (max-width: 2199px) { @content; }\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\n\n\t\t\t\t.media-width-tablet(@content) {\n\t\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { @content; }\n\t\t\t\t}\n\t\t\t\t.media-width-to-desktop-l(@content) {\n\t\t\t\t\t@media (max-width: 2199px) { @content; }\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
132
|
+
styl: common_tags_1.stripIndent(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\n\n\t\t\t\tmedia-width-tablet(content) {\n\t\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { content }\n\t\t\t\t}\n\t\t\t\tmedia-width-to-desktop-l(content) {\n\t\t\t\t\t@media (max-width: 2199px) { content }\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\n\n\t\t\t\tmedia-width-tablet(content) {\n\t\t\t\t\t@media (min-width: 768px) and (max-width: 999px) { content }\n\t\t\t\t}\n\t\t\t\tmedia-width-to-desktop-l(content) {\n\t\t\t\t\t@media (max-width: 2199px) { content }\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
test.each(formats)('%s: should compile adaptive class variables with onlyAdaptiveGroups', function (f) {
|
|
137
|
+
runTest(f, {
|
|
138
|
+
descriptionTheme: {
|
|
139
|
+
themeName: 'testTheme',
|
|
140
|
+
colorsScheme: 'light',
|
|
141
|
+
fontText: {
|
|
142
|
+
regular: {
|
|
143
|
+
fontSize: '15px',
|
|
144
|
+
lineHeight: '20px',
|
|
145
|
+
fontFamily: 'Arial',
|
|
146
|
+
fontWeight: 500,
|
|
147
|
+
},
|
|
148
|
+
compact: {
|
|
149
|
+
fontSize: '16px',
|
|
150
|
+
lineHeight: '24px',
|
|
151
|
+
},
|
|
148
152
|
},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
},
|
|
154
|
+
mode: 'onlyAdaptiveGroups',
|
|
155
|
+
result: {
|
|
156
|
+
css: common_tags_1.stripIndent(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n\t\t\t\t.vkui--font_text {\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size);\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height);\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family);\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight);\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t.vkui--font_text {\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size);\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height);\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family);\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight);\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
157
|
+
scss: common_tags_1.stripIndent(templateObject_32 || (templateObject_32 = __makeTemplateObject([""], [""]))),
|
|
158
|
+
pcss: common_tags_1.stripIndent(templateObject_33 || (templateObject_33 = __makeTemplateObject([""], [""]))),
|
|
159
|
+
less: common_tags_1.stripIndent(templateObject_34 || (templateObject_34 = __makeTemplateObject([""], [""]))),
|
|
160
|
+
styl: common_tags_1.stripIndent(templateObject_35 || (templateObject_35 = __makeTemplateObject([""], [""]))),
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
test.each(formats)('%s: should compile adaptive class variables with mode=withAdaptiveGroups', function (f) {
|
|
165
|
+
runTest(f, {
|
|
166
|
+
mode: 'withAdaptiveGroups',
|
|
167
|
+
descriptionTheme: {
|
|
168
|
+
themeName: 'testTheme',
|
|
169
|
+
colorsScheme: 'light',
|
|
170
|
+
fontText: {
|
|
171
|
+
regular: {
|
|
172
|
+
fontSize: '15px',
|
|
173
|
+
lineHeight: '20px',
|
|
174
|
+
fontFamily: 'Arial',
|
|
175
|
+
fontWeight: 500,
|
|
176
|
+
},
|
|
177
|
+
compact: {
|
|
178
|
+
fontSize: '16px',
|
|
179
|
+
lineHeight: '24px',
|
|
180
|
+
},
|
|
152
181
|
},
|
|
153
182
|
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
{
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
]
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
183
|
+
result: {
|
|
184
|
+
css: common_tags_1.stripIndent(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--font_text--font_size--regular: 15px;\n\t\t\t\t\t--vkui--font_text--line_height--regular: 20px;\n\t\t\t\t\t--vkui--font_text--font_family--regular: Arial;\n\t\t\t\t\t--vkui--font_text--font_weight--regular: 500;\n\t\t\t\t\t--vkui--font_text--font_size--compact: 16px;\n\t\t\t\t\t--vkui--font_text--line_height--compact: 24px;\n\t\t\t\t}\n\n\t\t\t\t.vkui--font_text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size--regular, 15px);\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height--regular, 20px);\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family--regular, Arial);\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight--regular, 500);\n\t\t\t\t}\n\t\t\t\t.vkui--font_text {\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size);\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height);\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family);\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight);\n\t\t\t\t}\n\t\t\t\t.vkui--font_text--compact {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size--compact, 16px);\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height--compact, 24px);\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family--regular, Arial);\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight--regular, 500);\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t--vkui--font_text--font_size--regular: 15px;\n\t\t\t\t\t--vkui--font_text--line_height--regular: 20px;\n\t\t\t\t\t--vkui--font_text--font_family--regular: Arial;\n\t\t\t\t\t--vkui--font_text--font_weight--regular: 500;\n\t\t\t\t\t--vkui--font_text--font_size--compact: 16px;\n\t\t\t\t\t--vkui--font_text--line_height--compact: 24px;\n\t\t\t\t}\n\n\t\t\t\t.vkui--font_text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size--regular, 15px);\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height--regular, 20px);\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family--regular, Arial);\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight--regular, 500);\n\t\t\t\t}\n\t\t\t\t.vkui--font_text {\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size);\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height);\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family);\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight);\n\t\t\t\t}\n\t\t\t\t.vkui--font_text--compact {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tfont-size: var(--vkui--font_text--font_size--compact, 16px);\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tline-height: var(--vkui--font_text--line_height--compact, 24px);\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-family: var(--vkui--font_text--font_family--regular, Arial);\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\tfont-weight: var(--vkui--font_text--font_weight--regular, 500);\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
185
|
+
scss: common_tags_1.stripIndent(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\n\n\t\t\t\t@mixin font-text--regular() {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t$font-text--regular--map: (\n\t\t\t\t\t'fontSize': 15px,\n\t\t\t\t\t'lineHeight': 20px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t@mixin font-text--compact() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t$font-text--regular--map: (\n\t\t\t\t\t'fontSize': 15px,\n\t\t\t\t\t'lineHeight': 20px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t$font-text--compact--map: (\n\t\t\t\t\t'fontSize': 16px,\n\t\t\t\t\t'lineHeight': 24px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t"], ["\n\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t$colors-scheme: light;\n\n\n\t\t\t\t@mixin font-text--regular() {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t$font-text--regular--map: (\n\t\t\t\t\t'fontSize': 15px,\n\t\t\t\t\t'lineHeight': 20px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t@mixin font-text--compact() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t$font-text--regular--map: (\n\t\t\t\t\t'fontSize': 15px,\n\t\t\t\t\t'lineHeight': 20px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t$font-text--compact--map: (\n\t\t\t\t\t'fontSize': 16px,\n\t\t\t\t\t'lineHeight': 24px,\n\t\t\t\t\t'fontFamily': Arial,\n\t\t\t\t\t'fontWeight': 500,\n\t\t\t\t);\n\t\t\t\t"]))),
|
|
186
|
+
pcss: common_tags_1.stripIndent(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t}\n\n\t\t\t\t%font-text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t%font-text--compact {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t}\n\n\t\t\t\t%font-text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t%font-text--compact {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
187
|
+
less: common_tags_1.stripIndent(templateObject_39 || (templateObject_39 = __makeTemplateObject(["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\n\n\t\t\t\t.font-text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t.font-text--compact {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t@colors-scheme: light;\n\n\n\t\t\t\t.font-text--regular {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t.font-text--compact {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
188
|
+
styl: common_tags_1.stripIndent(templateObject_40 || (templateObject_40 = __makeTemplateObject(["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\n\n\t\t\t\tfont-text--regular() {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\tfont-text--compact() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t$colors-scheme = light;\n\n\n\t\t\t\tfont-text--regular() {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tline-height: 20px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\tfont-text--compact() {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\tfont-weight: 500;\n\t\t\t\t}\n\t\t\t\t"]))),
|
|
189
|
+
},
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
test.each(formats)('%s: should compile onlyColors', function (f) {
|
|
193
|
+
runTest(f, {
|
|
194
|
+
mode: 'onlyColors',
|
|
195
|
+
descriptionTheme: {
|
|
196
|
+
themeName: 'testTheme',
|
|
197
|
+
colorsScheme: 'light',
|
|
198
|
+
sizeBasePadding: {
|
|
199
|
+
regular: 20,
|
|
200
|
+
},
|
|
201
|
+
colorBackground: {
|
|
202
|
+
normal: '#FFF',
|
|
203
|
+
hover: '#AAA',
|
|
204
|
+
active: '#CCC',
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
result: {
|
|
208
|
+
css: common_tags_1.stripIndent(templateObject_41 || (templateObject_41 = __makeTemplateObject(["\n\t\t\t\t\t:root {\n\t\t\t\t\t\t--vkui--color_background: #FFF;\n\t\t\t\t\t\t--vkui--color_background--hover: #AAA;\n\t\t\t\t\t\t--vkui--color_background--active: #CCC;\n\t\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t\t:root {\n\t\t\t\t\t\t--vkui--color_background: #FFF;\n\t\t\t\t\t\t--vkui--color_background--hover: #AAA;\n\t\t\t\t\t\t--vkui--color_background--active: #CCC;\n\t\t\t\t\t}\n\t\t\t\t"]))),
|
|
209
|
+
scss: common_tags_1.stripIndent(templateObject_42 || (templateObject_42 = __makeTemplateObject(["\n\t\t\t\t\t$color-background: #FFF;\n\t\t\t\t\t$color-background--hover: #AAA;\n\t\t\t\t\t$color-background--active: #CCC;\n\t\t\t\t"], ["\n\t\t\t\t\t$color-background: #FFF;\n\t\t\t\t\t$color-background--hover: #AAA;\n\t\t\t\t\t$color-background--active: #CCC;\n\t\t\t\t"]))),
|
|
210
|
+
pcss: common_tags_1.stripIndent(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--color-background: #FFF;\n\t\t\t\t\t--color-background--hover: #AAA;\n\t\t\t\t\t--color-background--active: #CCC;\n\t\t\t\t}"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--color-background: #FFF;\n\t\t\t\t\t--color-background--hover: #AAA;\n\t\t\t\t\t--color-background--active: #CCC;\n\t\t\t\t}"]))),
|
|
211
|
+
less: common_tags_1.stripIndent(templateObject_44 || (templateObject_44 = __makeTemplateObject(["\n\t\t\t\t\t@color-background: #FFF;\n\t\t\t\t\t@color-background--hover: #AAA;\n\t\t\t\t\t@color-background--active: #CCC;\n\t\t\t\t"], ["\n\t\t\t\t\t@color-background: #FFF;\n\t\t\t\t\t@color-background--hover: #AAA;\n\t\t\t\t\t@color-background--active: #CCC;\n\t\t\t\t"]))),
|
|
212
|
+
styl: common_tags_1.stripIndent(templateObject_45 || (templateObject_45 = __makeTemplateObject(["\n\t\t\t\t\t$color-background = #FFF;\n\t\t\t\t\t$color-background--hover = #AAA;\n\t\t\t\t\t$color-background--active = #CCC;\n\t\t\t\t"], ["\n\t\t\t\t\t$color-background = #FFF;\n\t\t\t\t\t$color-background--hover = #AAA;\n\t\t\t\t\t$color-background--active = #CCC;\n\t\t\t\t"]))),
|
|
213
|
+
},
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
test.each(formats)('%s: should compile noSizes', function (f) {
|
|
217
|
+
runTest(f, {
|
|
218
|
+
mode: 'noSizes',
|
|
219
|
+
descriptionTheme: {
|
|
220
|
+
themeName: 'testTheme',
|
|
221
|
+
colorsScheme: 'light',
|
|
222
|
+
sizeBasePadding: {
|
|
223
|
+
regular: 20,
|
|
224
|
+
},
|
|
225
|
+
colorBackground: {
|
|
226
|
+
normal: '#FFF',
|
|
227
|
+
hover: '#AAA',
|
|
228
|
+
active: '#CCC',
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
result: {
|
|
232
|
+
css: common_tags_1.stripIndent(templateObject_46 || (templateObject_46 = __makeTemplateObject(["\n\t\t\t\t\t:root {\n\t\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t\t--vkui--color_background: #FFF;\n\t\t\t\t\t\t--vkui--color_background--hover: #AAA;\n\t\t\t\t\t\t--vkui--color_background--active: #CCC;\n\t\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t\t:root {\n\t\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t\t--vkui--colors_scheme: light;\n\t\t\t\t\t\t--vkui--color_background: #FFF;\n\t\t\t\t\t\t--vkui--color_background--hover: #AAA;\n\t\t\t\t\t\t--vkui--color_background--active: #CCC;\n\t\t\t\t\t}\n\t\t\t\t"]))),
|
|
233
|
+
scss: common_tags_1.stripIndent(templateObject_47 || (templateObject_47 = __makeTemplateObject(["\n\t\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t\t$colors-scheme: light;\n\t\t\t\t\t$color-background: #FFF;\n\t\t\t\t\t$color-background--hover: #AAA;\n\t\t\t\t\t$color-background--active: #CCC;\n\t\t\t\t"], ["\n\t\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t\t$colors-scheme: light;\n\t\t\t\t\t$color-background: #FFF;\n\t\t\t\t\t$color-background--hover: #AAA;\n\t\t\t\t\t$color-background--active: #CCC;\n\t\t\t\t"]))),
|
|
234
|
+
pcss: common_tags_1.stripIndent(templateObject_48 || (templateObject_48 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t\t--color-background: #FFF;\n\t\t\t\t\t--color-background--hover: #AAA;\n\t\t\t\t\t--color-background--active: #CCC;\n\t\t\t\t}"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--colors-scheme: light;\n\t\t\t\t\t--color-background: #FFF;\n\t\t\t\t\t--color-background--hover: #AAA;\n\t\t\t\t\t--color-background--active: #CCC;\n\t\t\t\t}"]))),
|
|
235
|
+
less: common_tags_1.stripIndent(templateObject_49 || (templateObject_49 = __makeTemplateObject(["\n\t\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t\t@colors-scheme: light;\n\t\t\t\t\t@color-background: #FFF;\n\t\t\t\t\t@color-background--hover: #AAA;\n\t\t\t\t\t@color-background--active: #CCC;\n\t\t\t\t"], ["\n\t\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t\t@colors-scheme: light;\n\t\t\t\t\t@color-background: #FFF;\n\t\t\t\t\t@color-background--hover: #AAA;\n\t\t\t\t\t@color-background--active: #CCC;\n\t\t\t\t"]))),
|
|
236
|
+
styl: common_tags_1.stripIndent(templateObject_50 || (templateObject_50 = __makeTemplateObject(["\n\t\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t\t$colors-scheme = light;\n\t\t\t\t\t$color-background = #FFF;\n\t\t\t\t\t$color-background--hover = #AAA;\n\t\t\t\t\t$color-background--active = #CCC;\n\t\t\t\t"], ["\n\t\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t\t$colors-scheme = light;\n\t\t\t\t\t$color-background = #FFF;\n\t\t\t\t\t$color-background--hover = #AAA;\n\t\t\t\t\t$color-background--active = #CCC;\n\t\t\t\t"]))),
|
|
237
|
+
},
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
test.each(formats)('%s: should compile noColors', function (f) {
|
|
241
|
+
runTest(f, {
|
|
242
|
+
mode: 'noColors',
|
|
243
|
+
descriptionTheme: {
|
|
244
|
+
themeName: 'testTheme',
|
|
245
|
+
colorsScheme: 'light',
|
|
246
|
+
sizeBasePadding: {
|
|
247
|
+
regular: '20px',
|
|
248
|
+
},
|
|
249
|
+
colorBackground: {
|
|
250
|
+
normal: '#FFF',
|
|
251
|
+
hover: '#AAA',
|
|
252
|
+
active: '#CCC',
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
result: {
|
|
256
|
+
css: common_tags_1.stripIndent(templateObject_51 || (templateObject_51 = __makeTemplateObject(["\n\t\t\t\t\t:root {\n\t\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t\t--vkui--size_base_padding--regular: 20px;\n\t\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t\t:root {\n\t\t\t\t\t\t--vkui--theme_name: 'testTheme';\n\t\t\t\t\t\t--vkui--size_base_padding--regular: 20px;\n\t\t\t\t\t}\n\t\t\t\t"]))),
|
|
257
|
+
scss: common_tags_1.stripIndent(templateObject_52 || (templateObject_52 = __makeTemplateObject(["\n\t\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t\t$size-base-padding--regular: 20px;\n\t\t\t\t"], ["\n\t\t\t\t\t$theme-name: 'testTheme';\n\t\t\t\t\t$size-base-padding--regular: 20px;\n\t\t\t\t"]))),
|
|
258
|
+
pcss: common_tags_1.stripIndent(templateObject_53 || (templateObject_53 = __makeTemplateObject(["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--size-base-padding--regular: 20px;\n\t\t\t\t}"], ["\n\t\t\t\t:root {\n\t\t\t\t\t--theme-name: 'testTheme';\n\t\t\t\t\t--size-base-padding--regular: 20px;\n\t\t\t\t}"]))),
|
|
259
|
+
less: common_tags_1.stripIndent(templateObject_54 || (templateObject_54 = __makeTemplateObject(["\n\t\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t\t@size-base-padding--regular: 20px;\n\t\t\t\t"], ["\n\t\t\t\t\t@theme-name: 'testTheme';\n\t\t\t\t\t@size-base-padding--regular: 20px;\n\t\t\t\t"]))),
|
|
260
|
+
styl: common_tags_1.stripIndent(templateObject_55 || (templateObject_55 = __makeTemplateObject(["\n\t\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t\t$size-base-padding--regular = 20px;\n\t\t\t\t"], ["\n\t\t\t\t\t$theme-name = 'testTheme';\n\t\t\t\t\t$size-base-padding--regular = 20px;\n\t\t\t\t"]))),
|
|
261
|
+
},
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
test.each(formats)('%s: customized selector in onlyVariablesLocal', function (f) {
|
|
265
|
+
runTest(f, {
|
|
266
|
+
mode: 'onlyVariablesLocal',
|
|
267
|
+
descriptionTheme: {
|
|
268
|
+
themeName: 'vkIOSDark',
|
|
269
|
+
themeNameBase: 'vkIOS',
|
|
270
|
+
colorsScheme: 'dark',
|
|
271
|
+
colorBackground: {
|
|
272
|
+
normal: '#FFF',
|
|
273
|
+
hover: '#AAA',
|
|
274
|
+
active: '#CCC',
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
result: {
|
|
278
|
+
css: common_tags_1.stripIndent(templateObject_56 || (templateObject_56 = __makeTemplateObject(["\n\t\t\t\t\t.vkui--vkIOS--dark {\n\t\t\t\t\t\t--vkui--theme_name: 'vkIOSDark';\n\t\t\t\t\t\t--vkui--theme_name_base: 'vkIOS';\n\t\t\t\t\t\t--vkui--colors_scheme: dark;\n\t\t\t\t\t\t--vkui--color_background: #FFF;\n\t\t\t\t\t\t--vkui--color_background--hover: #AAA;\n\t\t\t\t\t\t--vkui--color_background--active: #CCC;\n\t\t\t\t\t}\n\t\t\t\t"], ["\n\t\t\t\t\t.vkui--vkIOS--dark {\n\t\t\t\t\t\t--vkui--theme_name: 'vkIOSDark';\n\t\t\t\t\t\t--vkui--theme_name_base: 'vkIOS';\n\t\t\t\t\t\t--vkui--colors_scheme: dark;\n\t\t\t\t\t\t--vkui--color_background: #FFF;\n\t\t\t\t\t\t--vkui--color_background--hover: #AAA;\n\t\t\t\t\t\t--vkui--color_background--active: #CCC;\n\t\t\t\t\t}\n\t\t\t\t"]))),
|
|
279
|
+
scss: common_tags_1.stripIndent(templateObject_57 || (templateObject_57 = __makeTemplateObject(["\n\t\t\t\t\t$theme-name: 'vkIOSDark';\n\t\t\t\t\t$theme-name-base: 'vkIOS';\n\t\t\t\t\t$colors-scheme: dark;\n\t\t\t\t\t$color-background: #FFF;\n\t\t\t\t\t$color-background--hover: #AAA;\n\t\t\t\t\t$color-background--active: #CCC;\n\t\t\t\t"], ["\n\t\t\t\t\t$theme-name: 'vkIOSDark';\n\t\t\t\t\t$theme-name-base: 'vkIOS';\n\t\t\t\t\t$colors-scheme: dark;\n\t\t\t\t\t$color-background: #FFF;\n\t\t\t\t\t$color-background--hover: #AAA;\n\t\t\t\t\t$color-background--active: #CCC;\n\t\t\t\t"]))),
|
|
280
|
+
pcss: common_tags_1.stripIndent(templateObject_58 || (templateObject_58 = __makeTemplateObject(["\n\t\t\t\t.vkui--vkIOS--dark {\n\t\t\t\t\t--theme-name: 'vkIOSDark';\n\t\t\t\t\t--theme-name-base: 'vkIOS';\n\t\t\t\t\t--colors-scheme: dark;\n\t\t\t\t\t--color-background: #FFF;\n\t\t\t\t\t--color-background--hover: #AAA;\n\t\t\t\t\t--color-background--active: #CCC;\n\t\t\t\t}"], ["\n\t\t\t\t.vkui--vkIOS--dark {\n\t\t\t\t\t--theme-name: 'vkIOSDark';\n\t\t\t\t\t--theme-name-base: 'vkIOS';\n\t\t\t\t\t--colors-scheme: dark;\n\t\t\t\t\t--color-background: #FFF;\n\t\t\t\t\t--color-background--hover: #AAA;\n\t\t\t\t\t--color-background--active: #CCC;\n\t\t\t\t}"]))),
|
|
281
|
+
less: common_tags_1.stripIndent(templateObject_59 || (templateObject_59 = __makeTemplateObject(["\n\t\t\t\t\t@theme-name: 'vkIOSDark';\n\t\t\t\t\t@theme-name-base: 'vkIOS';\n\t\t\t\t\t@colors-scheme: dark;\n\t\t\t\t\t@color-background: #FFF;\n\t\t\t\t\t@color-background--hover: #AAA;\n\t\t\t\t\t@color-background--active: #CCC;\n\t\t\t\t"], ["\n\t\t\t\t\t@theme-name: 'vkIOSDark';\n\t\t\t\t\t@theme-name-base: 'vkIOS';\n\t\t\t\t\t@colors-scheme: dark;\n\t\t\t\t\t@color-background: #FFF;\n\t\t\t\t\t@color-background--hover: #AAA;\n\t\t\t\t\t@color-background--active: #CCC;\n\t\t\t\t"]))),
|
|
282
|
+
styl: common_tags_1.stripIndent(templateObject_60 || (templateObject_60 = __makeTemplateObject(["\n\t\t\t\t\t$theme-name = 'vkIOSDark';\n\t\t\t\t\t$theme-name-base = 'vkIOS';\n\t\t\t\t\t$colors-scheme = dark;\n\t\t\t\t\t$color-background = #FFF;\n\t\t\t\t\t$color-background--hover = #AAA;\n\t\t\t\t\t$color-background--active = #CCC;\n\t\t\t\t"], ["\n\t\t\t\t\t$theme-name = 'vkIOSDark';\n\t\t\t\t\t$theme-name-base = 'vkIOS';\n\t\t\t\t\t$colors-scheme = dark;\n\t\t\t\t\t$color-background = #FFF;\n\t\t\t\t\t$color-background--hover = #AAA;\n\t\t\t\t\t$color-background--active = #CCC;\n\t\t\t\t"]))),
|
|
283
|
+
},
|
|
215
284
|
});
|
|
216
285
|
});
|
|
217
286
|
});
|
|
218
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49, templateObject_50;
|
|
287
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49, templateObject_50, templateObject_51, templateObject_52, templateObject_53, templateObject_54, templateObject_55, templateObject_56, templateObject_57, templateObject_58, templateObject_59, templateObject_60;
|