@webitel/styleguide 24.12.28 → 24.12.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/package.json +2 -2
  2. package/src/lib/primevue/components/button/colors/dark/index.js +172 -217
  3. package/src/lib/primevue/components/button/colors/light/index.js +85 -130
  4. package/src/lib/primevue/components/popover/colors/dark/index.js +0 -3
  5. package/src/lib/primevue/components/popover/colors/light/index.js +1 -4
  6. package/src/lib/primevue/components/popover/sizes/index.js +4 -1
  7. package/src/lib/primevue/components/tooltip/colors/dark/index.js +5 -3
  8. package/src/lib/primevue/components/tooltip/colors/light/index.js +5 -3
  9. package/src/lib/primevue/semantic/color-scheme/base/index.js +12 -0
  10. package/src/lib/primevue/semantic/color-scheme/base/typography/dark-color.js +8 -0
  11. package/src/lib/primevue/semantic/color-scheme/base/typography/index.js +7 -0
  12. package/src/lib/primevue/semantic/color-scheme/base/typography/light-color.js +8 -0
  13. package/src/lib/primevue/semantic/color-scheme/dark-color.js +75 -71
  14. package/src/lib/primevue/semantic/color-scheme/focus-ring/dark/index.js +3 -0
  15. package/src/lib/primevue/semantic/color-scheme/focus-ring/index.js +15 -0
  16. package/src/lib/primevue/semantic/color-scheme/focus-ring/light/index.js +3 -0
  17. package/src/lib/primevue/semantic/color-scheme/index.js +9 -0
  18. package/src/lib/primevue/semantic/color-scheme/light-color.js +68 -64
  19. package/src/lib/primevue/semantic/color-scheme/overlay/dark/index.js +17 -0
  20. package/src/lib/primevue/semantic/color-scheme/overlay/index.js +29 -0
  21. package/src/lib/primevue/semantic/color-scheme/overlay/light/index.js +17 -0
  22. package/src/lib/primevue/semantic/index.js +9 -0
  23. package/src/lib/primevue/semantic/sizes/form-field/index.js +23 -0
  24. package/src/lib/primevue/semantic/sizes/index.js +23 -0
  25. package/src/lib/primevue/semantic/sizes/list/index.js +15 -0
  26. package/src/lib/primevue/semantic/sizes/navigation/index.js +18 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/styleguide",
3
- "version": "24.12.28",
3
+ "version": "24.12.32",
4
4
  "main": "",
5
5
  "exports": {
6
6
  ".": "./src/lib/main.scss",
@@ -16,7 +16,7 @@
16
16
  "./wt-flow-diagram": "./src/wt-flow-diagram/main.scss",
17
17
  "./fonts": "./src/lib/styleguide/fonts/_fonts.scss",
18
18
  "./component-schemes": "./src/lib/primevue/components/index.js",
19
- "./semantic": "./src/lib/primevue/semantic/color-scheme/index.js"
19
+ "./semantic": "./src/lib/primevue/semantic/index.js"
20
20
  },
21
21
  "files": [
22
22
  "src/"
@@ -1,287 +1,242 @@
1
1
  const darkColors = {
2
2
  root: {
3
3
  primary: {
4
- background: '{primary.color}',
5
- hoverBackground: '{primary.hover.color}',
6
- activeBackground: '{primary.active.color}',
7
- borderColor: '{primary.color}',
8
- hoverBorderColor: '{primary.hover.color}',
9
- activeBorderColor: '{primary.active.color}',
10
- color: '{primary.contrast.color}',
11
- hoverColor: '{primary.contrast.color}',
12
- activeColor: '{primary.contrast.color}',
4
+ background: '{primary-color}',
5
+ hoverBackground: '{primary-hover-color}',
6
+ activeBackground: '{primary-active-color}',
7
+ borderColor: '{primary-color}',
8
+ hoverBorderColor: '{primary-hover-color}',
9
+ activeBorderColor: '{primary-active-color}',
10
+ color: '{primary-on-color}',
11
+ hoverColor: '{primary-on-color}',
12
+ activeColor: '{primary-on-color}',
13
13
  focusRing: {
14
- color: '{primary.color}',
15
- shadow: 'none'
16
- }
14
+ color: '{focus-color}',
15
+ shadow: 'none',
16
+ },
17
17
  },
18
18
  secondary: {
19
- background: '{surface.800}',
20
- hoverBackground: '{surface.700}',
21
- activeBackground: '{surface.600}',
22
- borderColor: '{surface.800}',
23
- hoverBorderColor: '{surface.700}',
24
- activeBorderColor: '{surface.600}',
25
- color: '{surface.300}',
26
- hoverColor: '{surface.200}',
27
- activeColor: '{surface.100}',
28
- focusRing: {
29
- color: '{surface.300}',
30
- shadow: 'none'
31
- }
32
- },
33
- info: {
34
- background: '{sky.400}',
35
- hoverBackground: '{sky.300}',
36
- activeBackground: '{sky.200}',
37
- borderColor: '{sky.400}',
38
- hoverBorderColor: '{sky.300}',
39
- activeBorderColor: '{sky.200}',
40
- color: '{sky.950}',
41
- hoverColor: '{sky.950}',
42
- activeColor: '{sky.950}',
19
+ background: '{secondary-color}',
20
+ hoverBackground: '{secondary-hover-color}',
21
+ activeBackground: '{secondary-active-color}',
22
+ borderColor: '{secondary-color}',
23
+ hoverBorderColor: '{secondary-hover-color}',
24
+ activeBorderColor: '{secondary-active-color}',
25
+ color: '{secondary-on-color}',
26
+ hoverColor: '{secondary-on-color}',
27
+ activeColor: '{secondary-on-color}',
43
28
  focusRing: {
44
- color: '{sky.400}',
45
- shadow: 'none'
46
- }
29
+ color: '{focus-color}',
30
+ shadow: 'none',
31
+ },
47
32
  },
48
33
  success: {
49
- background: '{green.400}',
50
- hoverBackground: '{green.300}',
51
- activeBackground: '{green.200}',
52
- borderColor: '{green.400}',
53
- hoverBorderColor: '{green.300}',
54
- activeBorderColor: '{green.200}',
55
- color: '{green.950}',
56
- hoverColor: '{green.950}',
57
- activeColor: '{green.950}',
34
+ background: '{success-color}',
35
+ hoverBackground: '{success-hover-color}',
36
+ activeBackground: '{success-active-color}',
37
+ borderColor: '{success-color}',
38
+ hoverBorderColor: '{success-hover-color}',
39
+ activeBorderColor: '{success-active-color}',
40
+ color: '{success-on-color}',
41
+ hoverColor: '{success-on-color}',
42
+ activeColor: '{success-on-color}',
58
43
  focusRing: {
59
- color: '{green.400}',
60
- shadow: 'none'
61
- }
44
+ color: '{focus-color}',
45
+ shadow: 'none',
46
+ },
62
47
  },
63
48
  warn: {
64
- background: '{orange.400}',
65
- hoverBackground: '{orange.300}',
66
- activeBackground: '{orange.200}',
67
- borderColor: '{orange.400}',
68
- hoverBorderColor: '{orange.300}',
69
- activeBorderColor: '{orange.200}',
70
- color: '{orange.950}',
71
- hoverColor: '{orange.950}',
72
- activeColor: '{orange.950}',
49
+ background: '{warning-color}',
50
+ hoverBackground: '{warning-hover-color}',
51
+ activeBackground: '{warning-active-color}',
52
+ borderColor: '{warning-color}',
53
+ hoverBorderColor: '{warning-hover-color}',
54
+ activeBorderColor: '{warning-active-color}',
55
+ color: '{warning-on-color}',
56
+ hoverColor: '{warning-on-color}',
57
+ activeColor: '{warning-on-color}',
73
58
  focusRing: {
74
- color: '{orange.400}',
75
- shadow: 'none'
76
- }
59
+ color: '{focus-color}',
60
+ shadow: 'none',
61
+ },
77
62
  },
78
- help: {
79
- background: '{purple.400}',
80
- hoverBackground: '{purple.300}',
81
- activeBackground: '{purple.200}',
82
- borderColor: '{purple.400}',
83
- hoverBorderColor: '{purple.300}',
84
- activeBorderColor: '{purple.200}',
85
- color: '{purple.950}',
86
- hoverColor: '{purple.950}',
87
- activeColor: '{purple.950}',
88
- focusRing: {
89
- color: '{purple.400}',
90
- shadow: 'none'
91
- }
92
- },
93
- danger: {
94
- background: '{red.400}',
95
- hoverBackground: '{red.300}',
96
- activeBackground: '{red.200}',
97
- borderColor: '{red.400}',
98
- hoverBorderColor: '{red.300}',
99
- activeBorderColor: '{red.200}',
100
- color: '{red.950}',
101
- hoverColor: '{red.950}',
102
- activeColor: '{red.950}',
63
+ error: {
64
+ background: '{error-color}',
65
+ hoverBackground: '{error-hover-color}',
66
+ activeBackground: '{error-active-color}',
67
+ borderColor: '{error-color}',
68
+ hoverBorderColor: '{error-hover-color}',
69
+ activeBorderColor: '{error-active-color}',
70
+ color: '{error-on-color}',
71
+ hoverColor: '{error-on-color}',
72
+ activeColor: '{error-on-color}',
103
73
  focusRing: {
104
- color: '{red.400}',
105
- shadow: 'none'
106
- }
74
+ color: '{focus-color}',
75
+ shadow: 'none',
76
+ },
107
77
  },
108
- contrast: {
109
- background: '{surface.0}',
110
- hoverBackground: '{surface.100}',
111
- activeBackground: '{surface.200}',
112
- borderColor: '{surface.0}',
113
- hoverBorderColor: '{surface.100}',
114
- activeBorderColor: '{surface.200}',
115
- color: '{surface.950}',
116
- hoverColor: '{surface.950}',
117
- activeColor: '{surface.950}',
78
+ info: {
79
+ background: '{info-color}',
80
+ hoverBackground: '{info-hover-color}',
81
+ activeBackground: '{info-active-color}',
82
+ borderColor: '{info-color}',
83
+ hoverBorderColor: '{info-hover-color}',
84
+ activeBorderColor: '{info-active-color}',
85
+ color: '{info-on-color}',
86
+ hoverColor: '{info-on-color}',
87
+ activeColor: '{info-on-color}',
118
88
  focusRing: {
119
- color: '{surface.0}',
120
- shadow: 'none'
121
- }
89
+ color: '{focus-color}',
90
+ shadow: 'none',
91
+ },
122
92
  },
123
93
  /**
124
- * TODO @Evgeniy Trahtenberg
125
- * need to refactor transfer, error and job colors
94
+ * TODO @Oleksandr Palonnyi
95
+ * need to replace name "job" to "task",
126
96
  * */
127
- transfer: {
128
- background: '{primary.color}',
129
- hoverBackground: '{primary.hover.color}',
130
- activeBackground: '{primary.active.color}',
131
- borderColor: '{primary.color}',
132
- hoverBorderColor: '{primary.hover.color}',
133
- activeBorderColor: '{primary.active.color}',
134
- color: '{primary.contrast.color}',
135
- hoverColor: '{primary.contrast.color}',
136
- activeColor: '{primary.contrast.color}',
137
- focusRing: {
138
- color: '{primary.color}',
139
- shadow: 'none'
140
- }
141
- },
142
- error: {
143
- background: '{primary.color}',
144
- hoverBackground: '{primary.hover.color}',
145
- activeBackground: '{primary.active.color}',
146
- borderColor: '{primary.color}',
147
- hoverBorderColor: '{primary.hover.color}',
148
- activeBorderColor: '{primary.active.color}',
149
- color: '{primary.contrast.color}',
150
- hoverColor: '{primary.contrast.color}',
151
- activeColor: '{primary.contrast.color}',
97
+ job: {
98
+ background: '{task-color}',
99
+ hoverBackground: '{task-hover-color}',
100
+ activeBackground: '{task-active-color}',
101
+ borderColor: '{task-color}',
102
+ hoverBorderColor: '{task-hover-color}',
103
+ activeBorderColor: '{task-active-color}',
104
+ color: '{task-on-color}',
105
+ hoverColor: '{task-on-color}',
106
+ activeColor: '{task-on-color}',
152
107
  focusRing: {
153
- color: '{primary.color}',
154
- shadow: 'none'
155
- }
108
+ color: '{focus-color}',
109
+ shadow: 'none',
110
+ },
156
111
  },
157
- job: {
158
- background: '{primary.color}',
159
- hoverBackground: '{primary.hover.color}',
160
- activeBackground: '{primary.active.color}',
161
- borderColor: '{primary.color}',
162
- hoverBorderColor: '{primary.hover.color}',
163
- activeBorderColor: '{primary.active.color}',
164
- color: '{primary.contrast.color}',
165
- hoverColor: '{primary.contrast.color}',
166
- activeColor: '{primary.contrast.color}',
112
+ transfer: {
113
+ background: '{transfer-color}',
114
+ hoverBackground: '{transfer-hover-color}',
115
+ activeBackground: '{transfer-active-color}',
116
+ borderColor: '{transfer-color}',
117
+ hoverBorderColor: '{transfer-hover-color}',
118
+ activeBorderColor: '{transfer-active-color}',
119
+ color: '{transfer-on-color}',
120
+ hoverColor: '{transfer-on-color}',
121
+ activeColor: '{transfer-on-color}',
167
122
  focusRing: {
168
- color: '{primary.color}',
169
- shadow: 'none'
170
- }
123
+ color: '{focus-color}',
124
+ shadow: 'none',
125
+ },
171
126
  },
172
127
  disabled: {
173
- color: '{grey.darken.1}',
174
- background: '{dp-surface-color.16}',
128
+ color: '{grey-lighten-1}',
129
+ background: '{dp-surface-color-16}',
175
130
  },
176
131
  },
177
132
  outlined: {
178
133
  primary: {
179
- hoverBackground: 'color-mix(in srgb, {primary.color}, transparent 96%)',
180
- activeBackground: 'color-mix(in srgb, {primary.color}, transparent 84%)',
181
- borderColor: '{primary.700}',
182
- color: '{primary.color}'
134
+ hoverBackground: '{primary.50}',
135
+ activeBackground: '{primary.100}',
136
+ borderColor: '{primary.color}',
137
+ color: '{primary.color}',
183
138
  },
184
139
  secondary: {
185
- hoverBackground: 'rgba(255,255,255,0.04)',
186
- activeBackground: 'rgba(255,255,255,0.16)',
187
- borderColor: '{surface.700}',
188
- color: '{surface.400}'
140
+ hoverBackground: '{surface.50}',
141
+ activeBackground: '{surface.100}',
142
+ borderColor: '{surface.600}',
143
+ color: '{surface.600}',
189
144
  },
190
145
  success: {
191
- hoverBackground: 'color-mix(in srgb, {green.400}, transparent 96%)',
192
- activeBackground: 'color-mix(in srgb, {green.400}, transparent 84%)',
193
- borderColor: '{green.700}',
194
- color: '{green.400}'
146
+ hoverBackground: '{green.50}',
147
+ activeBackground: '{green.100}',
148
+ borderColor: '{green.500}',
149
+ color: '{green.500}',
195
150
  },
196
151
  info: {
197
- hoverBackground: 'color-mix(in srgb, {sky.400}, transparent 96%)',
198
- activeBackground: 'color-mix(in srgb, {sky.400}, transparent 84%)',
199
- borderColor: '{sky.700}',
200
- color: '{sky.400}'
152
+ hoverBackground: '{sky.50}',
153
+ activeBackground: '{sky.100}',
154
+ borderColor: '{sky.500}',
155
+ color: '{sky.500}',
201
156
  },
202
157
  warn: {
203
- hoverBackground: 'color-mix(in srgb, {orange.400}, transparent 96%)',
204
- activeBackground: 'color-mix(in srgb, {orange.400}, transparent 84%)',
205
- borderColor: '{orange.700}',
206
- color: '{orange.400}'
158
+ hoverBackground: '{orange.50}',
159
+ activeBackground: '{orange.100}',
160
+ borderColor: '{orange.500}',
161
+ color: '{orange.500}',
207
162
  },
208
163
  help: {
209
- hoverBackground: 'color-mix(in srgb, {purple.400}, transparent 96%)',
210
- activeBackground: 'color-mix(in srgb, {purple.400}, transparent 84%)',
211
- borderColor: '{purple.700}',
212
- color: '{purple.400}'
164
+ hoverBackground: '{purple.50}',
165
+ activeBackground: '{purple.100}',
166
+ borderColor: '{purple.500}',
167
+ color: '{purple.500}',
213
168
  },
214
169
  danger: {
215
- hoverBackground: 'color-mix(in srgb, {red.400}, transparent 96%)',
216
- activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
217
- borderColor: '{red.700}',
218
- color: '{red.400}'
170
+ hoverBackground: '{red.50}',
171
+ activeBackground: '{red.100}',
172
+ borderColor: '{red.500}',
173
+ color: '{red.500}',
219
174
  },
220
175
  contrast: {
221
- hoverBackground: '{surface.800}',
222
- activeBackground: '{surface.700}',
223
- borderColor: '{surface.500}',
224
- color: '{surface.0}'
176
+ hoverBackground: '{surface.50}',
177
+ activeBackground: '{surface.100}',
178
+ borderColor: '{surface.950}',
179
+ color: '{surface.950}',
225
180
  },
226
181
  plain: {
227
- hoverBackground: '{surface.800}',
228
- activeBackground: '{surface.700}',
229
- borderColor: '{surface.600}',
230
- color: '{surface.0}'
231
- }
182
+ hoverBackground: '{surface.50}',
183
+ activeBackground: '{surface.100}',
184
+ borderColor: '{surface.900}',
185
+ color: '{surface.900}',
186
+ },
232
187
  },
233
188
  text: {
234
189
  primary: {
235
- hoverBackground: 'color-mix(in srgb, {primary.color}, transparent 96%)',
236
- activeBackground: 'color-mix(in srgb, {primary.color}, transparent 84%)',
237
- color: '{primary.color}'
190
+ hoverBackground: '{primary.50}',
191
+ activeBackground: '{primary.100}',
192
+ color: '{primary.color}',
238
193
  },
239
194
  secondary: {
240
- hoverBackground: '{surface.800}',
241
- activeBackground: '{surface.700}',
242
- color: '{surface.400}'
195
+ hoverBackground: '{surface.50}',
196
+ activeBackground: '{surface.100}',
197
+ color: '{surface.600}',
243
198
  },
244
199
  success: {
245
- hoverBackground: 'color-mix(in srgb, {green.400}, transparent 96%)',
246
- activeBackground: 'color-mix(in srgb, {green.400}, transparent 84%)',
247
- color: '{green.400}'
200
+ hoverBackground: '{green.50}',
201
+ activeBackground: '{green.100}',
202
+ color: '{green.500}',
248
203
  },
249
204
  info: {
250
- hoverBackground: 'color-mix(in srgb, {sky.400}, transparent 96%)',
251
- activeBackground: 'color-mix(in srgb, {sky.400}, transparent 84%)',
252
- color: '{sky.400}'
205
+ hoverBackground: '{sky.50}',
206
+ activeBackground: '{sky.100}',
207
+ color: '{sky.500}',
253
208
  },
254
209
  warn: {
255
- hoverBackground: 'color-mix(in srgb, {orange.400}, transparent 96%)',
256
- activeBackground: 'color-mix(in srgb, {orange.400}, transparent 84%)',
257
- color: '{orange.400}'
210
+ hoverBackground: '{orange.50}',
211
+ activeBackground: '{orange.100}',
212
+ color: '{orange.500}',
258
213
  },
259
214
  help: {
260
- hoverBackground: 'color-mix(in srgb, {purple.400}, transparent 96%)',
261
- activeBackground: 'color-mix(in srgb, {purple.400}, transparent 84%)',
262
- color: '{purple.400}'
215
+ hoverBackground: '{purple.50}',
216
+ activeBackground: '{purple.100}',
217
+ color: '{purple.500}',
263
218
  },
264
219
  danger: {
265
- hoverBackground: 'color-mix(in srgb, {red.400}, transparent 96%)',
266
- activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
267
- color: '{red.400}'
220
+ hoverBackground: '{red.50}',
221
+ activeBackground: '{red.100}',
222
+ color: '{red.500}',
268
223
  },
269
224
  contrast: {
270
- hoverBackground: '{surface.800}',
271
- activeBackground: '{surface.700}',
272
- color: '{surface.0}'
225
+ hoverBackground: '{surface.50}',
226
+ activeBackground: '{surface.100}',
227
+ color: '{surface.950}',
273
228
  },
274
229
  plain: {
275
- hoverBackground: '{surface.800}',
276
- activeBackground: '{surface.700}',
277
- color: '{surface.0}'
278
- }
230
+ hoverBackground: '{surface.50}',
231
+ activeBackground: '{surface.100}',
232
+ color: '{surface.900}',
233
+ },
279
234
  },
280
235
  link: {
281
236
  color: '{primary.color}',
282
237
  hoverColor: '{primary.color}',
283
- activeColor: '{primary.color}'
284
- }
285
- }
238
+ activeColor: '{primary.color}',
239
+ },
240
+ };
286
241
 
287
242
  export default darkColors