@vkontakte/vkui-tokens 4.30.1-dev-ff0eeb.0 → 4.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/interfaces/namespaces/vk/index.d.ts +0 -203
- package/interfaces/namespaces/vk/index.js +1 -2
- package/interfaces/themes/calendar/index.d.ts +1 -0
- package/interfaces/themes/vkBase/index.d.ts +4 -4
- package/interfaces/themes/vkBaseDark/index.d.ts +4 -4
- package/package.json +1 -1
- package/themeDescriptions/base/vk.d.ts +3 -8
- package/themeDescriptions/base/vk.js +3 -67
- package/themes/calendar/cssVars/declarations/index.css +1 -0
- package/themes/calendar/cssVars/declarations/noColors.css +1 -0
- package/themes/calendar/cssVars/declarations/noSizes.css +1 -0
- package/themes/calendar/cssVars/declarations/onlyVariables.css +1 -0
- package/themes/calendar/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/calendar/cssVars/declarations/onlyVariablesLocal.css +1 -0
- package/themes/calendar/cssVars/declarations/onlyVariablesLocalIncremental.css +1 -0
- package/themes/calendar/cssVars/theme/fallbacks/index.css +1 -0
- package/themes/calendar/cssVars/theme/fallbacks/index.less +1 -0
- package/themes/calendar/cssVars/theme/fallbacks/index.pcss +1 -0
- package/themes/calendar/cssVars/theme/fallbacks/index.scss +1 -0
- package/themes/calendar/cssVars/theme/fallbacks/index.styl +1 -0
- package/themes/calendar/cssVars/theme/index.js +4 -0
- package/themes/calendar/cssVars/theme/index.json +4 -0
- package/themes/calendar/docs.json +4 -0
- package/themes/calendar/index.css +1 -0
- package/themes/calendar/index.js +1 -0
- package/themes/calendar/index.json +1 -0
- package/themes/calendar/index.less +1 -0
- package/themes/calendar/index.pcss +1 -0
- package/themes/calendar/index.scss +1 -0
- package/themes/calendar/index.styl +1 -0
- package/themes/calendar/struct.json +1 -0
- package/themes/calendarDark/cssVars/declarations/index.css +1 -0
- package/themes/calendarDark/cssVars/declarations/noColors.css +1 -0
- package/themes/calendarDark/cssVars/declarations/noSizes.css +1 -0
- package/themes/calendarDark/cssVars/declarations/onlyVariables.css +1 -0
- package/themes/calendarDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/calendarDark/cssVars/declarations/onlyVariablesLocal.css +1 -0
- package/themes/calendarDark/cssVars/declarations/onlyVariablesLocalIncremental.css +1 -0
- package/themes/calendarDark/cssVars/theme/fallbacks/index.css +1 -0
- package/themes/calendarDark/cssVars/theme/fallbacks/index.less +1 -0
- package/themes/calendarDark/cssVars/theme/fallbacks/index.pcss +1 -0
- package/themes/calendarDark/cssVars/theme/fallbacks/index.scss +1 -0
- package/themes/calendarDark/cssVars/theme/fallbacks/index.styl +1 -0
- package/themes/calendarDark/cssVars/theme/index.js +4 -0
- package/themes/calendarDark/cssVars/theme/index.json +4 -0
- package/themes/calendarDark/docs.json +4 -0
- package/themes/calendarDark/index.css +1 -0
- package/themes/calendarDark/index.js +1 -0
- package/themes/calendarDark/index.json +1 -0
- package/themes/calendarDark/index.less +1 -0
- package/themes/calendarDark/index.pcss +1 -0
- package/themes/calendarDark/index.scss +1 -0
- package/themes/calendarDark/index.styl +1 -0
- package/themes/calendarDark/struct.json +1 -0
- package/themes/vkBase/cssVars/declarations/index.css +0 -79
- package/themes/vkBase/cssVars/declarations/noColors.css +0 -34
- package/themes/vkBase/cssVars/declarations/noSizes.css +0 -79
- package/themes/vkBase/cssVars/declarations/onlyColors.css +0 -45
- package/themes/vkBase/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkBase/cssVars/declarations/onlyVariables.css +0 -79
- package/themes/vkBase/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkBase/cssVars/declarations/onlyVariablesLocal.css +0 -79
- package/themes/vkBase/cssVars/declarations/onlyVariablesLocalIncremental.css +0 -79
- package/themes/vkBase/cssVars/theme/fallbacks/index.css +0 -79
- package/themes/vkBase/cssVars/theme/fallbacks/index.less +0 -79
- package/themes/vkBase/cssVars/theme/fallbacks/index.pcss +0 -79
- package/themes/vkBase/cssVars/theme/fallbacks/index.scss +0 -79
- package/themes/vkBase/cssVars/theme/fallbacks/index.styl +0 -79
- package/themes/vkBase/cssVars/theme/index.js +0 -346
- package/themes/vkBase/cssVars/theme/index.json +0 -346
- package/themes/vkBase/docs.json +0 -434
- package/themes/vkBase/index.css +0 -79
- package/themes/vkBase/index.js +0 -109
- package/themes/vkBase/index.json +0 -109
- package/themes/vkBase/index.less +0 -79
- package/themes/vkBase/index.pcss +0 -79
- package/themes/vkBase/index.scss +0 -79
- package/themes/vkBase/index.styl +0 -79
- package/themes/vkBase/struct.json +0 -109
- package/themes/vkBaseDark/cssVars/declarations/index.css +0 -79
- package/themes/vkBaseDark/cssVars/declarations/noColors.css +0 -34
- package/themes/vkBaseDark/cssVars/declarations/noSizes.css +0 -79
- package/themes/vkBaseDark/cssVars/declarations/onlyColors.css +0 -45
- package/themes/vkBaseDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkBaseDark/cssVars/declarations/onlyVariables.css +0 -79
- package/themes/vkBaseDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkBaseDark/cssVars/declarations/onlyVariablesLocal.css +0 -79
- package/themes/vkBaseDark/cssVars/declarations/onlyVariablesLocalIncremental.css +0 -45
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.css +0 -79
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.less +0 -79
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.pcss +0 -79
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.scss +0 -79
- package/themes/vkBaseDark/cssVars/theme/fallbacks/index.styl +0 -79
- package/themes/vkBaseDark/cssVars/theme/index.js +0 -346
- package/themes/vkBaseDark/cssVars/theme/index.json +0 -346
- package/themes/vkBaseDark/docs.json +0 -434
- package/themes/vkBaseDark/index.css +0 -79
- package/themes/vkBaseDark/index.js +0 -109
- package/themes/vkBaseDark/index.json +0 -109
- package/themes/vkBaseDark/index.less +0 -79
- package/themes/vkBaseDark/index.pcss +0 -79
- package/themes/vkBaseDark/index.scss +0 -79
- package/themes/vkBaseDark/index.styl +0 -79
- package/themes/vkBaseDark/struct.json +0 -109
- package/themes/vkCom/cssVars/declarations/index.css +0 -79
- package/themes/vkCom/cssVars/declarations/noColors.css +0 -34
- package/themes/vkCom/cssVars/declarations/noSizes.css +0 -79
- package/themes/vkCom/cssVars/declarations/onlyColors.css +0 -45
- package/themes/vkCom/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkCom/cssVars/declarations/onlyVariables.css +0 -79
- package/themes/vkCom/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkCom/cssVars/declarations/onlyVariablesLocal.css +0 -79
- package/themes/vkCom/cssVars/declarations/onlyVariablesLocalIncremental.css +0 -21
- package/themes/vkCom/cssVars/theme/fallbacks/index.css +0 -79
- package/themes/vkCom/cssVars/theme/fallbacks/index.less +0 -79
- package/themes/vkCom/cssVars/theme/fallbacks/index.pcss +0 -79
- package/themes/vkCom/cssVars/theme/fallbacks/index.scss +0 -79
- package/themes/vkCom/cssVars/theme/fallbacks/index.styl +0 -79
- package/themes/vkCom/cssVars/theme/index.js +0 -346
- package/themes/vkCom/cssVars/theme/index.json +0 -346
- package/themes/vkCom/docs.json +0 -434
- package/themes/vkCom/index.css +0 -79
- package/themes/vkCom/index.js +0 -109
- package/themes/vkCom/index.json +0 -109
- package/themes/vkCom/index.less +0 -79
- package/themes/vkCom/index.pcss +0 -79
- package/themes/vkCom/index.scss +0 -79
- package/themes/vkCom/index.styl +0 -79
- package/themes/vkCom/struct.json +0 -109
- package/themes/vkComDark/cssVars/declarations/index.css +0 -79
- package/themes/vkComDark/cssVars/declarations/noColors.css +0 -34
- package/themes/vkComDark/cssVars/declarations/noSizes.css +0 -79
- package/themes/vkComDark/cssVars/declarations/onlyColors.css +0 -45
- package/themes/vkComDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkComDark/cssVars/declarations/onlyVariables.css +0 -79
- package/themes/vkComDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkComDark/cssVars/declarations/onlyVariablesLocal.css +0 -79
- package/themes/vkComDark/cssVars/declarations/onlyVariablesLocalIncremental.css +0 -24
- package/themes/vkComDark/cssVars/theme/fallbacks/index.css +0 -79
- package/themes/vkComDark/cssVars/theme/fallbacks/index.less +0 -79
- package/themes/vkComDark/cssVars/theme/fallbacks/index.pcss +0 -79
- package/themes/vkComDark/cssVars/theme/fallbacks/index.scss +0 -79
- package/themes/vkComDark/cssVars/theme/fallbacks/index.styl +0 -79
- package/themes/vkComDark/cssVars/theme/index.js +0 -346
- package/themes/vkComDark/cssVars/theme/index.json +0 -346
- package/themes/vkComDark/docs.json +0 -434
- package/themes/vkComDark/index.css +0 -79
- package/themes/vkComDark/index.js +0 -109
- package/themes/vkComDark/index.json +0 -109
- package/themes/vkComDark/index.less +0 -79
- package/themes/vkComDark/index.pcss +0 -79
- package/themes/vkComDark/index.scss +0 -79
- package/themes/vkComDark/index.styl +0 -79
- package/themes/vkComDark/struct.json +0 -109
- package/themes/vkIOS/cssVars/declarations/index.css +0 -79
- package/themes/vkIOS/cssVars/declarations/noColors.css +0 -34
- package/themes/vkIOS/cssVars/declarations/noSizes.css +0 -79
- package/themes/vkIOS/cssVars/declarations/onlyColors.css +0 -45
- package/themes/vkIOS/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkIOS/cssVars/declarations/onlyVariables.css +0 -79
- package/themes/vkIOS/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkIOS/cssVars/declarations/onlyVariablesLocal.css +0 -79
- package/themes/vkIOS/cssVars/theme/fallbacks/index.css +0 -79
- package/themes/vkIOS/cssVars/theme/fallbacks/index.less +0 -79
- package/themes/vkIOS/cssVars/theme/fallbacks/index.pcss +0 -79
- package/themes/vkIOS/cssVars/theme/fallbacks/index.scss +0 -79
- package/themes/vkIOS/cssVars/theme/fallbacks/index.styl +0 -79
- package/themes/vkIOS/cssVars/theme/index.js +0 -346
- package/themes/vkIOS/cssVars/theme/index.json +0 -346
- package/themes/vkIOS/docs.json +0 -434
- package/themes/vkIOS/index.css +0 -79
- package/themes/vkIOS/index.js +0 -109
- package/themes/vkIOS/index.json +0 -109
- package/themes/vkIOS/index.less +0 -79
- package/themes/vkIOS/index.pcss +0 -79
- package/themes/vkIOS/index.scss +0 -79
- package/themes/vkIOS/index.styl +0 -79
- package/themes/vkIOS/struct.json +0 -109
- package/themes/vkIOSDark/cssVars/declarations/index.css +0 -79
- package/themes/vkIOSDark/cssVars/declarations/noColors.css +0 -34
- package/themes/vkIOSDark/cssVars/declarations/noSizes.css +0 -79
- package/themes/vkIOSDark/cssVars/declarations/onlyColors.css +0 -45
- package/themes/vkIOSDark/cssVars/declarations/onlyColors.js +2 -2
- package/themes/vkIOSDark/cssVars/declarations/onlyVariables.css +0 -79
- package/themes/vkIOSDark/cssVars/declarations/onlyVariables.js +2 -2
- package/themes/vkIOSDark/cssVars/declarations/onlyVariablesLocal.css +0 -79
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.css +0 -79
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.less +0 -79
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.pcss +0 -79
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.scss +0 -79
- package/themes/vkIOSDark/cssVars/theme/fallbacks/index.styl +0 -79
- package/themes/vkIOSDark/cssVars/theme/index.js +0 -346
- package/themes/vkIOSDark/cssVars/theme/index.json +0 -346
- package/themes/vkIOSDark/docs.json +0 -434
- package/themes/vkIOSDark/index.css +0 -79
- package/themes/vkIOSDark/index.js +0 -109
- package/themes/vkIOSDark/index.json +0 -109
- package/themes/vkIOSDark/index.less +0 -79
- package/themes/vkIOSDark/index.pcss +0 -79
- package/themes/vkIOSDark/index.scss +0 -79
- package/themes/vkIOSDark/index.styl +0 -79
- package/themes/vkIOSDark/struct.json +0 -109
- package/build/helpers/appearance.d.ts +0 -5
- package/build/helpers/appearance.js +0 -34
- package/build/helpers/appearance.test.d.ts +0 -1
- package/build/helpers/appearance.test.js +0 -29
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import { Theme, ThemeCssVars, ThemeDescription } from '../../general';
|
|
2
|
-
import { ColorDescription, ColorsDescriptionStruct, ColorWithStates } from '../../general/colors';
|
|
3
|
-
import { GradientPoints } from '../../general/gradients';
|
|
4
|
-
import { Tokens } from '../../general/tools/tokenValue';
|
|
5
|
-
export interface VkGradients {
|
|
6
|
-
/**
|
|
7
|
-
* @desc Градиент AquamarineBlue
|
|
8
|
-
* @tags gradient
|
|
9
|
-
*/
|
|
10
|
-
gradientAquamarineBlue: GradientPoints;
|
|
11
|
-
/**
|
|
12
|
-
* @desc Градиент Blue
|
|
13
|
-
* @tags gradient
|
|
14
|
-
*/
|
|
15
|
-
gradientBlue: GradientPoints;
|
|
16
|
-
/**
|
|
17
|
-
* @desc Градиент Candy
|
|
18
|
-
* @tags gradient
|
|
19
|
-
*/
|
|
20
|
-
gradientCandy: GradientPoints;
|
|
21
|
-
/**
|
|
22
|
-
* @desc Градиент Crimson
|
|
23
|
-
* @tags gradient
|
|
24
|
-
*/
|
|
25
|
-
gradientCrimson: GradientPoints;
|
|
26
|
-
/**
|
|
27
|
-
* @desc Градиент Disco
|
|
28
|
-
* @tags gradient
|
|
29
|
-
*/
|
|
30
|
-
gradientDisco: GradientPoints;
|
|
31
|
-
/**
|
|
32
|
-
* @desc Градиент Emerald
|
|
33
|
-
* @tags gradient
|
|
34
|
-
*/
|
|
35
|
-
gradientEmerald: GradientPoints;
|
|
36
|
-
/**
|
|
37
|
-
* @desc Градиент Gray
|
|
38
|
-
* @tags gradient
|
|
39
|
-
*/
|
|
40
|
-
gradientGray: GradientPoints;
|
|
41
|
-
/**
|
|
42
|
-
* @desc Градиент Green
|
|
43
|
-
* @tags gradient
|
|
44
|
-
*/
|
|
45
|
-
gradientGreen: GradientPoints;
|
|
46
|
-
/**
|
|
47
|
-
* @desc Градиент Lagoon
|
|
48
|
-
* @tags gradient
|
|
49
|
-
*/
|
|
50
|
-
gradientLagoon: GradientPoints;
|
|
51
|
-
/**
|
|
52
|
-
* @desc Градиент Lavender
|
|
53
|
-
* @tags gradient
|
|
54
|
-
*/
|
|
55
|
-
gradientLavender: GradientPoints;
|
|
56
|
-
/**
|
|
57
|
-
* @desc Градиент Marine
|
|
58
|
-
* @tags gradient
|
|
59
|
-
*/
|
|
60
|
-
gradientMarine: GradientPoints;
|
|
61
|
-
/**
|
|
62
|
-
* @desc Градиент Midnight
|
|
63
|
-
* @tags gradient
|
|
64
|
-
*/
|
|
65
|
-
gradientMidnight: GradientPoints;
|
|
66
|
-
/**
|
|
67
|
-
* @desc Градиент Orange
|
|
68
|
-
* @tags gradient
|
|
69
|
-
*/
|
|
70
|
-
gradientOrange: GradientPoints;
|
|
71
|
-
/**
|
|
72
|
-
* @desc Градиент Pink
|
|
73
|
-
* @tags gradient
|
|
74
|
-
*/
|
|
75
|
-
gradientPink: GradientPoints;
|
|
76
|
-
/**
|
|
77
|
-
* @desc Градиент Purple
|
|
78
|
-
* @tags gradient
|
|
79
|
-
*/
|
|
80
|
-
gradientPurple: GradientPoints;
|
|
81
|
-
/**
|
|
82
|
-
* @desc Градиент RaspberryPink
|
|
83
|
-
* @tags gradient
|
|
84
|
-
*/
|
|
85
|
-
gradientRaspberryPink: GradientPoints;
|
|
86
|
-
/**
|
|
87
|
-
* @desc Градиент Red
|
|
88
|
-
* @tags gradient
|
|
89
|
-
*/
|
|
90
|
-
gradientRed: GradientPoints;
|
|
91
|
-
/**
|
|
92
|
-
* @desc Градиент Retrowave
|
|
93
|
-
* @tags gradient
|
|
94
|
-
*/
|
|
95
|
-
gradientRetrowave: GradientPoints;
|
|
96
|
-
/**
|
|
97
|
-
* @desc Градиент Sunset
|
|
98
|
-
* @tags gradient
|
|
99
|
-
*/
|
|
100
|
-
gradientSunset: GradientPoints;
|
|
101
|
-
/**
|
|
102
|
-
* @desc Градиент Turquoise
|
|
103
|
-
* @tags gradient
|
|
104
|
-
*/
|
|
105
|
-
gradientTurquoise: GradientPoints;
|
|
106
|
-
/**
|
|
107
|
-
* @desc Градиент Twilight
|
|
108
|
-
* @tags gradient
|
|
109
|
-
*/
|
|
110
|
-
gradientTwilight: GradientPoints;
|
|
111
|
-
/**
|
|
112
|
-
* @desc Градиент Unicorn
|
|
113
|
-
* @tags gradient
|
|
114
|
-
*/
|
|
115
|
-
gradientUnicorn: GradientPoints;
|
|
116
|
-
/**
|
|
117
|
-
* @desc Градиент Violet
|
|
118
|
-
* @tags gradient
|
|
119
|
-
*/
|
|
120
|
-
gradientViolet: GradientPoints;
|
|
121
|
-
/**
|
|
122
|
-
* @desc Градиент Yellow
|
|
123
|
-
* @tags gradient
|
|
124
|
-
*/
|
|
125
|
-
gradientYellow: GradientPoints;
|
|
126
|
-
/**
|
|
127
|
-
* @desc Градиент YellowBright
|
|
128
|
-
* @tags gradient
|
|
129
|
-
*/
|
|
130
|
-
gradientYellowBright: GradientPoints;
|
|
131
|
-
/**
|
|
132
|
-
* @desc Градиент HalloweenOrange
|
|
133
|
-
* @tags gradient
|
|
134
|
-
*/
|
|
135
|
-
gradientHalloweenOrange: GradientPoints;
|
|
136
|
-
/**
|
|
137
|
-
* @desc Градиент HalloweenViolet
|
|
138
|
-
* @tags gradient
|
|
139
|
-
*/
|
|
140
|
-
gradientHalloweenViolet: GradientPoints;
|
|
141
|
-
/**
|
|
142
|
-
* @desc Градиент NewYear
|
|
143
|
-
* @tags gradient
|
|
144
|
-
*/
|
|
145
|
-
gradientNewYear: GradientPoints;
|
|
146
|
-
/**
|
|
147
|
-
* @desc Градиент Frost
|
|
148
|
-
* @tags gradient
|
|
149
|
-
*/
|
|
150
|
-
gradientFrost: GradientPoints;
|
|
151
|
-
/**
|
|
152
|
-
* @desc Градиент Valentine
|
|
153
|
-
* @tags gradient
|
|
154
|
-
*/
|
|
155
|
-
gradientValentine: GradientPoints;
|
|
156
|
-
/**
|
|
157
|
-
* @desc Градиент WarmValentine
|
|
158
|
-
* @tags gradient
|
|
159
|
-
*/
|
|
160
|
-
gradientWarmValentine: GradientPoints;
|
|
161
|
-
/**
|
|
162
|
-
* @desc Градиент Sberkot
|
|
163
|
-
* @tags gradient
|
|
164
|
-
*/
|
|
165
|
-
gradientSberkot: GradientPoints;
|
|
166
|
-
/**
|
|
167
|
-
* @desc Градиент Mable
|
|
168
|
-
* @tags gradient
|
|
169
|
-
*/
|
|
170
|
-
gradientMable: GradientPoints;
|
|
171
|
-
/**
|
|
172
|
-
* @desc Градиент WomensDay
|
|
173
|
-
* @tags gradient
|
|
174
|
-
*/
|
|
175
|
-
gradientWomensDay: GradientPoints;
|
|
176
|
-
}
|
|
177
|
-
export interface LocalVkColorsDescriptionStruct {
|
|
178
|
-
colorSnippetBorderAlpha: ColorDescription;
|
|
179
|
-
colorModalCardBorderAlpha: ColorDescription;
|
|
180
|
-
colorLandingSnippetBorderAlpha: ColorDescription;
|
|
181
|
-
colorActionSheetSeparatorAlpha: ColorDescription;
|
|
182
|
-
colorInputBorder: ColorDescription;
|
|
183
|
-
colorImForwardLineAlpha: ColorDescription;
|
|
184
|
-
colorImBubbleBorderAlternateHighlightedAlpha: ColorDescription;
|
|
185
|
-
colorImBubbleIncoming: ColorDescription;
|
|
186
|
-
colorImBubbleIncomingAlternate: ColorDescription;
|
|
187
|
-
colorImBubbleIncomingExpiring: ColorDescription;
|
|
188
|
-
colorImBubbleOutgoing: ColorDescription;
|
|
189
|
-
colorImBubbleOutgoingExpiringHighlighted: ColorDescription;
|
|
190
|
-
colorImBubbleGiftText: ColorDescription;
|
|
191
|
-
colorImBubbleGiftTextSecondary: ColorDescription;
|
|
192
|
-
colorImTextName: ColorDescription;
|
|
193
|
-
}
|
|
194
|
-
export type VkLocalColors = {
|
|
195
|
-
[key in keyof LocalVkColorsDescriptionStruct]: ColorWithStates;
|
|
196
|
-
};
|
|
197
|
-
export interface VkTheme extends Theme, VkGradients, VkLocalColors {
|
|
198
|
-
}
|
|
199
|
-
export interface VkThemeDescription extends ThemeDescription, Tokens<VkGradients> {
|
|
200
|
-
colors: LocalVkColorsDescriptionStruct & ColorsDescriptionStruct;
|
|
201
|
-
}
|
|
202
|
-
export interface VkThemeCssVars extends ThemeCssVars<VkTheme> {
|
|
203
|
-
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
// место где можно оперделить локальные переменные вк, как вариант
|
|
@@ -14,6 +14,7 @@ export interface ThemeCalendarOverValues {
|
|
|
14
14
|
calendarSizeBorderRadiusLarge: number;
|
|
15
15
|
calendarImageOverlayBackground: string;
|
|
16
16
|
calendarElevationEventForm: string;
|
|
17
|
+
calendarImageBackground: string;
|
|
17
18
|
}
|
|
18
19
|
export interface LocalCalendarColorDescriptionStruct {
|
|
19
20
|
calendarColorBackgroundPositiveTintAlpha4: ColorDescription;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ThemeVkBase extends
|
|
1
|
+
import { Theme, ThemeCssVars, ThemeDescription } from '../../general';
|
|
2
|
+
export interface ThemeVkBase extends Theme {
|
|
3
3
|
}
|
|
4
|
-
export interface ThemeVkBaseDescription extends
|
|
4
|
+
export interface ThemeVkBaseDescription extends ThemeDescription {
|
|
5
5
|
}
|
|
6
|
-
export interface ThemeVkBaseCssVars extends
|
|
6
|
+
export interface ThemeVkBaseCssVars extends ThemeCssVars {
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ThemeVkBaseDark extends
|
|
1
|
+
import { Theme, ThemeCssVars, ThemeDescription } from '../../general';
|
|
2
|
+
export interface ThemeVkBaseDark extends Theme {
|
|
3
3
|
}
|
|
4
|
-
export interface ThemeVkBaseDarkDescription extends
|
|
4
|
+
export interface ThemeVkBaseDarkDescription extends ThemeDescription {
|
|
5
5
|
}
|
|
6
|
-
export interface ThemeVkBaseDarkCssVars extends
|
|
6
|
+
export interface ThemeVkBaseDarkCssVars extends ThemeCssVars {
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/vkui-tokens",
|
|
3
|
-
"version": "4.30.1
|
|
3
|
+
"version": "4.30.1",
|
|
4
4
|
"description": "Репозиторий, который содержит в себе дизайн-токены и другие инструменты объединенной дизайн-системы VKUI и Paradigm",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "utils/descriptions.js",
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { vkcom_dark, vkcom_light } from '@vkontakte/appearance/main.valette/scheme_web.json';
|
|
3
|
-
import { ColorsDescription } from '../../interfaces/general';
|
|
1
|
+
import { ColorsDescription, ThemeDescription } from '../../interfaces/general';
|
|
4
2
|
import { Elevation } from '../../interfaces/general/elevation';
|
|
5
3
|
import { Gradients } from '../../interfaces/general/gradients';
|
|
6
|
-
import { LocalVkColorsDescriptionStruct, VkGradients, VkThemeDescription } from '../../interfaces/namespaces/vk';
|
|
7
|
-
export declare const vkLocalColors: (theme: typeof bright_light | typeof space_gray | typeof vkcom_light | typeof vkcom_dark, palette?: Record<string, string>) => LocalVkColorsDescriptionStruct;
|
|
8
4
|
export declare const lightColors: ColorsDescription;
|
|
9
5
|
export declare const lightGradient: Gradients;
|
|
10
6
|
export declare const lightElevation: Elevation;
|
|
11
7
|
export declare const darkColors: ColorsDescription;
|
|
12
8
|
export declare const darkGradient: Gradients;
|
|
13
9
|
export declare const darkElevation: Elevation;
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const darkTheme: VkThemeDescription;
|
|
10
|
+
export declare const lightTheme: ThemeDescription;
|
|
11
|
+
export declare const darkTheme: ThemeDescription;
|
|
@@ -10,38 +10,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.darkTheme = exports.lightTheme = exports.
|
|
18
|
-
var palette_json_1 = __importDefault(require("@vkontakte/appearance/main.valette/palette.json"));
|
|
19
|
-
var scheme_json_1 = require("@vkontakte/appearance/main.valette/scheme.json");
|
|
20
|
-
var appearance_1 = require("../../build/helpers/appearance");
|
|
14
|
+
exports.darkTheme = exports.lightTheme = exports.darkElevation = exports.darkGradient = exports.darkColors = exports.lightElevation = exports.lightGradient = exports.lightColors = void 0;
|
|
21
15
|
var getGradientPointsFromColor_1 = require("../../build/helpers/getGradientPointsFromColor");
|
|
22
16
|
var tokenHelpers_1 = require("../../build/helpers/tokenHelpers");
|
|
23
|
-
var vkLocalColors = function (theme, palette) {
|
|
24
|
-
if (palette === void 0) { palette = palette_json_1.default; }
|
|
25
|
-
var resolve = function (clusterData) { return (0, appearance_1.resolveColor)(clusterData, palette); };
|
|
26
|
-
return {
|
|
27
|
-
colorSnippetBorderAlpha: resolve(theme.colors.snippet_border),
|
|
28
|
-
colorModalCardBorderAlpha: resolve(theme.colors.modal_card_border),
|
|
29
|
-
colorLandingSnippetBorderAlpha: resolve(theme.colors.landing_snippet_border),
|
|
30
|
-
colorActionSheetSeparatorAlpha: resolve(theme.colors.action_sheet_separator),
|
|
31
|
-
colorInputBorder: resolve(theme.colors.input_border),
|
|
32
|
-
colorImForwardLineAlpha: resolve(theme.colors.im_forward_line_tint),
|
|
33
|
-
colorImBubbleBorderAlternateHighlightedAlpha: resolve(theme.colors.im_bubble_border_alternate_highlighted),
|
|
34
|
-
colorImBubbleIncoming: resolve(theme.colors.im_bubble_incoming),
|
|
35
|
-
colorImBubbleIncomingAlternate: resolve(theme.colors.im_bubble_incoming_alternate),
|
|
36
|
-
colorImBubbleIncomingExpiring: resolve(theme.colors.im_bubble_incoming_expiring),
|
|
37
|
-
colorImBubbleOutgoing: resolve(theme.colors.im_bubble_outgoing),
|
|
38
|
-
colorImBubbleOutgoingExpiringHighlighted: resolve(theme.colors.im_bubble_outgoing_expiring_highlighted),
|
|
39
|
-
colorImBubbleGiftText: resolve(theme.colors.im_bubble_gift_text),
|
|
40
|
-
colorImBubbleGiftTextSecondary: resolve(theme.colors.im_bubble_gift_text_secondary),
|
|
41
|
-
colorImTextName: resolve(theme.colors.im_text_name),
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
exports.vkLocalColors = vkLocalColors;
|
|
45
17
|
var fontFamilyAccent = "-apple-system, system-ui, \"Helvetica Neue\", Roboto, sans-serif";
|
|
46
18
|
var fontFamilyBase = "-apple-system, system-ui, \"Helvetica Neue\", Roboto, sans-serif";
|
|
47
19
|
var fontWeightAccent1 = 600;
|
|
@@ -307,43 +279,7 @@ exports.darkElevation = {
|
|
|
307
279
|
elevation3: '0px 0px 2px rgba(0, 0, 0, 0.08), 0px 4px 16px rgba(0, 0, 0, 0.08)',
|
|
308
280
|
elevation4: '0px 0px 8px rgba(0, 0, 0, 0.12), 0px 16px 16px rgba(0, 0, 0, 0.16)',
|
|
309
281
|
};
|
|
310
|
-
exports.
|
|
311
|
-
gradientAquamarineBlue: '#7DF1FA, #2BB4D6',
|
|
312
|
-
gradientBlue: '#66CCFF, #3F8AE0',
|
|
313
|
-
gradientCandy: '#FF99CC, #E52E6A',
|
|
314
|
-
gradientCrimson: '#FF7373, #E53949, #BF1C38',
|
|
315
|
-
gradientDisco: '#FFB726, #FF2693, #8122E0, #2693FF',
|
|
316
|
-
gradientEmerald: '#00D948, #0D8046',
|
|
317
|
-
gradientGray: '#C1CAD6, #878F99',
|
|
318
|
-
gradientGreen: '#6CD97E, #12B312',
|
|
319
|
-
gradientLagoon: '#2BD9D9, #5C9CE6',
|
|
320
|
-
gradientLavender: '#928FFF, #4B47B2',
|
|
321
|
-
gradientMarine: '#2EE54D, #0D7EFF',
|
|
322
|
-
gradientMidnight: '#73D0FF, #3885E1, #0032A6',
|
|
323
|
-
gradientOrange: '#FFBF80, #E66B2E',
|
|
324
|
-
gradientPink: '#FF8880, #E62E6B',
|
|
325
|
-
gradientPurple: '#A393F5, #735CE6',
|
|
326
|
-
gradientRaspberryPink: '#FF80D5, #E645B1',
|
|
327
|
-
gradientRed: '#FF7583, #E62E40',
|
|
328
|
-
gradientRetrowave: '#30F2B1, #5967FF, #FF26A5',
|
|
329
|
-
gradientSunset: '#FFD24D, #F26549, #E62E6B',
|
|
330
|
-
gradientTurquoise: '#8AE6E6, #12B3B3',
|
|
331
|
-
gradientTwilight: '#FF4D87, #9F40FF, #3399FF',
|
|
332
|
-
gradientUnicorn: '#FF99CC, #A179F2, #5CA1E6',
|
|
333
|
-
gradientViolet: '#D3A6FF, #903FE0',
|
|
334
|
-
gradientYellow: '#FFC44D, #F07300',
|
|
335
|
-
gradientYellowBright: '#FFD54F, #E7A902',
|
|
336
|
-
gradientHalloweenOrange: '#CB1E3B, #F05C44, #FFA000',
|
|
337
|
-
gradientHalloweenViolet: '#FFA000, #CD4C4B, #792EC0',
|
|
338
|
-
gradientNewYear: '#BB64E4, #805BD7, #2866D5',
|
|
339
|
-
gradientFrost: '#4FA0FF, #016CEA',
|
|
340
|
-
gradientValentine: '#FF8A65, #F25383, #8F13DB',
|
|
341
|
-
gradientWarmValentine: '#F3386A, #FF819E',
|
|
342
|
-
gradientSberkot: '#9DF19D, #31C2A7, #21A19A, #107F8C',
|
|
343
|
-
gradientMable: '#D9F4FF, #D9F4FF',
|
|
344
|
-
gradientWomensDay: '#FF99CC, #E52E6A',
|
|
345
|
-
};
|
|
346
|
-
exports.lightTheme = __assign(__assign(__assign(__assign(__assign(__assign({ themeName: 'vkBase', themeNameBase: 'vkBase' }, exports.lightColors), { colors: __assign(__assign({}, exports.lightColors.colors), (0, exports.vkLocalColors)(scheme_json_1.bright_light)) }), exports.gradients), exports.lightGradient), exports.lightElevation), {
|
|
282
|
+
exports.lightTheme = __assign(__assign(__assign(__assign({ themeName: 'vkBase', themeNameBase: 'vkBase' }, exports.lightColors), exports.lightGradient), exports.lightElevation), {
|
|
347
283
|
// Типографика
|
|
348
284
|
fontFamilyAccent: fontFamilyAccent, fontFamilyBase: fontFamilyBase, fontWeightAccent1: fontWeightAccent1, fontWeightAccent2: fontWeightAccent2, fontWeightAccent3: fontWeightAccent3, fontWeightBase1: fontWeightBase1, fontWeightBase2: fontWeightBase2, fontWeightBase3: fontWeightBase3, fontTitle1: {
|
|
349
285
|
regular: {
|
|
@@ -641,4 +577,4 @@ exports.lightTheme = __assign(__assign(__assign(__assign(__assign(__assign({ the
|
|
|
641
577
|
},
|
|
642
578
|
// Разное
|
|
643
579
|
animationDurationL: '0.4s', animationDurationM: '0.2s', animationDurationS: '0.1s', animationEasingDefault: 'cubic-bezier(0.3, 0.3, 0.5, 1)', animationEasingPlatform: 'cubic-bezier(0.4, 0, 0.2, 1)', opacityDisable: 0.4, opacityDisableAccessibility: 0.64, zIndexModal: 99, zIndexPopout: 100 });
|
|
644
|
-
exports.darkTheme = __assign(__assign(__assign(__assign(__assign(
|
|
580
|
+
exports.darkTheme = __assign(__assign(__assign(__assign(__assign({}, exports.lightTheme), exports.darkColors), exports.darkGradient), exports.darkElevation), { themeName: 'vkBaseDark', themeInheritsFrom: 'vkBase', colorsScheme: 'dark' });
|
|
@@ -348,6 +348,7 @@
|
|
|
348
348
|
--vkui--theme_name_base: 'calendar';
|
|
349
349
|
--vkui--calendar_elevation_header: 0 0 16px 0 rgba(2, 13, 41, 0.12);
|
|
350
350
|
--vkui--calendar_elevation_event_form: 0px 4px 64px 0px rgba(0, 16, 61, 0.2);
|
|
351
|
+
--vkui--calendar_image_background: none;
|
|
351
352
|
--vkui--calendar_size_border_radius_small: 4px;
|
|
352
353
|
--vkui--calendar_size_border_radius_medium: 6px;
|
|
353
354
|
--vkui--calendar_size_border_radius_large: 8px;
|
|
@@ -348,6 +348,7 @@
|
|
|
348
348
|
--vkui--theme_name_base: 'calendar';
|
|
349
349
|
--vkui--calendar_elevation_header: 0 0 16px 0 rgba(2, 13, 41, 0.12);
|
|
350
350
|
--vkui--calendar_elevation_event_form: 0px 4px 64px 0px rgba(0, 16, 61, 0.2);
|
|
351
|
+
--vkui--calendar_image_background: none;
|
|
351
352
|
--vkui--calendar_size_border_radius_small: 4px;
|
|
352
353
|
--vkui--calendar_size_border_radius_medium: 6px;
|
|
353
354
|
--vkui--calendar_size_border_radius_large: 8px;
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
--vkui--theme_name_base: 'calendar';
|
|
29
29
|
--vkui--calendar_elevation_header: 0 0 16px 0 rgba(2, 13, 41, 0.12);
|
|
30
30
|
--vkui--calendar_elevation_event_form: 0px 4px 64px 0px rgba(0, 16, 61, 0.2);
|
|
31
|
+
--vkui--calendar_image_background: none;
|
|
31
32
|
--vkui--calendar_image_overlay_background: none;
|
|
32
33
|
--vkui--colors_scheme: light;
|
|
33
34
|
--vkui--color_background_accent: #005FF9;
|
|
@@ -348,6 +348,7 @@
|
|
|
348
348
|
--vkui--theme_name_base: 'calendar';
|
|
349
349
|
--vkui--calendar_elevation_header: 0 0 16px 0 rgba(2, 13, 41, 0.12);
|
|
350
350
|
--vkui--calendar_elevation_event_form: 0px 4px 64px 0px rgba(0, 16, 61, 0.2);
|
|
351
|
+
--vkui--calendar_image_background: none;
|
|
351
352
|
--vkui--calendar_size_border_radius_small: 4px;
|
|
352
353
|
--vkui--calendar_size_border_radius_medium: 6px;
|
|
353
354
|
--vkui--calendar_size_border_radius_large: 8px;
|