@eturnity/eturnity_reusable_components 8.7.5-EPIC-8593 → 8.7.5-EPIC-8593.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +6 -6
  3. package/src/assets/svgIcons/add_icon-1.svg +2 -2
  4. package/src/assets/svgIcons/arrow_down_unfilled.svg +4 -0
  5. package/src/assets/svgIcons/arrow_up_unfilled.svg +4 -0
  6. package/src/assets/svgIcons/battery.svg +2 -2
  7. package/src/assets/svgIcons/bell_alt.svg +1 -3
  8. package/src/assets/svgIcons/bexio.svg +3 -3
  9. package/src/assets/svgIcons/bom.svg +2 -2
  10. package/src/assets/svgIcons/collections.svg +1 -1
  11. package/src/assets/svgIcons/customer.svg +3 -0
  12. package/src/assets/svgIcons/dashboard.svg +1 -1
  13. package/src/assets/svgIcons/deal_flow.svg +2 -4
  14. package/src/assets/svgIcons/documents.svg +2 -3
  15. package/src/assets/svgIcons/efs.svg +5 -0
  16. package/src/assets/svgIcons/ems-1.svg +2 -2
  17. package/src/assets/svgIcons/ems.svg +2 -2
  18. package/src/assets/svgIcons/energy_meter.svg +3 -12
  19. package/src/assets/svgIcons/financing_for_pv.svg +2 -5
  20. package/src/assets/svgIcons/free_technology.svg +2 -4
  21. package/src/assets/svgIcons/heat_pump.svg +5 -0
  22. package/src/assets/svgIcons/heating_system.svg +3 -0
  23. package/src/assets/svgIcons/initial_situation.svg +2 -2
  24. package/src/assets/svgIcons/integrations.svg +2 -2
  25. package/src/assets/svgIcons/inverter.svg +2 -2
  26. package/src/assets/svgIcons/k2.svg +4 -0
  27. package/src/assets/svgIcons/profile.svg +2 -3
  28. package/src/assets/svgIcons/profitability.svg +2 -2
  29. package/src/assets/svgIcons/project_analysis.svg +2 -3
  30. package/src/assets/svgIcons/project_settings.svg +2 -3
  31. package/src/assets/svgIcons/pv.svg +2 -2
  32. package/src/assets/svgIcons/run_simulation.svg +2 -2
  33. package/src/assets/svgIcons/settings.svg +2 -2
  34. package/src/assets/svgIcons/subscriptions.svg +2 -2
  35. package/src/assets/svgIcons/subsidies.svg +2 -2
  36. package/src/assets/svgIcons/variants.svg +2 -5
  37. package/src/assets/svgIcons/vdv.svg +5 -0
  38. package/src/assets/svgIcons/virtual_storage.svg +2 -3
  39. package/src/assets/theme.js +594 -29
  40. package/src/components/buttons/buttonIcon/index.vue +110 -32
  41. package/src/components/buttons/mainButton/index.vue +74 -42
  42. package/src/components/filter/filterSettings.vue +4 -3
  43. package/src/components/icon/index.vue +26 -6
  44. package/src/components/infoCard/index.vue +12 -8
  45. package/src/components/infoText/index.vue +9 -5
  46. package/src/components/inputs/inputNumber/index.vue +5 -0
  47. package/src/components/inputs/inputText/index.vue +6 -0
  48. package/src/components/modals/modal/index.vue +10 -5
  49. package/src/components/projectMarker/index.vue +2 -1
  50. package/src/components/selectedOptions/index.vue +1 -0
  51. package/src/components/sideMenu/index.vue +92 -48
  52. package/src/components/spinner/index.vue +66 -33
  53. package/src/components/tableDropdown/index.vue +40 -33
  54. package/src/components/tables/mainTable/index.vue +16 -11
  55. package/src/assets/svgIcons/inverter-1.svg +0 -5
  56. package/src/assets/svgIcons/subsidies-1.svg +0 -5
@@ -1,4 +1,3 @@
1
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M11.0497 8.45352H8.91235V10.296H11.0497V8.45352Z" fill="white"/>
3
- <path d="M15.0927 6.53724C14.9069 6.52637 14.7205 6.52637 14.5347 6.53724C14.1318 5.37717 13.336 4.39446 12.2851 3.75918C11.2341 3.12389 9.99417 2.876 8.77976 3.05841C7.56535 3.24082 6.45293 3.84205 5.635 4.75806C4.81708 5.67406 4.34512 6.84719 4.30082 8.07442C4.30975 8.30745 4.33437 8.5396 4.37452 8.76931C4.18359 8.73213 3.98989 8.711 3.79544 8.70614C3.3069 8.6797 2.8181 8.75309 2.35886 8.92183C1.89963 9.09058 1.4796 9.35114 1.12442 9.68762C0.769239 10.0241 0.486352 10.4294 0.293029 10.8789C0.0997049 11.3283 0 11.8124 0 12.3017C0 12.7909 0.0997049 13.2751 0.293029 13.7245C0.486352 14.1739 0.769239 14.5793 1.12442 14.9157C1.4796 15.2522 1.89963 15.5128 2.35886 15.6815C2.8181 15.8503 3.3069 15.9237 3.79544 15.8972H15.0927C15.726 15.9273 16.3587 15.8285 16.9527 15.6068C17.5467 15.3852 18.0895 15.0453 18.5483 14.6078C19.007 14.1703 19.3723 13.6442 19.6218 13.0614C19.8713 12.4786 20 11.8512 20 11.2172C20 10.5833 19.8713 9.95588 19.6218 9.37308C19.3723 8.79029 19.007 8.26419 18.5483 7.82666C18.0895 7.38912 17.5467 7.04925 16.9527 6.82761C16.3587 6.60598 15.726 6.50719 15.0927 6.53724ZM12.6711 13.4862H7.31202V7.05314H8.80709V6.21085H11.1655V7.05314H12.6711V13.4862Z" fill="white"/>
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="M2.59874 3.5716C2.59874 1.86991 3.99228 0.5 5.69942 0.5C6.96139 0.5 8.05087 1.24777 8.53416 2.32521C8.55682 2.37573 8.61524 2.40008 8.66716 2.38086C8.95792 2.27322 9.27253 2.2144 9.60046 2.2144C11.0682 2.2144 12.2677 3.39242 12.2677 4.8574C12.2677 4.89866 12.2667 4.93972 12.2648 4.98056C12.2628 5.02358 12.2874 5.06359 12.3268 5.08102C13.2863 5.5057 14.0015 6.36512 14.0015 7.429C14.0015 8.97487 12.5184 10.072 10.9008 10.072H8.90013C8.8449 10.072 8.80013 10.1168 8.80013 10.172V10.8579C8.80013 11.134 8.57627 11.3579 8.30013 11.3579C8.02398 11.3579 7.80013 11.134 7.80013 10.8579V8.28629C7.80013 8.01015 8.02398 7.78629 8.30013 7.78629C8.57627 7.78629 8.80013 8.01015 8.80013 8.28629V8.972C8.80013 9.02723 8.8449 9.072 8.90012 9.072H10.9008C12.1559 9.072 13.0015 8.25022 13.0015 7.429C13.0015 6.76283 12.4629 6.10939 11.5719 5.87241L11.1882 5.77033C11.1351 5.75621 11.1033 5.70189 11.117 5.64869L11.2163 5.26419C11.2498 5.13461 11.2677 4.99842 11.2677 4.8574C11.2677 3.95528 10.5266 3.2144 9.60046 3.2144C9.212 3.2144 8.85633 3.3447 8.57361 3.56289L8.04049 3.97434C7.98042 4.0207 7.89262 3.98589 7.88064 3.91096L7.77438 3.24596C7.61695 2.26077 6.75113 1.5 5.69942 1.5C4.53393 1.5 3.59874 2.43277 3.59874 3.5716C3.59874 3.8152 3.64116 4.04798 3.71875 4.26386L3.92307 4.83232C3.94729 4.89973 3.89488 4.97 3.82337 4.96599L3.22024 4.93219C3.18007 4.92994 3.13956 4.9288 3.09874 4.9288C1.93324 4.9288 0.998047 5.86157 0.998047 7.0004C0.998047 8.13923 1.93324 9.072 3.09874 9.072H5.09943C5.15466 9.072 5.19943 9.02723 5.19943 8.972V6.57184C5.19943 6.2957 5.42329 6.07184 5.69943 6.07184C5.97557 6.07184 6.19943 6.2957 6.19943 6.57184V13.0008C6.19943 13.277 5.97557 13.5008 5.69943 13.5008C5.42329 13.5008 5.19943 13.277 5.19943 13.0008V10.172C5.19943 10.1168 5.15466 10.072 5.09943 10.072H3.09874C1.39159 10.072 -0.00195312 8.70209 -0.00195312 7.0004C-0.00195312 5.49315 1.09133 4.24619 2.52745 3.98091C2.58088 3.97104 2.6182 3.92161 2.61297 3.86752C2.60355 3.77007 2.59874 3.67135 2.59874 3.5716Z" fill="#263238"/>
4
3
  </svg>
@@ -1,58 +1,623 @@
1
- const theme = {
2
- colors: {
3
- primary: '#48a2d0',
4
- secondary: '#fdb813',
1
+ const theme = (() => {
2
+ const colors = {
3
+ primary: '#5900CC',
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',
17
+ blue1: '#e4efff',
18
+ blue2: '#f6faff',
19
+ blue3: '#6CD4D4',
20
+ blue4: '#66D0F3',
21
+ blue5: '#00B0EB',
22
+ brightBlue: '#0068DE',
23
+ ballBlue: '#2CC0EB',
15
24
  red: '#FF5656',
16
25
  red1: '#f5a2a2',
17
26
  red2: '#de5959',
18
27
  red3: '#FFCCCC',
19
- red4: '#FFEBEB',
28
+ red4: '#FF9A9A',
20
29
  pureRed: '#ff0000',
21
- blue1: '#e4efff',
22
- brightBlue: '#0068DE',
30
+ darkRed: '#d00000',
31
+ cornellRed: '#a52019',
32
+ transparentRed10: '#ff000016',
33
+ transparentRed20: '#ff000032',
34
+ transparentRed40: '#ff000064',
35
+ transparentRed50: '#ff000080',
23
36
  grey1: '#666',
24
37
  grey2: '#c4c4c4',
25
38
  grey3: '#b2b9c5',
26
39
  grey4: '#dee2eb',
27
40
  grey5: '#fafafa',
28
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',
29
58
  green: '#99db0c',
30
- purple: '#505ca6',
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',
31
64
  purple2: '#C739E4',
32
65
  purple3: '#E9CEFE',
33
66
  purple4: '#D0D6F5',
34
67
  purple5: '#533181',
35
68
  purple6: '#6F20DC',
36
- purple7: '#F5EEFF',
37
- purple8: '#B17BFA',
38
- transparentWhite1: '#ffffff32',
39
- transparentWhite2: '#ffffff16',
40
- transparentWhite3: '#ffffff48',
41
- transparentBlack1: '#263238e6',
69
+ orange: '#ffc338',
42
70
  disabled: '#dfe1e1',
71
+ transparentWhite2: '#ffffff32',
72
+ transparentWhite1: '#ffffff16',
73
+ transparentBlack1: '#263238e6',
74
+ transparentBlue1: '#20a4cae6',
75
+ blueElectric: '#66dffa',
43
76
  eturnityGrey: '#263238',
44
- },
45
- screen: {
46
- mobileSmall: '345px',
47
- mobile: '425px',
48
- mobileLarge: '530px',
49
- tablet: '768px',
50
- tabletLarge: '950px',
51
- },
52
- fonts: {
53
- mainFont: '"Figtree", sans-serif',
54
- },
55
- borderRadius: '4px',
56
- }
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
+ })()
57
622
 
58
623
  export default theme