@eturnity/eturnity_reusable_components 8.7.5-EPDM-12618.3 → 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.
- package/package.json +3 -2
- package/src/App.vue +6 -6
- package/src/Test.vue +12 -76
- package/src/assets/svgIcons/add_icon-1.svg +2 -2
- package/src/assets/svgIcons/add_plus.svg +4 -0
- package/src/assets/svgIcons/arrow_down_unfilled.svg +4 -0
- package/src/assets/svgIcons/arrow_up_unfilled.svg +4 -0
- package/src/assets/svgIcons/battery.svg +2 -2
- package/src/assets/svgIcons/bell_alt.svg +1 -3
- package/src/assets/svgIcons/bexio.svg +3 -3
- package/src/assets/svgIcons/bom.svg +2 -2
- package/src/assets/svgIcons/checkmark_white.svg +4 -0
- package/src/assets/svgIcons/clenergy.svg +4 -0
- package/src/assets/svgIcons/clickable_info.svg +2 -2
- package/src/assets/svgIcons/clickable_info_white.svg +5 -0
- package/src/assets/svgIcons/collections.svg +1 -1
- package/src/assets/svgIcons/customer.svg +3 -0
- package/src/assets/svgIcons/dashboard.svg +1 -1
- package/src/assets/svgIcons/deal_flow.svg +2 -4
- package/src/assets/svgIcons/documents.svg +2 -3
- package/src/assets/svgIcons/efs.svg +5 -0
- package/src/assets/svgIcons/ems-1.svg +2 -2
- package/src/assets/svgIcons/ems.svg +2 -2
- package/src/assets/svgIcons/energy_meter.svg +3 -12
- package/src/assets/svgIcons/erase_white.svg +4 -0
- package/src/assets/svgIcons/financing_for_pv.svg +2 -5
- package/src/assets/svgIcons/free_technology.svg +2 -4
- package/src/assets/svgIcons/heat_pump.svg +5 -0
- package/src/assets/svgIcons/heating_system.svg +3 -0
- package/src/assets/svgIcons/initial_situation.svg +2 -2
- package/src/assets/svgIcons/integrations.svg +2 -2
- package/src/assets/svgIcons/inverter.svg +2 -2
- package/src/assets/svgIcons/k2.svg +4 -0
- package/src/assets/svgIcons/module.svg +2 -2
- package/src/assets/svgIcons/optimizer.svg +2 -5
- package/src/assets/svgIcons/order.svg +3 -0
- package/src/assets/svgIcons/profile.svg +2 -3
- package/src/assets/svgIcons/profitability.svg +2 -2
- package/src/assets/svgIcons/project_analysis.svg +2 -3
- package/src/assets/svgIcons/project_settings.svg +2 -3
- package/src/assets/svgIcons/pv.svg +2 -2
- package/src/assets/svgIcons/question_mark.svg +3 -0
- package/src/assets/svgIcons/question_mark_white.svg +4 -0
- package/src/assets/svgIcons/reorder_string.svg +3 -0
- package/src/assets/svgIcons/run_simulation.svg +2 -2
- package/src/assets/svgIcons/settings.svg +2 -2
- package/src/assets/svgIcons/subscriptions.svg +2 -2
- package/src/assets/svgIcons/subsidies.svg +2 -2
- package/src/assets/svgIcons/switch_polarity.svg +5 -0
- package/src/assets/svgIcons/transparent_warning.svg +4 -0
- package/src/assets/svgIcons/variants.svg +2 -5
- package/src/assets/svgIcons/vdv.svg +5 -0
- package/src/assets/svgIcons/virtual_storage.svg +2 -3
- package/src/assets/svgIcons/warning_triangle.svg +3 -0
- package/src/assets/svgIcons/warning_triangle_white.svg +5 -0
- package/src/assets/theme.js +602 -25
- package/src/components/buttons/buttonIcon/index.vue +131 -28
- package/src/components/buttons/mainButton/MainButton.stories.js +13 -0
- package/src/components/buttons/mainButton/index.vue +105 -31
- package/src/components/filter/filterSettings.vue +4 -3
- package/src/components/icon/index.vue +26 -6
- package/src/components/infoCard/index.vue +12 -8
- package/src/components/infoLabel/index.vue +63 -0
- package/src/components/infoText/index.vue +176 -42
- package/src/components/infoText/infoText.spec.js +1 -1
- package/src/components/inputs/checkbox/index.vue +11 -2
- package/src/components/inputs/inputNumber/index.vue +5 -0
- package/src/components/inputs/inputText/index.vue +9 -1
- package/src/components/modals/modal/index.vue +21 -6
- package/src/components/panelRangeInfo/index.vue +196 -0
- package/src/components/projectMarker/index.vue +2 -1
- package/src/components/selectedOptions/index.vue +3 -12
- package/src/components/selectedOptions/selectedOptions.spec.js +1 -1
- package/src/components/sideMenu/index.vue +92 -48
- package/src/components/spinner/index.vue +66 -33
- package/src/components/tableDropdown/index.vue +44 -39
- package/src/components/tables/mainTable/index.vue +16 -11
- package/src/components/tabsHeader/index.vue +75 -61
- package/src/assets/svgIcons/inverter-1.svg +0 -5
- package/src/assets/svgIcons/subsidies-1.svg +0 -5
- package/src/components/stringDesign/DropdownMenu/index.vue +0 -1009
- /package/src/assets/svgIcons/{close_for_modals,_tool_tips.svg → close.svg} +0 -0
package/src/assets/theme.js
CHANGED
@@ -1,46 +1,623 @@
|
|
1
|
-
const theme = {
|
2
|
-
colors
|
3
|
-
primary: '#
|
4
|
-
secondary: '#
|
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',
|
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
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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
|