@webitel/styleguide 24.12.76 → 24.12.77

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/styleguide",
3
- "version": "24.12.76",
3
+ "version": "24.12.77",
4
4
  "main": "",
5
5
  "exports": {
6
6
  ".": "./src/lib/main.scss",
@@ -131,111 +131,100 @@ const darkColors = {
131
131
  },
132
132
  outlined: {
133
133
  primary: {
134
- hoverBackground: '{primary.50}',
135
- activeBackground: '{primary.100}',
134
+ hoverBackground: '{primary.highlight.color}',
135
+ activeBackground: '{primary.active.color}',
136
136
  borderColor: '{primary.color}',
137
137
  color: '{primary.color}',
138
138
  },
139
139
  secondary: {
140
- hoverBackground: '{surface.50}',
141
- activeBackground: '{surface.100}',
142
- borderColor: '{surface.600}',
143
- color: '{surface.600}',
140
+ hoverBackground: '{secondary.highlight.color}',
141
+ activeBackground: '{secondary.active.color}',
142
+ borderColor: '{secondary.color}',
143
+ color: '{secondary.foreground}',
144
144
  },
145
145
  success: {
146
- hoverBackground: '{green.50}',
147
- activeBackground: '{green.100}',
148
- borderColor: '{green.500}',
149
- color: '{green.500}',
146
+ hoverBackground: '{success.highlight.color}',
147
+ activeBackground: '{success.active.color}',
148
+ borderColor: '{success.color}',
149
+ color: '{success.color}',
150
150
  },
151
151
  info: {
152
- hoverBackground: '{sky.50}',
153
- activeBackground: '{sky.100}',
154
- borderColor: '{sky.500}',
155
- color: '{sky.500}',
152
+ hoverBackground: '{info.highlight.color}',
153
+ activeBackground: '{info.active.color}',
154
+ borderColor: '{info.color}',
155
+ color: '{info.color}',
156
156
  },
157
157
  warn: {
158
- hoverBackground: '{orange.50}',
159
- activeBackground: '{orange.100}',
160
- borderColor: '{orange.500}',
161
- color: '{orange.500}',
162
- },
163
- help: {
164
- hoverBackground: '{purple.50}',
165
- activeBackground: '{purple.100}',
166
- borderColor: '{purple.500}',
167
- color: '{purple.500}',
168
- },
169
- danger: {
170
- hoverBackground: '{red.50}',
171
- activeBackground: '{red.100}',
172
- borderColor: '{red.500}',
173
- color: '{red.500}',
174
- },
175
- contrast: {
176
- hoverBackground: '{surface.50}',
177
- activeBackground: '{surface.100}',
178
- borderColor: '{surface.950}',
179
- color: '{surface.950}',
180
- },
181
- plain: {
182
- hoverBackground: '{surface.50}',
183
- activeBackground: '{surface.100}',
184
- borderColor: '{surface.900}',
185
- color: '{surface.900}',
158
+ hoverBackground: '{warn.highlight.color}',
159
+ activeBackground: '{warn.active.color}',
160
+ borderColor: '{warn.color}',
161
+ color: '{warn.color}',
162
+ },
163
+ error: {
164
+ hoverBackground: '{error.highlight.color}',
165
+ activeBackground: '{error.active.color}',
166
+ borderColor: '{error.color}',
167
+ color: '{error.color}',
168
+ },
169
+ transfer: {
170
+ hoverBackground: '{transfer.highlight.color}',
171
+ activeBackground: '{transfer.active.color}',
172
+ borderColor: '{transfer.color}',
173
+ color: '{transfer.color}',
174
+ },
175
+ job: {
176
+ hoverBackground: '{task.highlight.color}',
177
+ activeBackground: '{task.active.color}',
178
+ borderColor: '{task.color}',
179
+ color: '{task.color}',
186
180
  },
187
181
  },
188
182
  text: {
189
183
  primary: {
190
- hoverBackground: '{primary.50}',
191
- activeBackground: '{primary.100}',
184
+ hoverBackground: '{primary.hover.color}',
185
+ activeBackground: '{primary.active.color}',
192
186
  color: '{primary.color}',
193
187
  },
194
188
  secondary: {
195
- hoverBackground: '{surface.50}',
196
- activeBackground: '{surface.100}',
197
- color: '{surface.600}',
189
+ hoverBackground: '{secondary.hover.color}',
190
+ activeBackground: '{secondary.active.color}',
191
+ color: '{secondary.foreground}',
198
192
  },
199
193
  success: {
200
- hoverBackground: '{green.50}',
201
- activeBackground: '{green.100}',
202
- color: '{green.500}',
194
+ hoverBackground: '{success.hover.color}',
195
+ activeBackground: '{success.active.color}',
196
+ color: '{success.color}',
203
197
  },
204
198
  info: {
205
- hoverBackground: '{sky.50}',
206
- activeBackground: '{sky.100}',
207
- color: '{sky.500}',
199
+ hoverBackground: '{info.hover.color}',
200
+ activeBackground: '{info.active.color}',
201
+ color: '{info.color}',
208
202
  },
209
203
  warn: {
210
- hoverBackground: '{orange.50}',
211
- activeBackground: '{orange.100}',
212
- color: '{orange.500}',
213
- },
214
- help: {
215
- hoverBackground: '{purple.50}',
216
- activeBackground: '{purple.100}',
217
- color: '{purple.500}',
218
- },
219
- danger: {
220
- hoverBackground: '{red.50}',
221
- activeBackground: '{red.100}',
222
- color: '{red.500}',
223
- },
224
- contrast: {
225
- hoverBackground: '{surface.50}',
226
- activeBackground: '{surface.100}',
227
- color: '{surface.950}',
228
- },
229
- plain: {
230
- hoverBackground: '{surface.50}',
231
- activeBackground: '{surface.100}',
232
- color: '{surface.900}',
204
+ hoverBackground: '{warn.hover.color}',
205
+ activeBackground: '{warn.active.color}',
206
+ color: '{warn.color}',
207
+ },
208
+ job: {
209
+ hoverBackground: '{task.hover.color}',
210
+ activeBackground: '{task.active.color}',
211
+ color: '{task.color}',
212
+ },
213
+ error: {
214
+ hoverBackground: '{error.hover.color}',
215
+ activeBackground: '{error.active.color}',
216
+ color: '{error.color}',
217
+ },
218
+ transfer: {
219
+ hoverBackground: '{transfer.hover.color}',
220
+ activeBackground: '{transfer.active.color}',
221
+ color: '{transfer.color}',
233
222
  },
234
223
  },
235
224
  link: {
236
- color: '{primary.color}',
237
- hoverColor: '{primary.color}',
238
- activeColor: '{primary.color}',
225
+ color: '{info.color}',
226
+ hoverColor: '{info.hover.color}',
227
+ activeColor: '{info.active.color}',
239
228
  },
240
229
  };
241
230
 
@@ -131,111 +131,100 @@ const lightColors = {
131
131
  },
132
132
  outlined: {
133
133
  primary: {
134
- hoverBackground: '{primary.50}',
135
- activeBackground: '{primary.100}',
134
+ hoverBackground: '{primary.highlight.color}',
135
+ activeBackground: '{primary.active.color}',
136
136
  borderColor: '{primary.color}',
137
137
  color: '{primary.color}',
138
138
  },
139
139
  secondary: {
140
- hoverBackground: '{surface.50}',
141
- activeBackground: '{surface.100}',
142
- borderColor: '{surface.600}',
143
- color: '{surface.600}',
140
+ hoverBackground: '{secondary.highlight.color}',
141
+ activeBackground: '{secondary.active.color}',
142
+ borderColor: '{secondary.color}',
143
+ color: '{secondary.foreground}',
144
144
  },
145
145
  success: {
146
- hoverBackground: '{green.50}',
147
- activeBackground: '{green.100}',
148
- borderColor: '{green.500}',
149
- color: '{green.500}',
146
+ hoverBackground: '{success.highlight.color}',
147
+ activeBackground: '{success.active.color}',
148
+ borderColor: '{success.color}',
149
+ color: '{success.color}',
150
150
  },
151
151
  info: {
152
- hoverBackground: '{sky.50}',
153
- activeBackground: '{sky.100}',
154
- borderColor: '{sky.500}',
155
- color: '{sky.500}',
152
+ hoverBackground: '{info.highlight.color}',
153
+ activeBackground: '{info.active.color}',
154
+ borderColor: '{info.color}',
155
+ color: '{info.color}',
156
156
  },
157
157
  warn: {
158
- hoverBackground: '{orange.50}',
159
- activeBackground: '{orange.100}',
160
- borderColor: '{orange.500}',
161
- color: '{orange.500}',
162
- },
163
- help: {
164
- hoverBackground: '{purple.50}',
165
- activeBackground: '{purple.100}',
166
- borderColor: '{purple.500}',
167
- color: '{purple.500}',
168
- },
169
- danger: {
170
- hoverBackground: '{red.50}',
171
- activeBackground: '{red.100}',
172
- borderColor: '{red.500}',
173
- color: '{red.500}',
174
- },
175
- contrast: {
176
- hoverBackground: '{surface.50}',
177
- activeBackground: '{surface.100}',
178
- borderColor: '{surface.950}',
179
- color: '{surface.950}',
180
- },
181
- plain: {
182
- hoverBackground: '{surface.50}',
183
- activeBackground: '{surface.100}',
184
- borderColor: '{surface.900}',
185
- color: '{surface.900}',
158
+ hoverBackground: '{warn.highlight.color}',
159
+ activeBackground: '{warn.active.color}',
160
+ borderColor: '{warn.color}',
161
+ color: '{warn.color}',
162
+ },
163
+ job: {
164
+ hoverBackground: '{task.highlight.color}',
165
+ activeBackground: '{task.active.color}',
166
+ borderColor: '{task.color}',
167
+ color: '{task.color}',
168
+ },
169
+ error: {
170
+ hoverBackground: '{error.highlight.color}',
171
+ activeBackground: '{error.active.color}',
172
+ borderColor: '{error.color}',
173
+ color: '{error.color}',
174
+ },
175
+ transfer: {
176
+ hoverBackground: '{transfer.highlight.color}',
177
+ activeBackground: '{transfer.active.color}',
178
+ borderColor: '{transfer.color}',
179
+ color: '{transfer.color}',
186
180
  },
187
181
  },
188
182
  text: {
189
183
  primary: {
190
- hoverBackground: '{primary.50}',
191
- activeBackground: '{primary.100}',
184
+ hoverBackground: '{primary.hover.color}',
185
+ activeBackground: '{primary.active.color}',
192
186
  color: '{primary.color}',
193
187
  },
194
188
  secondary: {
195
- hoverBackground: '{surface.50}',
196
- activeBackground: '{surface.100}',
197
- color: '{surface.600}',
189
+ hoverBackground: '{secondary.hover.color}',
190
+ activeBackground: '{secondary.active.color}',
191
+ color: '{secondary.foreground}',
198
192
  },
199
193
  success: {
200
- hoverBackground: '{green.50}',
201
- activeBackground: '{green.100}',
202
- color: '{green.500}',
194
+ hoverBackground: '{success.hover.color}',
195
+ activeBackground: '{success.active.color}',
196
+ color: '{success.color}',
203
197
  },
204
198
  info: {
205
- hoverBackground: '{sky.50}',
206
- activeBackground: '{sky.100}',
207
- color: '{sky.500}',
199
+ hoverBackground: '{info.hover.color}',
200
+ activeBackground: '{info.active.color}',
201
+ color: '{info.color}',
208
202
  },
209
203
  warn: {
210
- hoverBackground: '{orange.50}',
211
- activeBackground: '{orange.100}',
212
- color: '{orange.500}',
213
- },
214
- help: {
215
- hoverBackground: '{purple.50}',
216
- activeBackground: '{purple.100}',
217
- color: '{purple.500}',
218
- },
219
- danger: {
220
- hoverBackground: '{red.50}',
221
- activeBackground: '{red.100}',
222
- color: '{red.500}',
223
- },
224
- contrast: {
225
- hoverBackground: '{surface.50}',
226
- activeBackground: '{surface.100}',
227
- color: '{surface.950}',
228
- },
229
- plain: {
230
- hoverBackground: '{surface.50}',
231
- activeBackground: '{surface.100}',
232
- color: '{surface.900}',
204
+ hoverBackground: '{warn.hover.color}',
205
+ activeBackground: '{warn.active.color}',
206
+ color: '{warn.color}',
207
+ },
208
+ job: {
209
+ hoverBackground: '{task.hover.color}',
210
+ activeBackground: '{task.active.color}',
211
+ color: '{task.color}',
212
+ },
213
+ error: {
214
+ hoverBackground: '{error.hover.color}',
215
+ activeBackground: '{error.active.color}',
216
+ color: '{error.color}',
217
+ },
218
+ transfer: {
219
+ hoverBackground: '{transfer.hover.color}',
220
+ activeBackground: '{transfer.active.color}',
221
+ color: '{transfer.color}',
233
222
  },
234
223
  },
235
224
  link: {
236
- color: '{primary.color}',
237
- hoverColor: '{primary.color}',
238
- activeColor: '{primary.color}',
225
+ color: '{info.color}',
226
+ hoverColor: '{info.hover.color}',
227
+ activeColor: '{info.active.color}',
239
228
  },
240
229
  };
241
230
 
@@ -17,6 +17,17 @@ const sizes = {
17
17
  paddingY: '{form.field.lg.padding.y}',
18
18
  iconOnlyWidth: '3.5rem'
19
19
  },
20
+ icon: {
21
+ xs: {
22
+ padding: '0.25rem',
23
+ },
24
+ sm: {
25
+ padding: '0.5rem',
26
+ },
27
+ md: {
28
+ padding: '0.5rem',
29
+ },
30
+ },
20
31
  label: {
21
32
  fontWeight: '500'
22
33
  },
@@ -5,7 +5,8 @@ const darkColor = {
5
5
  hoverColor: '{amber.450}',
6
6
  activeColor: '{amber.400}',
7
7
  foreground: '{amber.950}',
8
- foregroundHover: '{amber.900}'
8
+ foregroundHover: '{amber.900}',
9
+ highlightColor: '{amber.850}'
9
10
  },
10
11
 
11
12
  secondary: {
@@ -13,7 +14,8 @@ const darkColor = {
13
14
  hoverColor: '{gray.850}',
14
15
  activeColor: '{gray.750}',
15
16
  foreground: '{gray.350}',
16
- foregroundHover: '{gray.300}'
17
+ foregroundHover: '{gray.300}',
18
+ highlightColor: '{gray.850}'
17
19
  },
18
20
 
19
21
  success: {
@@ -21,7 +23,8 @@ const darkColor = {
21
23
  hoverColor: '{green.550}',
22
24
  activeColor: '{green.500}',
23
25
  foreground: '{green.950}',
24
- foregroundHover: '{green.900}'
26
+ foregroundHover: '{green.900}',
27
+ highlightColor: '{green.850}'
25
28
  },
26
29
 
27
30
  warn: {
@@ -29,7 +32,8 @@ const darkColor = {
29
32
  hoverColor: '{orange.400}',
30
33
  activeColor: '{orange.350}',
31
34
  foreground: '{orange.950}',
32
- foregroundHover: '{orange.900}'
35
+ foregroundHover: '{orange.900}',
36
+ highlightColor: '{orange.850}'
33
37
  },
34
38
 
35
39
  error: {
@@ -37,7 +41,8 @@ const darkColor = {
37
41
  hoverColor: '{red.350}',
38
42
  activeColor: '{red.300}',
39
43
  foreground: '{red.950}',
40
- foregroundHover: '{red.900}'
44
+ foregroundHover: '{red.900}',
45
+ highlightColor: '{red.850}'
41
46
  },
42
47
 
43
48
  info: {
@@ -45,7 +50,8 @@ const darkColor = {
45
50
  hoverColor: '{light-blue.450}',
46
51
  activeColor: '{light-blue.400}',
47
52
  foreground: '{light-blue.950}',
48
- foregroundHover: '{light-blue.900}'
53
+ foregroundHover: '{light-blue.900}',
54
+ highlightColor: '{light-blue.850}'
49
55
  },
50
56
 
51
57
  task: {
@@ -53,7 +59,8 @@ const darkColor = {
53
59
  hoverColor: '{blue.450}',
54
60
  activeColor: '{blue.400}',
55
61
  foreground: '{blue.950}',
56
- foregroundHover: '{blue.900}'
62
+ foregroundHover: '{blue.900}',
63
+ highlightColor: '{blue.850}'
57
64
  },
58
65
 
59
66
  transfer: {
@@ -61,7 +68,8 @@ const darkColor = {
61
68
  hoverColor: '{indigo.300}',
62
69
  activeColor: '{indigo.250}',
63
70
  foreground: '{indigo.950}',
64
- foregroundHover: '{indigo.900}'
71
+ foregroundHover: '{indigo.900}',
72
+ highlightColor: '{indigo.850}'
65
73
  },
66
74
 
67
75
  chat: {
@@ -69,7 +77,8 @@ const darkColor = {
69
77
  hoverColor: '{cyan.550}',
70
78
  activeColor: '{cyan.500}',
71
79
  foreground: '{cyan.950}',
72
- foregroundHover: '{cyan.900}'
80
+ foregroundHover: '{cyan.900}',
81
+ highlightColor: '{cyan.850}'
73
82
  },
74
83
 
75
84
  email: {
@@ -77,7 +86,8 @@ const darkColor = {
77
86
  hoverColor: '{blue.550}',
78
87
  activeColor: '{blue.500}',
79
88
  foreground: '{blue.950}',
80
- foregroundHover: '{blue.900}'
89
+ foregroundHover: '{blue.900}',
90
+ highlightColor: '{blue.850}'
81
91
  },
82
92
 
83
93
  highlight: {
@@ -5,7 +5,8 @@ const lightColor = {
5
5
  hoverColor: '{amber.450}',
6
6
  activeColor: '{amber.400}',
7
7
  foreground: '{amber.900}',
8
- foregroundHover: '{amber.850}'
8
+ foregroundHover: '{amber.850}',
9
+ highlightColor: '{amber.100}'
9
10
  },
10
11
 
11
12
  secondary: {
@@ -13,7 +14,8 @@ const lightColor = {
13
14
  hoverColor: '{gray.100}',
14
15
  activeColor: '{gray.50}',
15
16
  foreground: '{gray.750}',
16
- foregroundHover: '{gray.700}'
17
+ foregroundHover: '{gray.700}',
18
+ highlightColor: '{gray.50}'
17
19
  },
18
20
 
19
21
  success: {
@@ -21,7 +23,8 @@ const lightColor = {
21
23
  hoverColor: '{green.550}',
22
24
  activeColor: '{green.500}',
23
25
  foreground: '{green.50}',
24
- foregroundHover: '{green.100}'
26
+ foregroundHover: '{green.100}',
27
+ highlightColor: '{green.100}'
25
28
  },
26
29
 
27
30
  warn: {
@@ -29,7 +32,8 @@ const lightColor = {
29
32
  hoverColor: '{orange.400}',
30
33
  activeColor: '{orange.350}',
31
34
  foreground: '{orange.50}',
32
- foregroundHover: '{orange.100}'
35
+ foregroundHover: '{orange.100}',
36
+ highlightColor: '{orange.100}'
33
37
  },
34
38
 
35
39
  error: {
@@ -37,7 +41,8 @@ const lightColor = {
37
41
  hoverColor: '{red.350}',
38
42
  activeColor: '{red.300}',
39
43
  foreground: '{red.50}',
40
- foregroundHover: '{red.100}'
44
+ foregroundHover: '{red.100}',
45
+ highlightColor: '{red.100}'
41
46
  },
42
47
 
43
48
  info: {
@@ -45,7 +50,9 @@ const lightColor = {
45
50
  hoverColor: '{light-blue.450}',
46
51
  activeColor: '{light-blue.400}',
47
52
  foreground: '{light-blue.50}',
48
- foregroundHover: '{light-blue.100}'
53
+ foregroundHover: '{light-blue.100}',
54
+ highlightColor: '{light-blue.100}'
55
+
49
56
  },
50
57
 
51
58
  task: {
@@ -53,7 +60,8 @@ const lightColor = {
53
60
  hoverColor: '{blue.450}',
54
61
  activeColor: '{blue.400}',
55
62
  foreground: '{blue.50}',
56
- foregroundHover: '{blue.100}'
63
+ foregroundHover: '{blue.100}',
64
+ highlightColor: '{blue.100}'
57
65
  },
58
66
 
59
67
  transfer: {
@@ -61,7 +69,8 @@ const lightColor = {
61
69
  hoverColor: '{indigo.300}',
62
70
  activeColor: '{indigo.250}',
63
71
  foreground: '{indigo.50}',
64
- foregroundHover: '{indigo.100}'
72
+ foregroundHover: '{indigo.100}',
73
+ highlightColor: '{indigo.100}'
65
74
  },
66
75
 
67
76
  chat: {
@@ -69,7 +78,8 @@ const lightColor = {
69
78
  hoverColor: '{cyan.550}',
70
79
  activeColor: '{cyan.500}',
71
80
  foreground: '{cyan.50}',
72
- foregroundHover: '{cyan.100}'
81
+ foregroundHover: '{cyan.100}',
82
+ highlightColor: '{cyan.100}'
73
83
  },
74
84
 
75
85
  email: {
@@ -77,7 +87,8 @@ const lightColor = {
77
87
  hoverColor: '{blue.550}',
78
88
  activeColor: '{blue.500}',
79
89
  foreground: '{blue.50}',
80
- foregroundHover: '{blue.100}'
90
+ foregroundHover: '{blue.100}',
91
+ highlightColor: '{blue.100}'
81
92
  },
82
93
 
83
94
  highlight: {
@@ -2,7 +2,7 @@ export default {
2
2
  paddingX: '0.75rem',
3
3
  paddingY: '0.5rem',
4
4
  sm: {
5
- fontSize: '0.875rem',
5
+ fontSize: '0.625rem',
6
6
  paddingX: '0.5rem',
7
7
  paddingY: '0.25rem'
8
8
  },