@vkontakte/vkui-tokens 4.2.0 → 4.3.1-dev-d4a11c.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/compilers/styles/compileStyles.d.ts +1 -1
- package/build/expandTheme.d.ts +8 -7
- package/build/helpers/tokenHelpers.d.ts +4 -0
- package/build/helpers/tokenHelpers.js +14 -0
- package/build/helpers/tokenHelpers.test.d.ts +1 -0
- package/build/helpers/tokenHelpers.test.js +20 -0
- package/build/themeProcessors/extractGeneralTokens/extractGeneralTokens.js +9 -0
- package/build/themeProcessors/extractVarsNames/extractVarsNames.js +2 -1
- package/interfaces/general/index.d.ts +3 -2
- package/interfaces/general/tools/tokenValue.d.ts +8 -0
- package/interfaces/general/tools/tokenValue.js +2 -0
- package/interfaces/general/typography/index.d.ts +7 -0
- package/interfaces/themes/calendar/index.d.ts +4 -7
- package/package.json +1 -1
- package/themeDescriptions/base/paradigm.js +55 -24
- package/themeDescriptions/base/vk.js +54 -22
- package/themes/calendar/cssVars/declarations/index.css +936 -443
- package/themes/calendar/cssVars/declarations/noColors.css +464 -230
- package/themes/calendar/cssVars/declarations/noSizes.css +10 -7
- package/themes/calendar/cssVars/declarations/onlyAdaptiveGroups.css +48 -55
- package/themes/calendar/cssVars/declarations/onlyColors.css +6 -3
- package/themes/calendar/cssVars/declarations/onlyColors.js +2 -2
- package/themes/calendar/cssVars/declarations/onlyMedia.css +410 -147
- package/themes/calendar/cssVars/declarations/onlyVariables.css +158 -93
- package/themes/calendar/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/calendar/cssVars/declarations/onlyVariablesLocal.css +158 -93
- package/themes/calendar/cssVars/theme/fallbacks/index.css +503 -266
- package/themes/calendar/cssVars/theme/fallbacks/index.less +216 -111
- package/themes/calendar/cssVars/theme/fallbacks/index.pcss +216 -111
- package/themes/calendar/cssVars/theme/fallbacks/index.scss +551 -235
- package/themes/calendar/cssVars/theme/fallbacks/index.styl +216 -111
- package/themes/calendar/cssVars/theme/index.js +638 -368
- package/themes/calendar/cssVars/theme/index.json +638 -368
- package/themes/calendar/index.css +470 -233
- package/themes/calendar/index.js +205 -108
- package/themes/calendar/index.json +205 -108
- package/themes/calendar/index.less +178 -73
- package/themes/calendar/index.pcss +178 -73
- package/themes/calendar/index.scss +461 -145
- package/themes/calendar/index.styl +178 -73
- package/themes/calendarDark/cssVars/declarations/index.css +936 -443
- package/themes/calendarDark/cssVars/declarations/noColors.css +464 -230
- package/themes/calendarDark/cssVars/declarations/noSizes.css +10 -7
- package/themes/calendarDark/cssVars/declarations/onlyAdaptiveGroups.css +48 -55
- package/themes/calendarDark/cssVars/declarations/onlyColors.css +6 -3
- package/themes/calendarDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/calendarDark/cssVars/declarations/onlyMedia.css +410 -147
- package/themes/calendarDark/cssVars/declarations/onlyVariables.css +158 -93
- package/themes/calendarDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/calendarDark/cssVars/declarations/onlyVariablesLocal.css +158 -93
- package/themes/calendarDark/cssVars/theme/fallbacks/index.css +503 -266
- package/themes/calendarDark/cssVars/theme/fallbacks/index.less +216 -111
- package/themes/calendarDark/cssVars/theme/fallbacks/index.pcss +216 -111
- package/themes/calendarDark/cssVars/theme/fallbacks/index.scss +551 -235
- package/themes/calendarDark/cssVars/theme/fallbacks/index.styl +216 -111
- package/themes/calendarDark/cssVars/theme/index.js +638 -368
- package/themes/calendarDark/cssVars/theme/index.json +638 -368
- package/themes/calendarDark/index.css +470 -233
- package/themes/calendarDark/index.js +205 -108
- package/themes/calendarDark/index.json +205 -108
- package/themes/calendarDark/index.less +178 -73
- package/themes/calendarDark/index.pcss +178 -73
- package/themes/calendarDark/index.scss +461 -145
- package/themes/calendarDark/index.styl +178 -73
- package/themes/calls/cssVars/declarations/index.css +158 -26
- package/themes/calls/cssVars/declarations/noColors.css +91 -13
- package/themes/calls/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/calls/cssVars/declarations/onlyMedia.css +44 -8
- package/themes/calls/cssVars/declarations/onlyVariables.css +26 -8
- package/themes/calls/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/calls/cssVars/declarations/onlyVariablesLocal.css +26 -8
- package/themes/calls/cssVars/theme/fallbacks/index.css +95 -17
- package/themes/calls/cssVars/theme/fallbacks/index.less +45 -9
- package/themes/calls/cssVars/theme/fallbacks/index.pcss +45 -9
- package/themes/calls/cssVars/theme/fallbacks/index.scss +104 -14
- package/themes/calls/cssVars/theme/fallbacks/index.styl +45 -9
- package/themes/calls/cssVars/theme/index.js +165 -21
- package/themes/calls/cssVars/theme/index.json +165 -21
- package/themes/calls/index.css +91 -13
- package/themes/calls/index.js +41 -5
- package/themes/calls/index.json +41 -5
- package/themes/calls/index.less +41 -5
- package/themes/calls/index.pcss +41 -5
- package/themes/calls/index.scss +96 -6
- package/themes/calls/index.styl +41 -5
- package/themes/cloud/cssVars/declarations/index.css +208 -76
- package/themes/cloud/cssVars/declarations/noColors.css +142 -64
- package/themes/cloud/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/cloud/cssVars/declarations/onlyMedia.css +43 -7
- package/themes/cloud/cssVars/declarations/onlyVariables.css +43 -25
- package/themes/cloud/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/cloud/cssVars/declarations/onlyVariablesLocal.css +43 -25
- package/themes/cloud/cssVars/theme/fallbacks/index.css +146 -68
- package/themes/cloud/cssVars/theme/fallbacks/index.less +62 -26
- package/themes/cloud/cssVars/theme/fallbacks/index.pcss +62 -26
- package/themes/cloud/cssVars/theme/fallbacks/index.scss +145 -55
- package/themes/cloud/cssVars/theme/fallbacks/index.styl +62 -26
- package/themes/cloud/cssVars/theme/index.js +182 -38
- package/themes/cloud/cssVars/theme/index.json +182 -38
- package/themes/cloud/index.css +142 -64
- package/themes/cloud/index.js +58 -22
- package/themes/cloud/index.json +58 -22
- package/themes/cloud/index.less +58 -22
- package/themes/cloud/index.pcss +58 -22
- package/themes/cloud/index.scss +137 -47
- package/themes/cloud/index.styl +58 -22
- package/themes/home/cssVars/declarations/index.css +209 -37
- package/themes/home/cssVars/declarations/noColors.css +118 -16
- package/themes/home/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/home/cssVars/declarations/onlyMedia.css +68 -16
- package/themes/home/cssVars/declarations/onlyVariables.css +31 -9
- package/themes/home/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/home/cssVars/declarations/onlyVariablesLocal.css +31 -9
- package/themes/home/cssVars/theme/fallbacks/index.css +122 -20
- package/themes/home/cssVars/theme/fallbacks/index.less +58 -10
- package/themes/home/cssVars/theme/fallbacks/index.pcss +58 -10
- package/themes/home/cssVars/theme/fallbacks/index.scss +142 -16
- package/themes/home/cssVars/theme/fallbacks/index.styl +58 -10
- package/themes/home/cssVars/theme/index.js +186 -22
- package/themes/home/cssVars/theme/index.json +186 -22
- package/themes/home/index.css +118 -16
- package/themes/home/index.js +49 -5
- package/themes/home/index.json +49 -5
- package/themes/home/index.less +53 -5
- package/themes/home/index.pcss +53 -5
- package/themes/home/index.scss +132 -6
- package/themes/home/index.styl +53 -5
- package/themes/homeDark/cssVars/declarations/index.css +209 -37
- package/themes/homeDark/cssVars/declarations/noColors.css +118 -16
- package/themes/homeDark/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/homeDark/cssVars/declarations/onlyMedia.css +68 -16
- package/themes/homeDark/cssVars/declarations/onlyVariables.css +31 -9
- package/themes/homeDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/homeDark/cssVars/declarations/onlyVariablesLocal.css +31 -9
- package/themes/homeDark/cssVars/theme/fallbacks/index.css +122 -20
- package/themes/homeDark/cssVars/theme/fallbacks/index.less +58 -10
- package/themes/homeDark/cssVars/theme/fallbacks/index.pcss +58 -10
- package/themes/homeDark/cssVars/theme/fallbacks/index.scss +142 -16
- package/themes/homeDark/cssVars/theme/fallbacks/index.styl +58 -10
- package/themes/homeDark/cssVars/theme/index.js +186 -22
- package/themes/homeDark/cssVars/theme/index.json +186 -22
- package/themes/homeDark/index.css +118 -16
- package/themes/homeDark/index.js +49 -5
- package/themes/homeDark/index.json +49 -5
- package/themes/homeDark/index.less +53 -5
- package/themes/homeDark/index.pcss +53 -5
- package/themes/homeDark/index.scss +132 -6
- package/themes/homeDark/index.styl +53 -5
- package/themes/media/cssVars/declarations/index.css +190 -28
- package/themes/media/cssVars/declarations/noColors.css +107 -15
- package/themes/media/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/media/cssVars/declarations/onlyMedia.css +60 -8
- package/themes/media/cssVars/declarations/onlyVariables.css +27 -5
- package/themes/media/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/media/cssVars/declarations/onlyVariablesLocal.css +27 -5
- package/themes/media/cssVars/theme/fallbacks/index.css +112 -20
- package/themes/media/cssVars/theme/fallbacks/index.less +50 -8
- package/themes/media/cssVars/theme/fallbacks/index.pcss +50 -8
- package/themes/media/cssVars/theme/fallbacks/index.scss +124 -16
- package/themes/media/cssVars/theme/fallbacks/index.styl +50 -8
- package/themes/media/cssVars/theme/index.js +180 -18
- package/themes/media/cssVars/theme/index.json +180 -18
- package/themes/media/index.css +107 -15
- package/themes/media/index.js +43 -1
- package/themes/media/index.json +43 -1
- package/themes/media/index.less +44 -2
- package/themes/media/index.pcss +44 -2
- package/themes/media/index.scss +112 -4
- package/themes/media/index.styl +44 -2
- package/themes/mediaDark/cssVars/declarations/index.css +190 -28
- package/themes/mediaDark/cssVars/declarations/noColors.css +107 -15
- package/themes/mediaDark/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/mediaDark/cssVars/declarations/onlyMedia.css +60 -8
- package/themes/mediaDark/cssVars/declarations/onlyVariables.css +27 -5
- package/themes/mediaDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/mediaDark/cssVars/declarations/onlyVariablesLocal.css +27 -5
- package/themes/mediaDark/cssVars/theme/fallbacks/index.css +112 -20
- package/themes/mediaDark/cssVars/theme/fallbacks/index.less +50 -8
- package/themes/mediaDark/cssVars/theme/fallbacks/index.pcss +50 -8
- package/themes/mediaDark/cssVars/theme/fallbacks/index.scss +124 -16
- package/themes/mediaDark/cssVars/theme/fallbacks/index.styl +50 -8
- package/themes/mediaDark/cssVars/theme/index.js +180 -18
- package/themes/mediaDark/cssVars/theme/index.json +180 -18
- package/themes/mediaDark/index.css +107 -15
- package/themes/mediaDark/index.js +43 -1
- package/themes/mediaDark/index.json +43 -1
- package/themes/mediaDark/index.less +44 -2
- package/themes/mediaDark/index.pcss +44 -2
- package/themes/mediaDark/index.scss +112 -4
- package/themes/mediaDark/index.styl +44 -2
- package/themes/mycom/cssVars/declarations/index.css +190 -28
- package/themes/mycom/cssVars/declarations/noColors.css +107 -15
- package/themes/mycom/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/mycom/cssVars/declarations/onlyMedia.css +60 -8
- package/themes/mycom/cssVars/declarations/onlyVariables.css +27 -5
- package/themes/mycom/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/mycom/cssVars/declarations/onlyVariablesLocal.css +27 -5
- package/themes/mycom/cssVars/theme/fallbacks/index.css +112 -20
- package/themes/mycom/cssVars/theme/fallbacks/index.less +50 -8
- package/themes/mycom/cssVars/theme/fallbacks/index.pcss +50 -8
- package/themes/mycom/cssVars/theme/fallbacks/index.scss +124 -16
- package/themes/mycom/cssVars/theme/fallbacks/index.styl +50 -8
- package/themes/mycom/cssVars/theme/index.js +180 -18
- package/themes/mycom/cssVars/theme/index.json +180 -18
- package/themes/mycom/index.css +107 -15
- package/themes/mycom/index.js +43 -1
- package/themes/mycom/index.json +43 -1
- package/themes/mycom/index.less +44 -2
- package/themes/mycom/index.pcss +44 -2
- package/themes/mycom/index.scss +112 -4
- package/themes/mycom/index.styl +44 -2
- package/themes/octavius/cssVars/declarations/index.css +209 -37
- package/themes/octavius/cssVars/declarations/noColors.css +118 -16
- package/themes/octavius/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/octavius/cssVars/declarations/onlyMedia.css +68 -16
- package/themes/octavius/cssVars/declarations/onlyVariables.css +31 -9
- package/themes/octavius/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octavius/cssVars/declarations/onlyVariablesLocal.css +31 -9
- package/themes/octavius/cssVars/theme/fallbacks/index.css +122 -20
- package/themes/octavius/cssVars/theme/fallbacks/index.less +58 -10
- package/themes/octavius/cssVars/theme/fallbacks/index.pcss +58 -10
- package/themes/octavius/cssVars/theme/fallbacks/index.scss +142 -16
- package/themes/octavius/cssVars/theme/fallbacks/index.styl +58 -10
- package/themes/octavius/cssVars/theme/index.js +186 -22
- package/themes/octavius/cssVars/theme/index.json +186 -22
- package/themes/octavius/index.css +118 -16
- package/themes/octavius/index.js +49 -5
- package/themes/octavius/index.json +49 -5
- package/themes/octavius/index.less +53 -5
- package/themes/octavius/index.pcss +53 -5
- package/themes/octavius/index.scss +132 -6
- package/themes/octavius/index.styl +53 -5
- package/themes/octaviusCompact/cssVars/declarations/index.css +210 -38
- package/themes/octaviusCompact/cssVars/declarations/noColors.css +115 -13
- package/themes/octaviusCompact/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/octaviusCompact/cssVars/declarations/onlyMedia.css +68 -16
- package/themes/octaviusCompact/cssVars/declarations/onlyVariables.css +30 -8
- package/themes/octaviusCompact/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusCompact/cssVars/declarations/onlyVariablesLocal.css +30 -8
- package/themes/octaviusCompact/cssVars/theme/fallbacks/index.css +119 -17
- package/themes/octaviusCompact/cssVars/theme/fallbacks/index.less +57 -9
- package/themes/octaviusCompact/cssVars/theme/fallbacks/index.pcss +57 -9
- package/themes/octaviusCompact/cssVars/theme/fallbacks/index.scss +140 -14
- package/themes/octaviusCompact/cssVars/theme/fallbacks/index.styl +57 -9
- package/themes/octaviusCompact/cssVars/theme/index.js +185 -21
- package/themes/octaviusCompact/cssVars/theme/index.json +185 -21
- package/themes/octaviusCompact/index.css +115 -13
- package/themes/octaviusCompact/index.js +49 -5
- package/themes/octaviusCompact/index.json +49 -5
- package/themes/octaviusCompact/index.less +53 -5
- package/themes/octaviusCompact/index.pcss +53 -5
- package/themes/octaviusCompact/index.scss +132 -6
- package/themes/octaviusCompact/index.styl +53 -5
- package/themes/octaviusCompactDark/cssVars/declarations/index.css +210 -38
- package/themes/octaviusCompactDark/cssVars/declarations/noColors.css +115 -13
- package/themes/octaviusCompactDark/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/octaviusCompactDark/cssVars/declarations/onlyMedia.css +68 -16
- package/themes/octaviusCompactDark/cssVars/declarations/onlyVariables.css +30 -8
- package/themes/octaviusCompactDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusCompactDark/cssVars/declarations/onlyVariablesLocal.css +30 -8
- package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.css +119 -17
- package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.less +57 -9
- package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.pcss +57 -9
- package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.scss +140 -14
- package/themes/octaviusCompactDark/cssVars/theme/fallbacks/index.styl +57 -9
- package/themes/octaviusCompactDark/cssVars/theme/index.js +185 -21
- package/themes/octaviusCompactDark/cssVars/theme/index.json +185 -21
- package/themes/octaviusCompactDark/index.css +115 -13
- package/themes/octaviusCompactDark/index.js +49 -5
- package/themes/octaviusCompactDark/index.json +49 -5
- package/themes/octaviusCompactDark/index.less +53 -5
- package/themes/octaviusCompactDark/index.pcss +53 -5
- package/themes/octaviusCompactDark/index.scss +132 -6
- package/themes/octaviusCompactDark/index.styl +53 -5
- package/themes/octaviusDark/cssVars/declarations/index.css +209 -37
- package/themes/octaviusDark/cssVars/declarations/noColors.css +118 -16
- package/themes/octaviusDark/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/octaviusDark/cssVars/declarations/onlyMedia.css +68 -16
- package/themes/octaviusDark/cssVars/declarations/onlyVariables.css +31 -9
- package/themes/octaviusDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusDark/cssVars/declarations/onlyVariablesLocal.css +31 -9
- package/themes/octaviusDark/cssVars/theme/fallbacks/index.css +122 -20
- package/themes/octaviusDark/cssVars/theme/fallbacks/index.less +58 -10
- package/themes/octaviusDark/cssVars/theme/fallbacks/index.pcss +58 -10
- package/themes/octaviusDark/cssVars/theme/fallbacks/index.scss +142 -16
- package/themes/octaviusDark/cssVars/theme/fallbacks/index.styl +58 -10
- package/themes/octaviusDark/cssVars/theme/index.js +186 -22
- package/themes/octaviusDark/cssVars/theme/index.json +186 -22
- package/themes/octaviusDark/index.css +118 -16
- package/themes/octaviusDark/index.js +49 -5
- package/themes/octaviusDark/index.json +49 -5
- package/themes/octaviusDark/index.less +53 -5
- package/themes/octaviusDark/index.pcss +53 -5
- package/themes/octaviusDark/index.scss +132 -6
- package/themes/octaviusDark/index.styl +53 -5
- package/themes/octaviusVK/cssVars/declarations/index.css +131 -34
- package/themes/octaviusVK/cssVars/declarations/noColors.css +75 -18
- package/themes/octaviusVK/cssVars/declarations/onlyAdaptiveGroups.css +25 -6
- package/themes/octaviusVK/cssVars/declarations/onlyMedia.css +31 -10
- package/themes/octaviusVK/cssVars/declarations/onlyVariables.css +25 -10
- package/themes/octaviusVK/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusVK/cssVars/declarations/onlyVariablesLocal.css +25 -10
- package/themes/octaviusVK/cssVars/theme/fallbacks/index.css +80 -23
- package/themes/octaviusVK/cssVars/theme/fallbacks/index.less +36 -11
- package/themes/octaviusVK/cssVars/theme/fallbacks/index.pcss +36 -11
- package/themes/octaviusVK/cssVars/theme/fallbacks/index.scss +74 -18
- package/themes/octaviusVK/cssVars/theme/fallbacks/index.styl +36 -11
- package/themes/octaviusVK/cssVars/theme/index.js +158 -26
- package/themes/octaviusVK/cssVars/theme/index.json +158 -26
- package/themes/octaviusVK/index.css +75 -18
- package/themes/octaviusVK/index.js +35 -6
- package/themes/octaviusVK/index.json +35 -6
- package/themes/octaviusVK/index.less +31 -6
- package/themes/octaviusVK/index.pcss +31 -6
- package/themes/octaviusVK/index.scss +64 -8
- package/themes/octaviusVK/index.styl +31 -6
- package/themes/octaviusVKDark/cssVars/declarations/index.css +131 -34
- package/themes/octaviusVKDark/cssVars/declarations/noColors.css +75 -18
- package/themes/octaviusVKDark/cssVars/declarations/onlyAdaptiveGroups.css +25 -6
- package/themes/octaviusVKDark/cssVars/declarations/onlyMedia.css +31 -10
- package/themes/octaviusVKDark/cssVars/declarations/onlyVariables.css +25 -10
- package/themes/octaviusVKDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusVKDark/cssVars/declarations/onlyVariablesLocal.css +25 -10
- package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.css +80 -23
- package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.less +36 -11
- package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.pcss +36 -11
- package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.scss +74 -18
- package/themes/octaviusVKDark/cssVars/theme/fallbacks/index.styl +36 -11
- package/themes/octaviusVKDark/cssVars/theme/index.js +158 -26
- package/themes/octaviusVKDark/cssVars/theme/index.json +158 -26
- package/themes/octaviusVKDark/index.css +75 -18
- package/themes/octaviusVKDark/index.js +35 -6
- package/themes/octaviusVKDark/index.json +35 -6
- package/themes/octaviusVKDark/index.less +31 -6
- package/themes/octaviusVKDark/index.pcss +31 -6
- package/themes/octaviusVKDark/index.scss +64 -8
- package/themes/octaviusVKDark/index.styl +31 -6
- package/themes/octaviusWhite/cssVars/declarations/index.css +209 -37
- package/themes/octaviusWhite/cssVars/declarations/noColors.css +118 -16
- package/themes/octaviusWhite/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/octaviusWhite/cssVars/declarations/onlyMedia.css +68 -16
- package/themes/octaviusWhite/cssVars/declarations/onlyVariables.css +31 -9
- package/themes/octaviusWhite/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/octaviusWhite/cssVars/declarations/onlyVariablesLocal.css +31 -9
- package/themes/octaviusWhite/cssVars/theme/fallbacks/index.css +122 -20
- package/themes/octaviusWhite/cssVars/theme/fallbacks/index.less +58 -10
- package/themes/octaviusWhite/cssVars/theme/fallbacks/index.pcss +58 -10
- package/themes/octaviusWhite/cssVars/theme/fallbacks/index.scss +142 -16
- package/themes/octaviusWhite/cssVars/theme/fallbacks/index.styl +58 -10
- package/themes/octaviusWhite/cssVars/theme/index.js +186 -22
- package/themes/octaviusWhite/cssVars/theme/index.json +186 -22
- package/themes/octaviusWhite/index.css +118 -16
- package/themes/octaviusWhite/index.js +49 -5
- package/themes/octaviusWhite/index.json +49 -5
- package/themes/octaviusWhite/index.less +53 -5
- package/themes/octaviusWhite/index.pcss +53 -5
- package/themes/octaviusWhite/index.scss +132 -6
- package/themes/octaviusWhite/index.styl +53 -5
- package/themes/otvet/cssVars/declarations/index.css +98 -26
- package/themes/otvet/cssVars/declarations/noColors.css +58 -16
- package/themes/otvet/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/otvet/cssVars/declarations/onlyMedia.css +17 -5
- package/themes/otvet/cssVars/declarations/onlyVariables.css +21 -9
- package/themes/otvet/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/otvet/cssVars/declarations/onlyVariablesLocal.css +21 -9
- package/themes/otvet/cssVars/theme/fallbacks/index.css +62 -20
- package/themes/otvet/cssVars/theme/fallbacks/index.less +28 -10
- package/themes/otvet/cssVars/theme/fallbacks/index.pcss +28 -10
- package/themes/otvet/cssVars/theme/fallbacks/index.scss +52 -16
- package/themes/otvet/cssVars/theme/fallbacks/index.styl +28 -10
- package/themes/otvet/cssVars/theme/index.js +136 -22
- package/themes/otvet/cssVars/theme/index.json +136 -22
- package/themes/otvet/index.css +58 -16
- package/themes/otvet/index.js +29 -5
- package/themes/otvet/index.json +29 -5
- package/themes/otvet/index.less +23 -5
- package/themes/otvet/index.pcss +23 -5
- package/themes/otvet/index.scss +43 -7
- package/themes/otvet/index.styl +23 -5
- package/themes/otvetDark/cssVars/declarations/index.css +98 -26
- package/themes/otvetDark/cssVars/declarations/noColors.css +58 -16
- package/themes/otvetDark/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/otvetDark/cssVars/declarations/onlyMedia.css +17 -5
- package/themes/otvetDark/cssVars/declarations/onlyVariables.css +21 -9
- package/themes/otvetDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/otvetDark/cssVars/declarations/onlyVariablesLocal.css +21 -9
- package/themes/otvetDark/cssVars/theme/fallbacks/index.css +62 -20
- package/themes/otvetDark/cssVars/theme/fallbacks/index.less +28 -10
- package/themes/otvetDark/cssVars/theme/fallbacks/index.pcss +28 -10
- package/themes/otvetDark/cssVars/theme/fallbacks/index.scss +52 -16
- package/themes/otvetDark/cssVars/theme/fallbacks/index.styl +28 -10
- package/themes/otvetDark/cssVars/theme/index.js +136 -22
- package/themes/otvetDark/cssVars/theme/index.json +136 -22
- package/themes/otvetDark/index.css +58 -16
- package/themes/otvetDark/index.js +29 -5
- package/themes/otvetDark/index.json +29 -5
- package/themes/otvetDark/index.less +23 -5
- package/themes/otvetDark/index.pcss +23 -5
- package/themes/otvetDark/index.scss +43 -7
- package/themes/otvetDark/index.styl +23 -5
- package/themes/paradigmBase/cssVars/declarations/index.css +209 -37
- package/themes/paradigmBase/cssVars/declarations/noColors.css +118 -16
- package/themes/paradigmBase/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/paradigmBase/cssVars/declarations/onlyMedia.css +68 -16
- package/themes/paradigmBase/cssVars/declarations/onlyVariables.css +31 -9
- package/themes/paradigmBase/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/paradigmBase/cssVars/declarations/onlyVariablesLocal.css +31 -9
- package/themes/paradigmBase/cssVars/theme/fallbacks/index.css +122 -20
- package/themes/paradigmBase/cssVars/theme/fallbacks/index.less +58 -10
- package/themes/paradigmBase/cssVars/theme/fallbacks/index.pcss +58 -10
- package/themes/paradigmBase/cssVars/theme/fallbacks/index.scss +142 -16
- package/themes/paradigmBase/cssVars/theme/fallbacks/index.styl +58 -10
- package/themes/paradigmBase/cssVars/theme/index.js +186 -22
- package/themes/paradigmBase/cssVars/theme/index.json +186 -22
- package/themes/paradigmBase/index.css +118 -16
- package/themes/paradigmBase/index.js +49 -5
- package/themes/paradigmBase/index.json +49 -5
- package/themes/paradigmBase/index.less +53 -5
- package/themes/paradigmBase/index.pcss +53 -5
- package/themes/paradigmBase/index.scss +132 -6
- package/themes/paradigmBase/index.styl +53 -5
- package/themes/paradigmBaseDark/cssVars/declarations/index.css +209 -37
- package/themes/paradigmBaseDark/cssVars/declarations/noColors.css +118 -16
- package/themes/paradigmBaseDark/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/paradigmBaseDark/cssVars/declarations/onlyMedia.css +68 -16
- package/themes/paradigmBaseDark/cssVars/declarations/onlyVariables.css +31 -9
- package/themes/paradigmBaseDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/paradigmBaseDark/cssVars/declarations/onlyVariablesLocal.css +31 -9
- package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.css +122 -20
- package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.less +58 -10
- package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.pcss +58 -10
- package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.scss +142 -16
- package/themes/paradigmBaseDark/cssVars/theme/fallbacks/index.styl +58 -10
- package/themes/paradigmBaseDark/cssVars/theme/index.js +186 -22
- package/themes/paradigmBaseDark/cssVars/theme/index.json +186 -22
- package/themes/paradigmBaseDark/index.css +118 -16
- package/themes/paradigmBaseDark/index.js +49 -5
- package/themes/paradigmBaseDark/index.json +49 -5
- package/themes/paradigmBaseDark/index.less +53 -5
- package/themes/paradigmBaseDark/index.pcss +53 -5
- package/themes/paradigmBaseDark/index.scss +132 -6
- package/themes/paradigmBaseDark/index.styl +53 -5
- package/themes/pharma/cssVars/declarations/index.css +190 -28
- package/themes/pharma/cssVars/declarations/noColors.css +107 -15
- package/themes/pharma/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/pharma/cssVars/declarations/onlyMedia.css +60 -8
- package/themes/pharma/cssVars/declarations/onlyVariables.css +27 -5
- package/themes/pharma/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/pharma/cssVars/declarations/onlyVariablesLocal.css +27 -5
- package/themes/pharma/cssVars/theme/fallbacks/index.css +112 -20
- package/themes/pharma/cssVars/theme/fallbacks/index.less +50 -8
- package/themes/pharma/cssVars/theme/fallbacks/index.pcss +50 -8
- package/themes/pharma/cssVars/theme/fallbacks/index.scss +124 -16
- package/themes/pharma/cssVars/theme/fallbacks/index.styl +50 -8
- package/themes/pharma/cssVars/theme/index.js +180 -18
- package/themes/pharma/cssVars/theme/index.json +180 -18
- package/themes/pharma/index.css +107 -15
- package/themes/pharma/index.js +43 -1
- package/themes/pharma/index.json +43 -1
- package/themes/pharma/index.less +44 -2
- package/themes/pharma/index.pcss +44 -2
- package/themes/pharma/index.scss +112 -4
- package/themes/pharma/index.styl +44 -2
- package/themes/promo/cssVars/declarations/index.css +178 -26
- package/themes/promo/cssVars/declarations/noColors.css +103 -13
- package/themes/promo/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/promo/cssVars/declarations/onlyMedia.css +52 -8
- package/themes/promo/cssVars/declarations/onlyVariables.css +28 -8
- package/themes/promo/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/promo/cssVars/declarations/onlyVariablesLocal.css +28 -8
- package/themes/promo/cssVars/theme/fallbacks/index.css +107 -17
- package/themes/promo/cssVars/theme/fallbacks/index.less +51 -9
- package/themes/promo/cssVars/theme/fallbacks/index.pcss +51 -9
- package/themes/promo/cssVars/theme/fallbacks/index.scss +122 -14
- package/themes/promo/cssVars/theme/fallbacks/index.styl +51 -9
- package/themes/promo/cssVars/theme/index.js +175 -21
- package/themes/promo/cssVars/theme/index.json +175 -21
- package/themes/promo/index.css +103 -13
- package/themes/promo/index.js +45 -5
- package/themes/promo/index.json +45 -5
- package/themes/promo/index.less +47 -5
- package/themes/promo/index.pcss +47 -5
- package/themes/promo/index.scss +114 -6
- package/themes/promo/index.styl +47 -5
- package/themes/todo/cssVars/declarations/index.css +209 -37
- package/themes/todo/cssVars/declarations/noColors.css +118 -16
- package/themes/todo/cssVars/declarations/onlyAdaptiveGroups.css +23 -5
- package/themes/todo/cssVars/declarations/onlyMedia.css +68 -16
- package/themes/todo/cssVars/declarations/onlyVariables.css +31 -9
- package/themes/todo/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/todo/cssVars/declarations/onlyVariablesLocal.css +31 -9
- package/themes/todo/cssVars/theme/fallbacks/index.css +122 -20
- package/themes/todo/cssVars/theme/fallbacks/index.less +58 -10
- package/themes/todo/cssVars/theme/fallbacks/index.pcss +58 -10
- package/themes/todo/cssVars/theme/fallbacks/index.scss +142 -16
- package/themes/todo/cssVars/theme/fallbacks/index.styl +58 -10
- package/themes/todo/cssVars/theme/index.js +186 -22
- package/themes/todo/cssVars/theme/index.json +186 -22
- package/themes/todo/index.css +118 -16
- package/themes/todo/index.js +49 -5
- package/themes/todo/index.json +49 -5
- package/themes/todo/index.less +53 -5
- package/themes/todo/index.pcss +53 -5
- package/themes/todo/index.scss +132 -6
- package/themes/todo/index.styl +53 -5
- package/themes/vkBase/cssVars/declarations/index.css +167 -35
- package/themes/vkBase/cssVars/declarations/noColors.css +140 -29
- package/themes/vkBase/cssVars/declarations/noSizes.css +2 -2
- package/themes/vkBase/cssVars/declarations/onlyAdaptiveGroups.css +27 -6
- package/themes/vkBase/cssVars/declarations/onlyVariables.css +42 -15
- package/themes/vkBase/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkBase/cssVars/declarations/onlyVariablesLocal.css +42 -15
- package/themes/vkBase/cssVars/theme/fallbacks/index.css +145 -34
- package/themes/vkBase/cssVars/theme/fallbacks/index.less +65 -16
- package/themes/vkBase/cssVars/theme/fallbacks/index.pcss +65 -16
- package/themes/vkBase/cssVars/theme/fallbacks/index.scss +154 -28
- package/themes/vkBase/cssVars/theme/fallbacks/index.styl +65 -16
- package/themes/vkBase/cssVars/theme/index.js +225 -31
- package/themes/vkBase/cssVars/theme/index.json +225 -31
- package/themes/vkBase/index.css +140 -29
- package/themes/vkBase/index.js +57 -10
- package/themes/vkBase/index.json +57 -10
- package/themes/vkBase/index.less +59 -10
- package/themes/vkBase/index.pcss +59 -10
- package/themes/vkBase/index.scss +142 -16
- package/themes/vkBase/index.styl +59 -10
- package/themes/vkBaseDark/cssVars/declarations/index.css +167 -35
- package/themes/vkBaseDark/cssVars/declarations/noColors.css +140 -29
- package/themes/vkBaseDark/cssVars/declarations/noSizes.css +2 -2
- package/themes/vkBaseDark/cssVars/declarations/onlyAdaptiveGroups.css +27 -6
- package/themes/vkBaseDark/cssVars/declarations/onlyVariables.css +42 -15
- package/themes/vkBaseDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkBaseDark/cssVars/declarations/onlyVariablesLocal.css +42 -15
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.css +145 -34
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.less +65 -16
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.pcss +65 -16
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.scss +154 -28
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.styl +65 -16
- package/themes/vkBaseDark/cssVars/theme/index.js +225 -31
- package/themes/vkBaseDark/cssVars/theme/index.json +225 -31
- package/themes/vkBaseDark/index.css +140 -29
- package/themes/vkBaseDark/index.js +57 -10
- package/themes/vkBaseDark/index.json +57 -10
- package/themes/vkBaseDark/index.less +59 -10
- package/themes/vkBaseDark/index.pcss +59 -10
- package/themes/vkBaseDark/index.scss +142 -16
- package/themes/vkBaseDark/index.styl +59 -10
- package/themes/vkCom/cssVars/declarations/index.css +167 -35
- package/themes/vkCom/cssVars/declarations/noColors.css +140 -29
- package/themes/vkCom/cssVars/declarations/noSizes.css +2 -2
- package/themes/vkCom/cssVars/declarations/onlyAdaptiveGroups.css +27 -6
- package/themes/vkCom/cssVars/declarations/onlyVariables.css +42 -15
- package/themes/vkCom/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkCom/cssVars/declarations/onlyVariablesLocal.css +42 -15
- package/themes/vkCom/cssVars/theme/fallbacks/index.css +145 -34
- package/themes/vkCom/cssVars/theme/fallbacks/index.less +65 -16
- package/themes/vkCom/cssVars/theme/fallbacks/index.pcss +65 -16
- package/themes/vkCom/cssVars/theme/fallbacks/index.scss +154 -28
- package/themes/vkCom/cssVars/theme/fallbacks/index.styl +65 -16
- package/themes/vkCom/cssVars/theme/index.js +225 -31
- package/themes/vkCom/cssVars/theme/index.json +225 -31
- package/themes/vkCom/index.css +140 -29
- package/themes/vkCom/index.js +57 -10
- package/themes/vkCom/index.json +57 -10
- package/themes/vkCom/index.less +59 -10
- package/themes/vkCom/index.pcss +59 -10
- package/themes/vkCom/index.scss +142 -16
- package/themes/vkCom/index.styl +59 -10
- package/themes/vkComDark/cssVars/declarations/index.css +167 -35
- package/themes/vkComDark/cssVars/declarations/noColors.css +140 -29
- package/themes/vkComDark/cssVars/declarations/noSizes.css +2 -2
- package/themes/vkComDark/cssVars/declarations/onlyAdaptiveGroups.css +27 -6
- package/themes/vkComDark/cssVars/declarations/onlyVariables.css +42 -15
- package/themes/vkComDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkComDark/cssVars/declarations/onlyVariablesLocal.css +42 -15
- package/themes/vkComDark/cssVars/theme/fallbacks/index.css +145 -34
- package/themes/vkComDark/cssVars/theme/fallbacks/index.less +65 -16
- package/themes/vkComDark/cssVars/theme/fallbacks/index.pcss +65 -16
- package/themes/vkComDark/cssVars/theme/fallbacks/index.scss +154 -28
- package/themes/vkComDark/cssVars/theme/fallbacks/index.styl +65 -16
- package/themes/vkComDark/cssVars/theme/index.js +225 -31
- package/themes/vkComDark/cssVars/theme/index.json +225 -31
- package/themes/vkComDark/index.css +140 -29
- package/themes/vkComDark/index.js +57 -10
- package/themes/vkComDark/index.json +57 -10
- package/themes/vkComDark/index.less +59 -10
- package/themes/vkComDark/index.pcss +59 -10
- package/themes/vkComDark/index.scss +142 -16
- package/themes/vkComDark/index.styl +59 -10
- package/themes/vkIOS/cssVars/declarations/index.css +167 -35
- package/themes/vkIOS/cssVars/declarations/noColors.css +140 -29
- package/themes/vkIOS/cssVars/declarations/noSizes.css +2 -2
- package/themes/vkIOS/cssVars/declarations/onlyAdaptiveGroups.css +27 -6
- package/themes/vkIOS/cssVars/declarations/onlyVariables.css +42 -15
- package/themes/vkIOS/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkIOS/cssVars/declarations/onlyVariablesLocal.css +42 -15
- package/themes/vkIOS/cssVars/theme/fallbacks/index.css +145 -34
- package/themes/vkIOS/cssVars/theme/fallbacks/index.less +65 -16
- package/themes/vkIOS/cssVars/theme/fallbacks/index.pcss +65 -16
- package/themes/vkIOS/cssVars/theme/fallbacks/index.scss +154 -28
- package/themes/vkIOS/cssVars/theme/fallbacks/index.styl +65 -16
- package/themes/vkIOS/cssVars/theme/index.js +225 -31
- package/themes/vkIOS/cssVars/theme/index.json +225 -31
- package/themes/vkIOS/index.css +140 -29
- package/themes/vkIOS/index.js +57 -10
- package/themes/vkIOS/index.json +57 -10
- package/themes/vkIOS/index.less +59 -10
- package/themes/vkIOS/index.pcss +59 -10
- package/themes/vkIOS/index.scss +142 -16
- package/themes/vkIOS/index.styl +59 -10
- package/themes/vkIOSDark/cssVars/declarations/index.css +167 -35
- package/themes/vkIOSDark/cssVars/declarations/noColors.css +140 -29
- package/themes/vkIOSDark/cssVars/declarations/noSizes.css +2 -2
- package/themes/vkIOSDark/cssVars/declarations/onlyAdaptiveGroups.css +27 -6
- package/themes/vkIOSDark/cssVars/declarations/onlyVariables.css +42 -15
- package/themes/vkIOSDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkIOSDark/cssVars/declarations/onlyVariablesLocal.css +42 -15
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.css +145 -34
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.less +65 -16
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.pcss +65 -16
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.scss +154 -28
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.styl +65 -16
- package/themes/vkIOSDark/cssVars/theme/index.js +225 -31
- package/themes/vkIOSDark/cssVars/theme/index.json +225 -31
- package/themes/vkIOSDark/index.css +140 -29
- package/themes/vkIOSDark/index.js +57 -10
- package/themes/vkIOSDark/index.json +57 -10
- package/themes/vkIOSDark/index.less +59 -10
- package/themes/vkIOSDark/index.pcss +59 -10
- package/themes/vkIOSDark/index.scss +142 -16
- package/themes/vkIOSDark/index.styl +59 -10
|
@@ -8,4 +8,4 @@ export declare function getRootSelector<PT extends PixelifyTheme>(theme: PT, mod
|
|
|
8
8
|
/**
|
|
9
9
|
* Компиллирует строку со стилями (в разных форматах), на основе темы
|
|
10
10
|
*/
|
|
11
|
-
export declare const compileStyles: <PT extends PixelifyTheme<import("../../../interfaces/general").Theme
|
|
11
|
+
export declare const compileStyles: <PT extends PixelifyTheme<import("../../../interfaces/general/tools/tokenValue").StaticTokens<import("../../../interfaces/general").Theme>> = PixelifyTheme<import("../../../interfaces/general/tools/tokenValue").StaticTokens<import("../../../interfaces/general").Theme>>>(format: Formats, theme: PT, mode?: CompileStylesMode) => string;
|
package/build/expandTheme.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { PixelifyTheme, Theme, ThemeCssVars, ThemeCssVarsWide, ThemeDescription } from '../interfaces/general';
|
|
2
|
+
import { StaticTokens } from '../interfaces/general/tools/tokenValue';
|
|
2
3
|
export interface ExpandedThemeObject<T = Theme> {
|
|
3
|
-
theme: T
|
|
4
|
-
pixelifyTheme: PixelifyTheme<T
|
|
5
|
-
cssVarsThemeWide: ThemeCssVarsWide<T
|
|
6
|
-
cssVarsTheme: ThemeCssVars<T
|
|
7
|
-
pseudoThemeCssVars:
|
|
4
|
+
theme: StaticTokens<T>;
|
|
5
|
+
pixelifyTheme: StaticTokens<PixelifyTheme<T>>;
|
|
6
|
+
cssVarsThemeWide: StaticTokens<ThemeCssVarsWide<T>>;
|
|
7
|
+
cssVarsTheme: StaticTokens<ThemeCssVars<T>>;
|
|
8
|
+
pseudoThemeCssVars: StaticTokens<StaticTokens<T>>;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* На основе описания темы, генерирует рутовую тему
|
|
11
12
|
*/
|
|
12
|
-
export declare function expandRootTheme<TD = ThemeDescription, T = Theme>(themeDescription: TD): T
|
|
13
|
+
export declare function expandRootTheme<TD = ThemeDescription, T = Theme>(themeDescription: TD): StaticTokens<T>;
|
|
13
14
|
/**
|
|
14
15
|
* Генерирует все виды ts-тем, на основе описания темы
|
|
15
16
|
* Может работать и с любым интерфейсом и количеством переменных в теме
|
|
16
17
|
*/
|
|
17
|
-
export declare function expandAll<TD = ThemeDescription, T = Theme>(themeDescription: TD): ExpandedThemeObject<T
|
|
18
|
+
export declare function expandAll<TD = ThemeDescription, T = Theme>(themeDescription: TD): ExpandedThemeObject<StaticTokens<T>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeGeneral } from '../../interfaces/general';
|
|
2
|
+
import { Token } from '../../interfaces/general/tools/tokenValue';
|
|
3
|
+
export declare function alias<T extends ThemeGeneral>(token: string): (theme: Partial<T>) => Token<any, T>;
|
|
4
|
+
export declare function staticRef<T>(value: Token<T, any>): T;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.staticRef = exports.alias = void 0;
|
|
4
|
+
function alias(token) {
|
|
5
|
+
return function (theme) { return theme[token]; };
|
|
6
|
+
}
|
|
7
|
+
exports.alias = alias;
|
|
8
|
+
function staticRef(value) {
|
|
9
|
+
if (typeof value === 'function') {
|
|
10
|
+
throw new Error('Cannot use callable token value in static ref');
|
|
11
|
+
}
|
|
12
|
+
return value;
|
|
13
|
+
}
|
|
14
|
+
exports.staticRef = staticRef;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tokenHelpers_1 = require("./tokenHelpers");
|
|
4
|
+
describe('tokenHelpers', function () {
|
|
5
|
+
describe('alias', function () {
|
|
6
|
+
test('maps token to another token', function () {
|
|
7
|
+
expect(tokenHelpers_1.alias('sizeArrow')({ sizeArrow: { regular: 10 } })).toEqual({
|
|
8
|
+
regular: 10,
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
describe('staticRef', function () {
|
|
13
|
+
test('returns static value', function () {
|
|
14
|
+
expect(tokenHelpers_1.staticRef(10)).toEqual(10);
|
|
15
|
+
});
|
|
16
|
+
test('fails for dynamic value', function () {
|
|
17
|
+
expect(function () { return tokenHelpers_1.staticRef(tokenHelpers_1.alias('sizeArrow')); }).toThrowError('Cannot use callable token value in static ref');
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
});
|
|
@@ -10,6 +10,15 @@ exports.extractGeneralTokens = void 0;
|
|
|
10
10
|
*/
|
|
11
11
|
function extractGeneralTokens(themeDescription) {
|
|
12
12
|
var copyDescription = JSON.parse(JSON.stringify(themeDescription));
|
|
13
|
+
var tokens = Object.keys(themeDescription);
|
|
14
|
+
// Разворачиваем токены-функции
|
|
15
|
+
for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
|
|
16
|
+
var token = tokens_1[_i];
|
|
17
|
+
var tokenValue = themeDescription[token];
|
|
18
|
+
if (typeof tokenValue === 'function') {
|
|
19
|
+
copyDescription[token] = tokenValue(themeDescription);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
13
22
|
delete copyDescription.colors;
|
|
14
23
|
delete copyDescription.colorsScheme;
|
|
15
24
|
return copyDescription;
|
|
@@ -18,6 +18,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.extractVarsNames = exports.getVariableName = void 0;
|
|
20
20
|
var convertCamelToSnake_1 = require("../../helpers/convertCamelToSnake");
|
|
21
|
+
var tokenHelpers_1 = require("../../helpers/tokenHelpers");
|
|
21
22
|
var customMedia_1 = require("../customMedia/customMedia");
|
|
22
23
|
var pixelifyValues_1 = require("../pixelifyValues/pixelifyValues");
|
|
23
24
|
function getVariableName(_a) {
|
|
@@ -129,6 +130,6 @@ function extractVarsNames(sourceTheme, opt) {
|
|
|
129
130
|
var typedSourceTheme = sourceTheme;
|
|
130
131
|
var pixelifyedTheme = pixelifyValues_1.pixelifyValues(sourceTheme);
|
|
131
132
|
var customMedia = customMedia_1.processCustomMedia(sourceTheme);
|
|
132
|
-
return processVarNaming(__assign({ object: pixelifyedTheme, prefix: typedSourceTheme.prefix, customMedia: customMedia }, opt));
|
|
133
|
+
return processVarNaming(__assign({ object: pixelifyedTheme, prefix: tokenHelpers_1.staticRef(typedSourceTheme.prefix), customMedia: customMedia }, opt));
|
|
133
134
|
}
|
|
134
135
|
exports.extractVarsNames = extractVarsNames;
|
|
@@ -9,6 +9,7 @@ import { NamifyObject } from './tools/cssVars';
|
|
|
9
9
|
import { StringifyObject } from './tools/utils';
|
|
10
10
|
import { Fonts, TypographyBaseProps } from './typography';
|
|
11
11
|
import ColorScheme = Property.ColorScheme;
|
|
12
|
+
import { StaticTokens, Tokens } from './tools/tokenValue';
|
|
12
13
|
interface AdaptiveInterfaceValues extends Sizes, Fonts {
|
|
13
14
|
}
|
|
14
15
|
declare type AdaptiveTokens = {
|
|
@@ -40,7 +41,7 @@ export interface ThemeGeneral extends AdaptiveTokens, SpecialTokens, ToneValues,
|
|
|
40
41
|
/**
|
|
41
42
|
* Интерфейс описания Темы (в этом типе описываются все темы дизайн-системы)
|
|
42
43
|
*/
|
|
43
|
-
export interface ThemeDescription extends ThemeGeneral
|
|
44
|
+
export interface ThemeDescription extends Tokens<ThemeGeneral>, ColorsDescription {
|
|
44
45
|
}
|
|
45
46
|
/**
|
|
46
47
|
* Основной интерфейс темы
|
|
@@ -51,7 +52,7 @@ export interface Theme extends ThemeGeneral, ColorsFinal {
|
|
|
51
52
|
/**
|
|
52
53
|
* Тема, в коротой все значения пикселизированы. Т.е. 16 -> '16px'
|
|
53
54
|
*/
|
|
54
|
-
export declare type PixelifyTheme<T extends Partial<Record<keyof T, any>> = Theme
|
|
55
|
+
export declare type PixelifyTheme<T extends Partial<Record<keyof T, any>> = StaticTokens<Theme>> = StringifyObject<Omit<T, 'breakpoints' | 'themeType'>> & Pick<T, Extract<'breakpoints', keyof T>> & {
|
|
55
56
|
themeType: 'pixelify';
|
|
56
57
|
themeName: string;
|
|
57
58
|
colorScheme: ColorScheme;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare type Token<T, Theme> = T | ((theme: Theme) => T);
|
|
2
|
+
export declare type MakeStaticToken<T> = T extends (...args: any[]) => any ? MakeStaticToken<ReturnType<T>> : T;
|
|
3
|
+
export declare type Tokens<T> = {
|
|
4
|
+
[K in keyof T]: Token<T[K], T>;
|
|
5
|
+
};
|
|
6
|
+
export declare type StaticTokens<T> = {
|
|
7
|
+
[K in keyof T]: MakeStaticToken<T[K]>;
|
|
8
|
+
};
|
|
@@ -18,8 +18,15 @@ export interface Fonts {
|
|
|
18
18
|
fontTitle1: Font;
|
|
19
19
|
fontTitle2: Font;
|
|
20
20
|
fontTitle3: Font;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated
|
|
23
|
+
* @see fontHeadline1
|
|
24
|
+
*/
|
|
21
25
|
fontHeadline: Font;
|
|
26
|
+
fontHeadline1: Font;
|
|
27
|
+
fontHeadline2: Font;
|
|
22
28
|
fontText: Font;
|
|
29
|
+
fontParagraph: Font;
|
|
23
30
|
fontSubhead: Font;
|
|
24
31
|
fontFootnote: Font;
|
|
25
32
|
fontFootnoteCaps: Font;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { ThemeCssVars } from '../../general';
|
|
2
|
-
import { ColorsDescriptionStruct, ColorWithStates } from '../../general/colors';
|
|
2
|
+
import { ColorDescription, ColorsDescriptionStruct, ColorWithStates } from '../../general/colors';
|
|
3
3
|
import { Adaptive } from '../../general/tools';
|
|
4
4
|
import { Font } from '../../general/typography';
|
|
5
5
|
import { LocalParadigmColorsDescriptionStruct } from '../../namespaces/paradigm';
|
|
6
6
|
import { ThemeParadigmBase, ThemeParadigmBaseDescription } from '../paradigmBase';
|
|
7
7
|
export interface ThemeCalendarOverValues {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
fontEventXS: Adaptive<Font>;
|
|
11
|
-
fontTime: Adaptive<Font>;
|
|
12
|
-
fontBodyIOS: Adaptive<Font>;
|
|
13
|
-
fontBodyAndroid: Adaptive<Font>;
|
|
8
|
+
calendarFontTextEvent: Adaptive<Font>;
|
|
9
|
+
calendarFontTextEventSmall: Adaptive<Font>;
|
|
14
10
|
}
|
|
15
11
|
export interface LocalCalendarColorDescriptionStruct {
|
|
12
|
+
calendarColorBackgroundAccentTintThemed: ColorDescription;
|
|
16
13
|
}
|
|
17
14
|
export declare type CalendarLocalColors = {
|
|
18
15
|
[key in keyof LocalCalendarColorDescriptionStruct]: ColorWithStates;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/vkui-tokens",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.1-dev-d4a11c.0",
|
|
4
4
|
"description": "Репозиторий, который содержит в себе дизайн-токены и другие инструменты объединенной дизайн-системы VKUI и Paradigm",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "utils/descriptions.js",
|
|
@@ -12,16 +12,17 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.darkTheme = exports.darkThemeBase = exports.darkThemeElevation = exports.lightTheme = exports.lightThemeBase = exports.darkColors = exports.lightColors = void 0;
|
|
15
|
+
var tokenHelpers_1 = require("../../build/helpers/tokenHelpers");
|
|
15
16
|
var overlayColors_1 = require("../../build/themeProcessors/expandColors/overlayColors");
|
|
16
17
|
var common_1 = require("../../utils/common");
|
|
17
18
|
var fontFamilyAccent = 'MailSans, Helvetica, Arial, sans-serif';
|
|
18
19
|
var fontFamilyBase = 'Helvetica, Arial, sans-serif';
|
|
19
|
-
var fontWeightAccent1 =
|
|
20
|
+
var fontWeightAccent1 = 500;
|
|
20
21
|
var fontWeightAccent2 = 500;
|
|
21
|
-
var fontWeightAccent3 =
|
|
22
|
-
var fontWeightBase1 =
|
|
22
|
+
var fontWeightAccent3 = 400;
|
|
23
|
+
var fontWeightBase1 = 700;
|
|
23
24
|
var fontWeightBase2 = 700;
|
|
24
|
-
var fontWeightBase3 =
|
|
25
|
+
var fontWeightBase3 = 400;
|
|
25
26
|
exports.lightColors = {
|
|
26
27
|
colorsScheme: 'light',
|
|
27
28
|
colors: {
|
|
@@ -222,59 +223,89 @@ exports.lightThemeBase = __assign(__assign({ themeName: 'paradigmBase' }, export
|
|
|
222
223
|
fontSize: 24,
|
|
223
224
|
lineHeight: 28,
|
|
224
225
|
fontFamily: fontFamilyAccent,
|
|
225
|
-
fontWeight:
|
|
226
|
+
fontWeight: fontWeightAccent1,
|
|
226
227
|
},
|
|
227
228
|
}, fontTitle2: {
|
|
228
229
|
regular: {
|
|
229
230
|
fontSize: 20,
|
|
230
231
|
lineHeight: 26,
|
|
231
232
|
fontFamily: fontFamilyAccent,
|
|
232
|
-
fontWeight:
|
|
233
|
+
fontWeight: fontWeightAccent1,
|
|
233
234
|
},
|
|
234
235
|
}, fontTitle3: {
|
|
235
236
|
regular: {
|
|
236
237
|
fontSize: 17,
|
|
237
238
|
lineHeight: 22,
|
|
238
239
|
fontFamily: fontFamilyAccent,
|
|
239
|
-
fontWeight:
|
|
240
|
+
fontWeight: fontWeightAccent1,
|
|
240
241
|
},
|
|
241
|
-
}, fontHeadline: {
|
|
242
|
+
}, fontHeadline: tokenHelpers_1.alias('fontHeadline1'), fontHeadline1: {
|
|
243
|
+
regular: {
|
|
244
|
+
fontSize: 16,
|
|
245
|
+
lineHeight: 20,
|
|
246
|
+
fontFamily: fontFamilyAccent,
|
|
247
|
+
fontWeight: fontWeightAccent2,
|
|
248
|
+
},
|
|
249
|
+
compact: {
|
|
250
|
+
fontSize: 15,
|
|
251
|
+
lineHeight: 20,
|
|
252
|
+
},
|
|
253
|
+
}, fontHeadline2: {
|
|
242
254
|
regular: {
|
|
243
255
|
fontSize: 15,
|
|
244
256
|
lineHeight: 20,
|
|
245
257
|
fontFamily: fontFamilyAccent,
|
|
246
258
|
fontWeight: fontWeightAccent2,
|
|
247
259
|
},
|
|
260
|
+
compact: {
|
|
261
|
+
fontSize: 14,
|
|
262
|
+
lineHeight: 20,
|
|
263
|
+
},
|
|
248
264
|
},
|
|
249
265
|
// todo поменять местами fontSize, когда откажемся от auto
|
|
250
266
|
// todo fontSize в мобильном виде должен быть 16
|
|
251
267
|
fontText: {
|
|
268
|
+
regular: {
|
|
269
|
+
fontSize: 16,
|
|
270
|
+
lineHeight: 20,
|
|
271
|
+
fontFamily: fontFamilyBase,
|
|
272
|
+
fontWeight: fontWeightBase3,
|
|
273
|
+
},
|
|
274
|
+
compact: {
|
|
275
|
+
fontSize: 15,
|
|
276
|
+
lineHeight: 20,
|
|
277
|
+
},
|
|
278
|
+
}, fontParagraph: {
|
|
252
279
|
regular: {
|
|
253
280
|
fontSize: 15,
|
|
254
281
|
lineHeight: 20,
|
|
255
282
|
fontFamily: fontFamilyBase,
|
|
256
|
-
fontWeight:
|
|
283
|
+
fontWeight: fontWeightBase3,
|
|
257
284
|
},
|
|
258
285
|
}, fontSubhead: {
|
|
259
286
|
regular: {
|
|
260
287
|
fontSize: 14,
|
|
261
288
|
lineHeight: 18,
|
|
262
289
|
fontFamily: fontFamilyBase,
|
|
263
|
-
fontWeight:
|
|
290
|
+
fontWeight: fontWeightBase3,
|
|
291
|
+
},
|
|
292
|
+
compact: {
|
|
293
|
+
fontSize: 13,
|
|
294
|
+
lineHeight: 18,
|
|
264
295
|
},
|
|
265
296
|
}, fontFootnote: {
|
|
266
297
|
regular: {
|
|
267
298
|
fontSize: 13,
|
|
268
299
|
lineHeight: 18,
|
|
269
300
|
fontFamily: fontFamilyBase,
|
|
270
|
-
fontWeight:
|
|
301
|
+
fontWeight: fontWeightBase3,
|
|
271
302
|
},
|
|
272
303
|
}, fontFootnoteCaps: {
|
|
273
304
|
regular: {
|
|
274
305
|
fontSize: 13,
|
|
275
306
|
lineHeight: 18,
|
|
276
307
|
fontFamily: fontFamilyBase,
|
|
277
|
-
fontWeight:
|
|
308
|
+
fontWeight: fontWeightBase3,
|
|
278
309
|
textTransform: 'uppercase',
|
|
279
310
|
letterSpacing: '0.3px',
|
|
280
311
|
},
|
|
@@ -283,14 +314,14 @@ exports.lightThemeBase = __assign(__assign({ themeName: 'paradigmBase' }, export
|
|
|
283
314
|
fontSize: 12,
|
|
284
315
|
lineHeight: 16,
|
|
285
316
|
fontFamily: fontFamilyBase,
|
|
286
|
-
fontWeight:
|
|
317
|
+
fontWeight: fontWeightBase3,
|
|
287
318
|
},
|
|
288
319
|
}, fontCaption1Caps: {
|
|
289
320
|
regular: {
|
|
290
321
|
fontSize: 12,
|
|
291
322
|
lineHeight: 16,
|
|
292
323
|
fontFamily: fontFamilyBase,
|
|
293
|
-
fontWeight:
|
|
324
|
+
fontWeight: fontWeightBase3,
|
|
294
325
|
textTransform: 'uppercase',
|
|
295
326
|
letterSpacing: '0.26px',
|
|
296
327
|
},
|
|
@@ -299,14 +330,14 @@ exports.lightThemeBase = __assign(__assign({ themeName: 'paradigmBase' }, export
|
|
|
299
330
|
fontSize: 11,
|
|
300
331
|
lineHeight: 14,
|
|
301
332
|
fontFamily: fontFamilyBase,
|
|
302
|
-
fontWeight:
|
|
333
|
+
fontWeight: fontWeightBase3,
|
|
303
334
|
},
|
|
304
335
|
}, fontCaption2Caps: {
|
|
305
336
|
regular: {
|
|
306
337
|
fontSize: 11,
|
|
307
338
|
lineHeight: 14,
|
|
308
339
|
fontFamily: fontFamilyBase,
|
|
309
|
-
fontWeight:
|
|
340
|
+
fontWeight: fontWeightBase3,
|
|
310
341
|
textTransform: 'uppercase',
|
|
311
342
|
letterSpacing: '0.22px',
|
|
312
343
|
},
|
|
@@ -315,14 +346,14 @@ exports.lightThemeBase = __assign(__assign({ themeName: 'paradigmBase' }, export
|
|
|
315
346
|
fontSize: 9,
|
|
316
347
|
lineHeight: 12,
|
|
317
348
|
fontFamily: fontFamilyBase,
|
|
318
|
-
fontWeight:
|
|
349
|
+
fontWeight: fontWeightBase3,
|
|
319
350
|
},
|
|
320
351
|
}, fontCaption3Caps: {
|
|
321
352
|
regular: {
|
|
322
353
|
fontSize: 9,
|
|
323
354
|
lineHeight: 12,
|
|
324
355
|
fontFamily: fontFamilyBase,
|
|
325
|
-
fontWeight:
|
|
356
|
+
fontWeight: fontWeightBase3,
|
|
326
357
|
textTransform: 'uppercase',
|
|
327
358
|
letterSpacing: '0.16px',
|
|
328
359
|
},
|
|
@@ -440,8 +471,8 @@ exports.lightTheme = __assign(__assign(__assign({}, exports.lightThemeBase), com
|
|
|
440
471
|
regular: {
|
|
441
472
|
fontSize: 28,
|
|
442
473
|
lineHeight: 32,
|
|
443
|
-
fontFamily: exports.lightThemeBase.fontFamilyAccent,
|
|
444
|
-
fontWeight: exports.lightThemeBase.
|
|
474
|
+
fontFamily: tokenHelpers_1.staticRef(exports.lightThemeBase.fontFamilyAccent),
|
|
475
|
+
fontWeight: tokenHelpers_1.staticRef(exports.lightThemeBase.fontWeightAccent1),
|
|
445
476
|
},
|
|
446
477
|
compact: {
|
|
447
478
|
fontSize: 44,
|
|
@@ -453,8 +484,8 @@ exports.lightTheme = __assign(__assign(__assign({}, exports.lightThemeBase), com
|
|
|
453
484
|
regular: {
|
|
454
485
|
fontSize: 24,
|
|
455
486
|
lineHeight: 28,
|
|
456
|
-
fontFamily: exports.lightThemeBase.fontFamilyAccent,
|
|
457
|
-
fontWeight: exports.lightThemeBase.
|
|
487
|
+
fontFamily: tokenHelpers_1.staticRef(exports.lightThemeBase.fontFamilyAccent),
|
|
488
|
+
fontWeight: tokenHelpers_1.staticRef(exports.lightThemeBase.fontWeightAccent1),
|
|
458
489
|
},
|
|
459
490
|
compact: {
|
|
460
491
|
fontSize: 32,
|
|
@@ -466,8 +497,8 @@ exports.lightTheme = __assign(__assign(__assign({}, exports.lightThemeBase), com
|
|
|
466
497
|
regular: {
|
|
467
498
|
fontSize: 20,
|
|
468
499
|
lineHeight: 26,
|
|
469
|
-
fontFamily: exports.lightThemeBase.fontFamilyAccent,
|
|
470
|
-
fontWeight: exports.lightThemeBase.
|
|
500
|
+
fontFamily: tokenHelpers_1.staticRef(exports.lightThemeBase.fontFamilyAccent),
|
|
501
|
+
fontWeight: tokenHelpers_1.staticRef(exports.lightThemeBase.fontWeightAccent1),
|
|
471
502
|
},
|
|
472
503
|
compact: {
|
|
473
504
|
fontSize: 28,
|
|
@@ -12,14 +12,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.darkTheme = exports.lightTheme = exports.darkColors = exports.lightColors = void 0;
|
|
15
|
+
var tokenHelpers_1 = require("../../build/helpers/tokenHelpers");
|
|
15
16
|
var fontFamilyAccent = '"TT Commons", -apple-system, system-ui, Helvetica Neue, Roboto, sans-serif';
|
|
16
17
|
var fontFamilyBase = '-apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif';
|
|
17
|
-
var fontWeightAccent1 =
|
|
18
|
+
var fontWeightAccent1 = 600;
|
|
18
19
|
var fontWeightAccent2 = 500;
|
|
19
|
-
var fontWeightAccent3 =
|
|
20
|
-
var fontWeightBase1 =
|
|
20
|
+
var fontWeightAccent3 = 400;
|
|
21
|
+
var fontWeightBase1 = 600;
|
|
21
22
|
var fontWeightBase2 = 500;
|
|
22
|
-
var fontWeightBase3 =
|
|
23
|
+
var fontWeightBase3 = 400;
|
|
23
24
|
exports.lightColors = {
|
|
24
25
|
colorsScheme: 'light',
|
|
25
26
|
colors: {
|
|
@@ -211,7 +212,7 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
211
212
|
lineHeight: 28,
|
|
212
213
|
letterSpacing: '-0.48px',
|
|
213
214
|
fontFamily: fontFamilyAccent,
|
|
214
|
-
fontWeight:
|
|
215
|
+
fontWeight: fontWeightAccent1,
|
|
215
216
|
},
|
|
216
217
|
}, fontTitle2: {
|
|
217
218
|
regular: {
|
|
@@ -219,7 +220,7 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
219
220
|
lineHeight: 24,
|
|
220
221
|
letterSpacing: '-0.4px',
|
|
221
222
|
fontFamily: fontFamilyAccent,
|
|
222
|
-
fontWeight:
|
|
223
|
+
fontWeight: fontWeightAccent1,
|
|
223
224
|
},
|
|
224
225
|
}, fontTitle3: {
|
|
225
226
|
regular: {
|
|
@@ -227,9 +228,9 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
227
228
|
lineHeight: 22,
|
|
228
229
|
letterSpacing: '-0.22px',
|
|
229
230
|
fontFamily: fontFamilyAccent,
|
|
230
|
-
fontWeight:
|
|
231
|
+
fontWeight: fontWeightAccent1,
|
|
231
232
|
},
|
|
232
|
-
}, fontHeadline: {
|
|
233
|
+
}, fontHeadline: tokenHelpers_1.alias('fontHeadline1'), fontHeadline1: {
|
|
233
234
|
regular: {
|
|
234
235
|
fontSize: 16,
|
|
235
236
|
lineHeight: 20,
|
|
@@ -237,18 +238,44 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
237
238
|
fontFamily: fontFamilyAccent,
|
|
238
239
|
fontWeight: fontWeightAccent2,
|
|
239
240
|
},
|
|
240
|
-
|
|
241
|
+
compact: {
|
|
242
|
+
fontSize: 15,
|
|
243
|
+
lineHeight: 20,
|
|
244
|
+
letterSpacing: '-0.1px',
|
|
245
|
+
},
|
|
246
|
+
}, fontHeadline2: {
|
|
241
247
|
regular: {
|
|
242
248
|
fontSize: 15,
|
|
243
249
|
lineHeight: 20,
|
|
244
250
|
letterSpacing: '-0.1px',
|
|
245
|
-
fontFamily:
|
|
246
|
-
fontWeight:
|
|
251
|
+
fontFamily: fontFamilyAccent,
|
|
252
|
+
fontWeight: fontWeightAccent2,
|
|
247
253
|
},
|
|
248
254
|
compact: {
|
|
255
|
+
fontSize: 14,
|
|
256
|
+
lineHeight: 20,
|
|
257
|
+
letterSpacing: '-0.06px',
|
|
258
|
+
},
|
|
259
|
+
}, fontText: {
|
|
260
|
+
regular: {
|
|
249
261
|
fontSize: 16,
|
|
250
262
|
lineHeight: 20,
|
|
251
263
|
letterSpacing: '-0.16px',
|
|
264
|
+
fontFamily: fontFamilyBase,
|
|
265
|
+
fontWeight: fontWeightBase3,
|
|
266
|
+
},
|
|
267
|
+
compact: {
|
|
268
|
+
fontSize: 15,
|
|
269
|
+
lineHeight: 20,
|
|
270
|
+
letterSpacing: '-0.1px',
|
|
271
|
+
},
|
|
272
|
+
}, fontParagraph: {
|
|
273
|
+
regular: {
|
|
274
|
+
fontSize: 15,
|
|
275
|
+
lineHeight: 20,
|
|
276
|
+
letterSpacing: '-0.1px',
|
|
277
|
+
fontFamily: fontFamilyBase,
|
|
278
|
+
fontWeight: fontWeightBase3,
|
|
252
279
|
},
|
|
253
280
|
}, fontSubhead: {
|
|
254
281
|
regular: {
|
|
@@ -256,7 +283,12 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
256
283
|
lineHeight: 18,
|
|
257
284
|
letterSpacing: '-0.06px',
|
|
258
285
|
fontFamily: fontFamilyBase,
|
|
259
|
-
fontWeight:
|
|
286
|
+
fontWeight: fontWeightBase3,
|
|
287
|
+
},
|
|
288
|
+
compact: {
|
|
289
|
+
fontSize: 13,
|
|
290
|
+
lineHeight: 16,
|
|
291
|
+
letterSpacing: '0px',
|
|
260
292
|
},
|
|
261
293
|
}, fontFootnote: {
|
|
262
294
|
regular: {
|
|
@@ -264,7 +296,7 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
264
296
|
lineHeight: 16,
|
|
265
297
|
letterSpacing: '0px',
|
|
266
298
|
fontFamily: fontFamilyBase,
|
|
267
|
-
fontWeight:
|
|
299
|
+
fontWeight: fontWeightBase3,
|
|
268
300
|
},
|
|
269
301
|
}, fontFootnoteCaps: {
|
|
270
302
|
regular: {
|
|
@@ -272,7 +304,7 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
272
304
|
lineHeight: 16,
|
|
273
305
|
letterSpacing: '0.3px',
|
|
274
306
|
fontFamily: fontFamilyBase,
|
|
275
|
-
fontWeight:
|
|
307
|
+
fontWeight: fontWeightBase3,
|
|
276
308
|
textTransform: 'uppercase',
|
|
277
309
|
},
|
|
278
310
|
}, fontCaption1: {
|
|
@@ -281,7 +313,7 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
281
313
|
lineHeight: 14,
|
|
282
314
|
letterSpacing: '0.06px',
|
|
283
315
|
fontFamily: fontFamilyBase,
|
|
284
|
-
fontWeight:
|
|
316
|
+
fontWeight: fontWeightBase3,
|
|
285
317
|
},
|
|
286
318
|
}, fontCaption1Caps: {
|
|
287
319
|
regular: {
|
|
@@ -289,7 +321,7 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
289
321
|
lineHeight: 14,
|
|
290
322
|
letterSpacing: '0.2px',
|
|
291
323
|
fontFamily: fontFamilyBase,
|
|
292
|
-
fontWeight:
|
|
324
|
+
fontWeight: fontWeightBase1,
|
|
293
325
|
textTransform: 'uppercase',
|
|
294
326
|
},
|
|
295
327
|
}, fontCaption2: {
|
|
@@ -298,7 +330,7 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
298
330
|
lineHeight: 14,
|
|
299
331
|
letterSpacing: '0.11px',
|
|
300
332
|
fontFamily: fontFamilyBase,
|
|
301
|
-
fontWeight:
|
|
333
|
+
fontWeight: fontWeightBase3,
|
|
302
334
|
},
|
|
303
335
|
}, fontCaption2Caps: {
|
|
304
336
|
regular: {
|
|
@@ -306,7 +338,7 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
306
338
|
lineHeight: 14,
|
|
307
339
|
letterSpacing: '0.3px',
|
|
308
340
|
fontFamily: fontFamilyBase,
|
|
309
|
-
fontWeight:
|
|
341
|
+
fontWeight: fontWeightBase1,
|
|
310
342
|
textTransform: 'uppercase',
|
|
311
343
|
},
|
|
312
344
|
}, fontCaption3: {
|
|
@@ -315,7 +347,7 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
315
347
|
lineHeight: 12,
|
|
316
348
|
letterSpacing: '0.18px',
|
|
317
349
|
fontFamily: fontFamilyBase,
|
|
318
|
-
fontWeight:
|
|
350
|
+
fontWeight: fontWeightBase3,
|
|
319
351
|
},
|
|
320
352
|
}, fontCaption3Caps: {
|
|
321
353
|
regular: {
|
|
@@ -323,7 +355,7 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
323
355
|
lineHeight: 12,
|
|
324
356
|
letterSpacing: '0.3px',
|
|
325
357
|
fontFamily: fontFamilyBase,
|
|
326
|
-
fontWeight:
|
|
358
|
+
fontWeight: fontWeightBase1,
|
|
327
359
|
textTransform: 'uppercase',
|
|
328
360
|
},
|
|
329
361
|
},
|
|
@@ -413,7 +445,7 @@ exports.lightTheme = __assign(__assign({ themeName: 'vkBase', themeNameBase: 'vk
|
|
|
413
445
|
regular: 16,
|
|
414
446
|
},
|
|
415
447
|
// Прочие отступы
|
|
416
|
-
elevation1: '0px 0px 2px rgba(0, 0, 0, 0.03), 0px 2px 2px rgba(0, 0, 0, 0.06)', elevation2: '0px
|
|
448
|
+
elevation1: '0px 0px 2px rgba(0, 0, 0, 0.03), 0px 2px 2px rgba(0, 0, 0, 0.06)', elevation2: '0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 4px rgba(0, 0, 0, 0.06)', elevation3: '0px 0px 2px rgba(0, 0, 0, 0.08), 0px 4px 16px rgba(0, 0, 0, 0.8)', elevation4: '0px 0px 8px rgba(0, 0, 0, 0.12), 0px 16px 16px rgba(0, 0, 0, 0.16)', animationDurationL: '0.4s', animationDurationM: '0.2s', animationDurationS: '0.1s', animationEasingDefault: 'cubic-bezier(0.3, 0.3, 0.5, 1)', opacityDisable: 0.4, opacityDisableAccessibility: 0.64 });
|
|
417
449
|
exports.darkTheme = __assign(__assign(__assign({}, exports.lightTheme), exports.darkColors), { themeName: 'vkBaseDark', colorsScheme: 'dark',
|
|
418
450
|
// TODO: Поставить нормальные отступы из тёмной темы
|
|
419
|
-
elevation1: '0px 0px 2px rgba(0, 0, 0, 0.03), 0px 2px 2px rgba(0, 0, 0, 0.06)', elevation2: '0px
|
|
451
|
+
elevation1: '0px 0px 2px rgba(0, 0, 0, 0.03), 0px 2px 2px rgba(0, 0, 0, 0.06)', elevation2: '0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 4px rgba(0, 0, 0, 0.06)', elevation3: '0px 0px 2px rgba(0, 0, 0, 0.08), 0px 4px 16px rgba(0, 0, 0, 0.8)', elevation4: '0px 0px 8px rgba(0, 0, 0, 0.12), 0px 16px 16px rgba(0, 0, 0, 0.16)' });
|