@eturnity/eturnity_reusable_components 8.10.3-EPDM-13568.3 → 8.10.3-EPDM-13568.5

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": "@eturnity/eturnity_reusable_components",
3
- "version": "8.10.3-EPDM-13568.3",
3
+ "version": "8.10.3-EPDM-13568.5",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -1,3 +1,3 @@
1
- <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M8 2C8 1.44772 8.44772 1 9 1C9.55229 1 10 1.44772 10 2C10 2.55228 9.55229 3 9 3C8.44772 3 8 2.55228 8 2ZM7.06301 1.5L0.5 1.5C0.223858 1.5 0 1.72386 0 2C0 2.27614 0.223858 2.5 0.5 2.5L7.06301 2.5C7.28503 3.36261 8.06808 4 9 4C9.93192 4 10.715 3.36261 10.937 2.5L13.5 2.5C13.7761 2.5 14 2.27614 14 2C14 1.72386 13.7761 1.5 13.5 1.5L10.937 1.5C10.715 0.637386 9.93192 0 9 0C8.06808 0 7.28503 0.637386 7.06301 1.5ZM0.5 6.5C0.223858 6.5 0 6.72386 0 7C0 7.27614 0.223858 7.5 0.5 7.5H2.06301C2.28503 8.36261 3.06808 9 4 9C4.93192 9 5.71497 8.36261 5.93699 7.5H13.5C13.7761 7.5 14 7.27614 14 7C14 6.72386 13.7761 6.5 13.5 6.5H5.93699C5.71497 5.63739 4.93192 5 4 5C3.06808 5 2.28503 5.63739 2.06301 6.5H0.5ZM4 6C4.55228 6 5 6.44772 5 7C5 7.55228 4.55228 8 4 8C3.44772 8 3 7.55228 3 7C3 6.44772 3.44772 6 4 6ZM7.06301 11.5L0.5 11.5C0.223858 11.5 0 11.7239 0 12C0 12.2761 0.223858 12.5 0.5 12.5L7.06301 12.5C7.28503 13.3626 8.06808 14 9 14C9.93192 14 10.715 13.3626 10.937 12.5L13.5 12.5C13.7761 12.5 14 12.2761 14 12C14 11.7239 13.7761 11.5 13.5 11.5L10.937 11.5C10.715 10.6374 9.93192 10 9 10C8.06808 10 7.28503 10.6374 7.06301 11.5ZM10 12C10 11.4477 9.55229 11 9 11C8.44772 11 8 11.4477 8 12C8 12.5523 8.44772 13 9 13C9.55229 13 10 12.5523 10 12Z" fill="#263238"/>
1
+ <svg width="12" height="13" viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M6.76294 2.12514C6.83727 1.68168 7.22292 1.34375 7.6875 1.34375C8.15208 1.34375 8.53773 1.68168 8.61206 2.12514C8.59027 2.17267 8.57813 2.22554 8.57813 2.28125C8.57813 2.33695 8.59028 2.38982 8.61206 2.43734C8.53774 2.88081 8.15209 3.21875 7.6875 3.21875C7.22292 3.21875 6.83727 2.88082 6.76294 2.43735C6.78473 2.38983 6.79688 2.33696 6.79688 2.28125C6.79688 2.22554 6.78473 2.17267 6.76294 2.12514ZM6.04182 1.90625C6.21234 1.15475 6.88441 0.59375 7.6875 0.59375C8.4906 0.59375 9.16266 1.15475 9.33318 1.90625L11.4844 1.90625C11.6915 1.90625 11.8594 2.07414 11.8594 2.28125C11.8594 2.48836 11.6915 2.65625 11.4844 2.65625L9.33318 2.65625C9.16266 3.40775 8.4906 3.96875 7.6875 3.96875C6.8844 3.96875 6.21234 3.40774 6.04182 2.65625L0.515625 2.65625C0.308518 2.65625 0.140625 2.48836 0.140625 2.28125C0.140625 2.07414 0.308518 1.90625 0.515625 1.90625L6.04182 1.90625ZM0.515625 6.125C0.308518 6.125 0.140625 6.29289 0.140625 6.5C0.140625 6.70711 0.308518 6.875 0.515625 6.875H1.82307C1.99359 7.6265 2.66565 8.1875 3.46875 8.1875C4.27185 8.1875 4.94391 7.6265 5.11443 6.875H11.4844C11.6915 6.875 11.8594 6.70711 11.8594 6.5C11.8594 6.29289 11.6915 6.125 11.4844 6.125H5.11443C4.94391 5.3735 4.27185 4.8125 3.46875 4.8125C2.66565 4.8125 1.99359 5.3735 1.82307 6.125H0.515625ZM3.46875 7.4375C3.00417 7.4375 2.61852 7.09957 2.54419 6.65611C2.56598 6.60858 2.57813 6.55571 2.57813 6.5C2.57813 6.44429 2.56598 6.39142 2.54419 6.34389C2.61852 5.90043 3.00417 5.5625 3.46875 5.5625C3.93333 5.5625 4.31898 5.90043 4.39331 6.34389C4.37152 6.39142 4.35938 6.44429 4.35938 6.5C4.35938 6.55571 4.37152 6.60858 4.39331 6.65611C4.31898 7.09957 3.93333 7.4375 3.46875 7.4375ZM6.76294 10.5626C6.78473 10.6102 6.79688 10.663 6.79688 10.7188C6.79688 10.7745 6.78473 10.8273 6.76294 10.8749C6.83727 11.3183 7.22292 11.6562 7.6875 11.6562C8.15208 11.6562 8.53773 11.3183 8.61206 10.8749C8.59027 10.8273 8.57813 10.7745 8.57813 10.7188C8.57813 10.663 8.59027 10.6102 8.61206 10.5626C8.53773 10.1192 8.15208 9.78125 7.6875 9.78125C7.22292 9.78125 6.83727 10.1192 6.76294 10.5626ZM6.04182 11.0937L0.515625 11.0938C0.308518 11.0938 0.140625 10.9259 0.140625 10.7187C0.140625 10.5116 0.308518 10.3438 0.515625 10.3438L6.04182 10.3437C6.21234 9.59225 6.88441 9.03125 7.6875 9.03125C8.4906 9.03125 9.16266 9.59225 9.33318 10.3437H11.4844C11.6915 10.3437 11.8594 10.5116 11.8594 10.7188C11.8594 10.9259 11.6915 11.0937 11.4844 11.0937H9.33318C9.16266 11.8452 8.49059 12.4062 7.6875 12.4062C6.8844 12.4062 6.21234 11.8452 6.04182 11.0937Z" fill="#263238"/>
3
3
  </svg>
@@ -1,46 +1,623 @@
1
- const theme = {
2
- colors: {
1
+ const theme = (() => {
2
+ const colors = {
3
3
  primary: '#5900CC',
4
4
  secondary: '#FAF5FF',
5
5
  tertiary: '#d5d5d5',
6
6
  black: '#263238',
7
+ black2: '#151B1E',
7
8
  yellow: '#fdb813',
9
+ yellow2: '#FFEFB7',
10
+ yellow3: '#FFFBEE',
11
+ yellow4: '#FFE066',
8
12
  darkGray: '#818181',
9
- gray1: '#666',
10
13
  mediumGray: '#d5d5d5',
11
14
  lightGray: '#f2f2f2',
12
15
  white: '#ffffff',
13
16
  blue: '#48a2d0',
14
- blue2: '#6CD4D4',
15
- red: '#ff5656',
16
- pureRed: '#ff0000',
17
17
  blue1: '#e4efff',
18
+ blue2: '#f6faff',
19
+ blue3: '#6CD4D4',
20
+ blue4: '#66D0F3',
21
+ blue5: '#00B0EB',
18
22
  brightBlue: '#0068DE',
23
+ ballBlue: '#2CC0EB',
24
+ red: '#FF5656',
25
+ red1: '#f5a2a2',
26
+ red2: '#de5959',
27
+ red3: '#FFCCCC',
28
+ red4: '#FF9A9A',
29
+ pureRed: '#ff0000',
30
+ darkRed: '#d00000',
31
+ cornellRed: '#a52019',
32
+ transparentRed10: '#ff000016',
33
+ transparentRed20: '#ff000032',
34
+ transparentRed40: '#ff000064',
35
+ transparentRed50: '#ff000080',
19
36
  grey1: '#666',
20
37
  grey2: '#c4c4c4',
21
38
  grey3: '#b2b9c5',
22
39
  grey4: '#dee2eb',
23
40
  grey5: '#fafafa',
24
41
  grey6: '#555d61',
42
+ grey7: '#f2f1f7',
43
+ grey8: '#393939',
44
+ grey9: '#607466',
45
+ grey10: '#4a5861',
46
+ grey11: '#656d70',
47
+ grey12: '#787d81',
48
+ grey13: '#CCCCCC',
49
+ grey14: '#D1DBE0',
50
+ grey15: '#E1E7EA',
51
+ grey16: '#F0F3F5',
52
+ grey17: '#394E58',
53
+ grey18: '#3E5C6A',
54
+ grey19: '#6E8E9E',
55
+ grey20: '#D9DEE9',
56
+ grey21: '#3E464B',
57
+ turquoise: '#20A4CA',
25
58
  green: '#99db0c',
26
- transparentWhite1: '#ffffff32',
27
- transparentWhite2: '#ffffff16',
28
- transparentWhite3: '#ffffff48',
29
- transparentBlack1: '#263238e6',
59
+ green2: '#e5fcb4',
60
+ green3: '#C2E96D',
61
+ seaGreen: '#008351',
62
+ purple: '#505ca6', // Keeping this as a standalone purple, but nested purple object below takes precedence for purple[500]
63
+ purple1: '#F1E5FF',
64
+ purple2: '#C739E4',
65
+ purple3: '#E9CEFE',
66
+ purple4: '#D0D6F5',
67
+ purple5: '#533181',
68
+ purple6: '#6F20DC',
69
+ orange: '#ffc338',
30
70
  disabled: '#dfe1e1',
71
+ transparentWhite2: '#ffffff32',
72
+ transparentWhite1: '#ffffff16',
73
+ transparentBlack1: '#263238e6',
74
+ transparentBlue1: '#20a4cae6',
75
+ blueElectric: '#66dffa',
31
76
  eturnityGrey: '#263238',
32
- },
33
- screen: {
34
- mobileSmall: '345px',
35
- mobile: '425px',
36
- mobileLarge: '530px',
37
- tablet: '768px',
38
- tabletLarge: '950px',
39
- },
40
- fonts: {
41
- mainFont: '"Figtree", sans-serif',
42
- },
43
- borderRadius: '4px',
44
- }
77
+ teal: '#018b7d',
78
+ slateGrey: '#495257',
79
+ cornflower: '#6276DF',
80
+ lavender: '#8392EE',
81
+ }
82
+
83
+ const semanticColors = {
84
+ purple: {
85
+ 50: '#F5EEFF',
86
+ 100: '#EEE4FC',
87
+ 200: '#E8D8FE',
88
+ 300: '#D3BBF5',
89
+ 400: '#B17BFA',
90
+ 500: '#6F20DC',
91
+ 600: '#5C1FAF',
92
+ 700: '#411083',
93
+ 800: '#33165A',
94
+ 900: '#190B2D',
95
+ },
96
+ beige: {
97
+ 50: '#F9F5F2',
98
+ 100: '#F2EBE7',
99
+ 200: '#E6D6D0',
100
+ 300: '#D9C2B8',
101
+ 400: '#CDADA1',
102
+ 500: '#C09989',
103
+ 600: '#9A7A6E',
104
+ 700: '#6A5247',
105
+ 800: '#4D3D37',
106
+ 900: '#261F1B',
107
+ },
108
+ grey: {
109
+ 50: '#FDFDFD',
110
+ 100: '#F8F9FB',
111
+ 200: '#F2F3F7',
112
+ 300: '#EBEEF3',
113
+ 400: '#E5E8EF',
114
+ 500: '#D9DEE9',
115
+ 600: '#B2B5BC',
116
+ 700: '#85888D',
117
+ 800: '#595A5E',
118
+ 900: '#2C2D2F',
119
+ },
120
+ teal: {
121
+ 50: '#F0F3F5',
122
+ 100: '#E1E7EA',
123
+ 200: '#D1DBE0',
124
+ 300: '#ADC0C8',
125
+ 400: '#8CA6B3',
126
+ 500: '#6E8E9E',
127
+ 600: '#3E5C6A',
128
+ 700: '#394E58',
129
+ 800: '#263238',
130
+ 900: '#151B1E',
131
+ },
132
+ blue: {
133
+ 50: '#E0F6FD',
134
+ 100: '#CCEFFB',
135
+ 200: '#99DFF7',
136
+ 300: '#66D0F3',
137
+ 400: '#33C0EF',
138
+ 500: '#00B0EB',
139
+ 600: '#008DBC',
140
+ 700: '#006A8D',
141
+ 800: '#00465E',
142
+ 900: '#00232F',
143
+ },
144
+ green: {
145
+ 50: '#F8FFE9',
146
+ 100: '#F2FFD6',
147
+ 200: '#D6F19E',
148
+ 300: '#C2E96D',
149
+ 400: '#ADE23D',
150
+ 500: '#99DB0C',
151
+ 600: '#7AAF0A',
152
+ 700: '#5C8307',
153
+ 800: '#3D5805',
154
+ 900: '#1F2C02',
155
+ },
156
+ yellow: {
157
+ 50: '#FFFBEC',
158
+ 100: '#FFF5CC',
159
+ 200: '#FFEB99',
160
+ 300: '#FFE066',
161
+ 400: '#FFD633',
162
+ 500: '#FFCC00',
163
+ 600: '#CCA300',
164
+ 700: '#997A00',
165
+ 800: '#665200',
166
+ 900: '#332900',
167
+ },
168
+ red: {
169
+ 50: '#FFEBEB',
170
+ 100: '#FFDDDD',
171
+ 200: '#FFBBBB',
172
+ 300: '#FF9A9A',
173
+ 400: '#FF7F7F',
174
+ 500: '#FF6565',
175
+ 600: '#CC4545',
176
+ 700: '#993434',
177
+ 800: '#662222',
178
+ 900: '#331111',
179
+ },
180
+ }
181
+
182
+ return {
183
+ colors,
184
+ semanticColors,
185
+ fonts: {
186
+ mainFont: '"Figtree", sans-serif',
187
+ },
188
+ screen: {
189
+ mobileSmall: '345px',
190
+ mobile: '425px',
191
+ mobileLarge: '530px',
192
+ tablet: '768px',
193
+ tabletLarge: '950px',
194
+ tabletLandscape: '1024px',
195
+ tabletLandscapeLarge: '1280px',
196
+ laptopSmall: '1440px',
197
+ laptopMiddle: '1680px',
198
+ },
199
+ borderRadius: '4px',
200
+ boxShadow: {
201
+ card: '0px 2px 8px 2px rgba(0, 0, 0, 0.15)',
202
+ },
203
+ mainButton: {
204
+ light: {
205
+ // theme
206
+ primary: {
207
+ // type
208
+ main: {
209
+ // variant: this is the default variant
210
+ default: {
211
+ backgroundColor: semanticColors.purple[500],
212
+ textColor: colors.white,
213
+ borderColor: '',
214
+ },
215
+ hover: {
216
+ backgroundColor: semanticColors.purple[700],
217
+ textColor: colors.white,
218
+ borderColor: '',
219
+ },
220
+ active: {
221
+ backgroundColor: semanticColors.purple[600],
222
+ textColor: colors.white,
223
+ borderColor: '',
224
+ },
225
+ disabled: {
226
+ textColor: colors.white,
227
+ backgroundColor: semanticColors.grey[500],
228
+ borderColor: '',
229
+ },
230
+ },
231
+ cancel: {
232
+ // variant
233
+ default: {
234
+ backgroundColor: semanticColors.red[600],
235
+ textColor: colors.white,
236
+ borderColor: '',
237
+ },
238
+ hover: {
239
+ backgroundColor: semanticColors.red[800],
240
+ textColor: colors.white,
241
+ borderColor: '',
242
+ },
243
+ active: {
244
+ backgroundColor: semanticColors.red[700],
245
+ textColor: colors.white,
246
+ borderColor: '',
247
+ },
248
+ disabled: {
249
+ textColor: colors.white,
250
+ backgroundColor: semanticColors.grey[500],
251
+ borderColor: '',
252
+ },
253
+ },
254
+ },
255
+ secondary: {
256
+ // type
257
+ main: {
258
+ // variant: this is the default variant
259
+ default: {
260
+ backgroundColor: semanticColors.purple[50],
261
+ textColor: semanticColors.purple[500],
262
+ borderColor: '',
263
+ },
264
+ hover: {
265
+ backgroundColor: semanticColors.purple[100],
266
+ textColor: semanticColors.purple[700],
267
+ borderColor: '',
268
+ },
269
+ active: {
270
+ backgroundColor: semanticColors.purple[50],
271
+ textColor: semanticColors.purple[600],
272
+ borderColor: '',
273
+ },
274
+ disabled: {
275
+ textColor: semanticColors.grey[600],
276
+ backgroundColor: semanticColors.grey[300],
277
+ borderColor: '',
278
+ },
279
+ },
280
+ cancel: {
281
+ // variant
282
+ default: {
283
+ backgroundColor: semanticColors.red[50],
284
+ textColor: semanticColors.red[600],
285
+ borderColor: '',
286
+ },
287
+ hover: {
288
+ backgroundColor: semanticColors.red[100],
289
+ textColor: semanticColors.red[700],
290
+ borderColor: '',
291
+ },
292
+ active: {
293
+ backgroundColor: semanticColors.red[200],
294
+ textColor: semanticColors.red[800],
295
+ borderColor: '',
296
+ },
297
+ disabled: {
298
+ textColor: semanticColors.grey[600],
299
+ backgroundColor: semanticColors.grey[300],
300
+ borderColor: '',
301
+ },
302
+ },
303
+ },
304
+ tertiary: {
305
+ // type
306
+ main: {
307
+ // variant: this is the default variant
308
+ default: {
309
+ backgroundColor: colors.white,
310
+ textColor: semanticColors.purple[500],
311
+ borderColor: semanticColors.grey[300],
312
+ },
313
+ hover: {
314
+ backgroundColor: semanticColors.blue[200],
315
+ textColor: semanticColors.purple[700],
316
+ borderColor: semanticColors.grey[300],
317
+ },
318
+ active: {
319
+ backgroundColor: semanticColors.blue[100],
320
+ textColor: semanticColors.purple[600],
321
+ borderColor: semanticColors.grey[600],
322
+ },
323
+ disabled: {
324
+ textColor: semanticColors.grey[600],
325
+ backgroundColor: semanticColors.grey[300],
326
+ borderColor: semanticColors.grey[300],
327
+ },
328
+ },
329
+ cancel: {
330
+ // variant
331
+ default: {
332
+ backgroundColor: colors.white,
333
+ textColor: semanticColors.red[600],
334
+ borderColor: semanticColors.grey[300],
335
+ },
336
+ hover: {
337
+ backgroundColor: semanticColors.red[100],
338
+ textColor: semanticColors.red[700],
339
+ borderColor: semanticColors.grey[300],
340
+ },
341
+ active: {
342
+ backgroundColor: semanticColors.red[200],
343
+ textColor: semanticColors.red[800],
344
+ borderColor: semanticColors.grey[300],
345
+ },
346
+ disabled: {
347
+ textColor: semanticColors.grey[600],
348
+ backgroundColor: semanticColors.grey[300],
349
+ borderColor: semanticColors.grey[300],
350
+ },
351
+ },
352
+ },
353
+ ghost: {
354
+ // type
355
+ main: {
356
+ // variant: this is the default variant
357
+ default: {
358
+ backgroundColor: colors.white,
359
+ textColor: semanticColors.purple[500],
360
+ borderColor: '',
361
+ },
362
+ hover: {
363
+ backgroundColor: semanticColors.blue[200],
364
+ textColor: semanticColors.purple[700],
365
+ borderColor: '',
366
+ },
367
+ active: {
368
+ backgroundColor: semanticColors.blue[100],
369
+ textColor: semanticColors.purple[600],
370
+ borderColor: '',
371
+ },
372
+ disabled: {
373
+ textColor: semanticColors.grey[600],
374
+ backgroundColor: semanticColors.grey[300],
375
+ borderColor: '',
376
+ },
377
+ },
378
+ cancel: {
379
+ // variant
380
+ default: {
381
+ backgroundColor: colors.white,
382
+ textColor: semanticColors.red[600],
383
+ borderColor: '',
384
+ },
385
+ hover: {
386
+ backgroundColor: semanticColors.red[100],
387
+ textColor: semanticColors.red[700],
388
+ borderColor: '',
389
+ },
390
+ active: {
391
+ backgroundColor: semanticColors.red[200],
392
+ textColor: semanticColors.red[800],
393
+ borderColor: '',
394
+ },
395
+ disabled: {
396
+ textColor: semanticColors.grey[600],
397
+ backgroundColor: semanticColors.grey[300],
398
+ borderColor: '',
399
+ },
400
+ },
401
+ },
402
+ },
403
+ dark: {
404
+ // theme
405
+ primary: {
406
+ // type
407
+ main: {
408
+ // variant: this is the default variant
409
+ default: {
410
+ backgroundColor: colors.white,
411
+ textColor: semanticColors.teal[800],
412
+ borderColor: '',
413
+ },
414
+ hover: {
415
+ backgroundColor: semanticColors.blue[100],
416
+ textColor: semanticColors.teal[800],
417
+ borderColor: '',
418
+ },
419
+ active: {
420
+ backgroundColor: semanticColors.blue[100],
421
+ textColor: semanticColors.teal[800],
422
+ borderColor: '',
423
+ },
424
+ disabled: {
425
+ textColor: semanticColors.grey[800],
426
+ backgroundColor: semanticColors.grey[400],
427
+ borderColor: '',
428
+ },
429
+ },
430
+ cancel: {
431
+ // variant
432
+ default: {
433
+ backgroundColor: semanticColors.red[400],
434
+ textColor: semanticColors.teal[800],
435
+ borderColor: '',
436
+ },
437
+ hover: {
438
+ backgroundColor: semanticColors.red[100],
439
+ textColor: semanticColors.teal[800],
440
+ borderColor: '',
441
+ },
442
+ active: {
443
+ backgroundColor: semanticColors.red[200],
444
+ textColor: semanticColors.teal[800],
445
+ borderColor: '',
446
+ },
447
+ disabled: {
448
+ backgroundColor: semanticColors.grey[300],
449
+ textColor: semanticColors.grey[800],
450
+ borderColor: '',
451
+ },
452
+ },
453
+ },
454
+ secondary: {
455
+ // type
456
+ main: {
457
+ // variant: this is the default variant
458
+ default: {
459
+ backgroundColor: semanticColors.teal[800],
460
+ textColor: semanticColors.purple[50],
461
+ borderColor: '',
462
+ },
463
+ hover: {
464
+ backgroundColor: semanticColors.teal[600],
465
+ textColor: semanticColors.purple[50],
466
+ borderColor: '',
467
+ },
468
+ active: {
469
+ backgroundColor: semanticColors.teal[700],
470
+ textColor: semanticColors.purple[50],
471
+ borderColor: '',
472
+ },
473
+ disabled: {
474
+ textColor: semanticColors.grey[600],
475
+ backgroundColor: semanticColors.grey[500],
476
+ borderColor: '',
477
+ },
478
+ },
479
+ cancel: {
480
+ // variant
481
+ default: {
482
+ backgroundColor: semanticColors.red[800],
483
+ textColor: semanticColors.red[400],
484
+ borderColor: '',
485
+ },
486
+ hover: {
487
+ backgroundColor: semanticColors.red[700],
488
+ textColor: semanticColors.red[300],
489
+ borderColor: '',
490
+ },
491
+ active: {
492
+ backgroundColor: semanticColors.red[600],
493
+ textColor: semanticColors.red[200],
494
+ borderColor: '',
495
+ },
496
+ disabled: {
497
+ textColor: semanticColors.grey[600],
498
+ backgroundColor: semanticColors.grey[500],
499
+ borderColor: '',
500
+ },
501
+ },
502
+ },
503
+ tertiary: {
504
+ // type
505
+ main: {
506
+ // variant: this is the default variant
507
+ default: {
508
+ backgroundColor: 'transparent',
509
+ textColor: semanticColors.purple[50],
510
+ borderColor: semanticColors.teal[500],
511
+ },
512
+ hover: {
513
+ backgroundColor: semanticColors.teal[600],
514
+ textColor: semanticColors.purple[50],
515
+ borderColor: semanticColors.teal[400],
516
+ },
517
+ active: {
518
+ backgroundColor: semanticColors.teal[700],
519
+ textColor: semanticColors.purple[50],
520
+ borderColor: semanticColors.teal[300],
521
+ },
522
+ disabled: {
523
+ textColor: semanticColors.grey[600],
524
+ backgroundColor: semanticColors.grey[500],
525
+ borderColor: semanticColors.grey[800],
526
+ },
527
+ },
528
+ cancel: {
529
+ // variant
530
+ default: {
531
+ backgroundColor: semanticColors.teal[200],
532
+ textColor: semanticColors.red[400],
533
+ borderColor: semanticColors.teal[500],
534
+ },
535
+ hover: {
536
+ backgroundColor: semanticColors.red[700],
537
+ textColor: semanticColors.red[700],
538
+ borderColor: semanticColors.teal[400],
539
+ },
540
+ active: {
541
+ backgroundColor: semanticColors.red[600],
542
+ textColor: semanticColors.red[200],
543
+ borderColor: semanticColors.teal[300],
544
+ },
545
+ disabled: {
546
+ textColor: semanticColors.grey[600],
547
+ backgroundColor: semanticColors.grey[500],
548
+ borderColor: semanticColors.grey[800],
549
+ },
550
+ },
551
+ },
552
+ ghost: {
553
+ // type
554
+ main: {
555
+ // variant: this is the default variant
556
+ default: {
557
+ backgroundColor: 'transparent',
558
+ textColor: semanticColors.purple[50],
559
+ borderColor: '',
560
+ },
561
+ hover: {
562
+ backgroundColor: semanticColors.teal[600],
563
+ textColor: semanticColors.purple[50],
564
+ borderColor: '',
565
+ },
566
+ active: {
567
+ backgroundColor: semanticColors.teal[700],
568
+ textColor: semanticColors.purple[50],
569
+ borderColor: '',
570
+ },
571
+ disabled: {
572
+ textColor: semanticColors.grey[600],
573
+ backgroundColor: semanticColors.grey[500],
574
+ borderColor: '',
575
+ },
576
+ },
577
+ cancel: {
578
+ // variant
579
+ default: {
580
+ backgroundColor: semanticColors.teal[200],
581
+ textColor: semanticColors.red[400],
582
+ borderColor: '',
583
+ },
584
+ hover: {
585
+ backgroundColor: semanticColors.red[700],
586
+ textColor: semanticColors.red[300],
587
+ borderColor: '',
588
+ },
589
+ active: {
590
+ backgroundColor: semanticColors.red[600],
591
+ textColor: semanticColors.red[200],
592
+ borderColor: '',
593
+ },
594
+ disabled: {
595
+ textColor: semanticColors.grey[600],
596
+ backgroundColor: semanticColors.grey[500],
597
+ borderColor: '',
598
+ },
599
+ },
600
+ },
601
+ },
602
+ size: {
603
+ large: {
604
+ padding: '10px 20px',
605
+ fontSize: '14px',
606
+ iconWidth: '34px',
607
+ },
608
+ medium: {
609
+ padding: '8px 16px',
610
+ fontSize: '14px',
611
+ iconWidth: '30px',
612
+ },
613
+ small: {
614
+ padding: '6px 12px',
615
+ fontSize: '14px',
616
+ iconWidth: '26px',
617
+ },
618
+ },
619
+ },
620
+ }
621
+ })()
45
622
 
46
623
  export default theme
@@ -21,6 +21,10 @@
21
21
  iconColor ||
22
22
  theme.mainButton[appTheme][type][variant].default.textColor
23
23
  "
24
+ :hovered-color="
25
+ iconColor ||
26
+ theme.mainButton[appTheme][type][variant].default.textColor
27
+ "
24
28
  :name="iconName"
25
29
  size="14px"
26
30
  />
@@ -46,6 +46,7 @@
46
46
  disabled: {
47
47
  required: false,
48
48
  default: false,
49
+ type: Boolean,
49
50
  },
50
51
  name: {
51
52
  required: true,
@@ -53,33 +54,43 @@
53
54
  },
54
55
  color: {
55
56
  required: false,
57
+ default: null,
58
+ type: String,
56
59
  },
57
60
  hoveredColor: {
58
61
  required: false,
62
+ default: null,
63
+ type: String,
59
64
  },
60
65
  size: {
61
66
  required: false,
62
67
  default: '30px',
68
+ type: String,
63
69
  },
64
70
  cursor: {
65
71
  required: false,
66
72
  default: null,
73
+ type: String,
67
74
  },
68
75
  isStriked: {
69
76
  required: false,
70
77
  default: false,
78
+ type: Boolean,
71
79
  },
72
80
  backgroundColor: {
73
81
  required: false,
74
82
  default: null,
83
+ type: String,
75
84
  },
76
85
  count: {
77
86
  required: false,
78
87
  default: 0,
88
+ type: Number,
79
89
  },
80
90
  animation: {
81
91
  required: false,
82
92
  default: 'none',
93
+ type: String,
83
94
  },
84
95
  fillType: {
85
96
  required: false,
@@ -158,7 +169,10 @@
158
169
  color && `${fillType}: ${theme.colors[color] || color};`}
159
170
  }
160
171
  &:hover svg path:not(.fix) {
161
- ${({ theme }) => `fill: ${theme.semanticColors.purple[500]};`}
172
+ ${(props) =>
173
+ `fill: ${
174
+ props.hoveredColor || props.theme.semanticColors.purple[500]
175
+ };`}
162
176
  }
163
177
  &:hover + div {
164
178
  background-color: ${(props) => props.hoveredColor};
@@ -12,8 +12,9 @@
12
12
  <RCIcon
13
13
  :color="iconColor ? iconColor : presetStyles.iconColor"
14
14
  data-test-id="info_card_icon"
15
- name="info"
16
- size="24px"
15
+ :hovered-color="iconColor ? iconColor : presetStyles.iconColor"
16
+ :name="iconName"
17
+ size="18px"
17
18
  />
18
19
  <TextContainer data-test-id="info_card_text_container">
19
20
  <slot></slot>
@@ -39,7 +40,7 @@
39
40
  display: flex;
40
41
  align-items: ${(props) =>
41
42
  props.alignItems ? props.alignItems : props.presetStyles.alignItems};
42
- gap: 15px;
43
+ gap: 16px;
43
44
  min-width: ${(props) => props.minWidth};
44
45
  padding: ${(props) =>
45
46
  props.padding ? props.padding : props.presetStyles.padding};
@@ -57,7 +58,7 @@
57
58
  `
58
59
 
59
60
  const TextContainer = styled.div`
60
- font-size: 13px;
61
+ font-size: 14px;
61
62
  width: 100%;
62
63
  `
63
64
 
@@ -121,21 +122,24 @@
121
122
  isErrorMinor() {
122
123
  return this.type === 'error_minor'
123
124
  },
125
+ iconName() {
126
+ return this.type === 'warning' ? 'warning_triangle' : 'info'
127
+ },
124
128
  presetStyles() {
125
129
  // the types that doesn't have explicit border anyway have it transparent
126
130
  // to avoid flickering in case the same info card would switch the types
127
131
  let stylesCollection = {
128
132
  alignItems: 'flex-start',
129
- padding: '20px',
133
+ padding: '8px 6px 8px 16px',
130
134
  borderWidth: '1px',
131
135
  borderStyle: 'solid',
132
136
  borderColor: 'transparent',
133
137
  }
134
138
 
135
139
  if (this.isWarning) {
136
- stylesCollection.color = theme.colors.white
137
- stylesCollection.backgroundColor = theme.colors.yellow
138
- stylesCollection.iconColor = theme.colors.white
140
+ stylesCollection.color = theme.semanticColors.teal[800]
141
+ stylesCollection.backgroundColor = theme.semanticColors.yellow[300]
142
+ stylesCollection.iconColor = theme.semanticColors.teal[800]
139
143
  } else if (this.isErrorMinor) {
140
144
  stylesCollection.borderStyle = 'dashed'
141
145
  stylesCollection.borderColor = theme.colors.pureRed
@@ -223,6 +223,7 @@
223
223
  grid-template-columns: auto 1fr auto;
224
224
  grid-gap: 20px;
225
225
  padding: 4px;
226
+ padding-right: 13px;
226
227
  border-radius: 6px;
227
228
  align-items: center;
228
229
  cursor: pointer;