@enki-tek/fms-web-components 0.0.72 → 0.0.74
Sign up to get free protection for your applications and to get access to all the features.
@@ -12,9 +12,9 @@
|
|
12
12
|
export let id='';
|
13
13
|
export let actived={state:false,color:'danger'};
|
14
14
|
|
15
|
-
let buttonStyles = [className];
|
15
|
+
let buttonStyles = [className,`ebg-active-${actived.state === true ? actived.color : ''}`];
|
16
16
|
if (buttonConfig.hasOwnProperty(config)) {
|
17
|
-
buttonStyles = ['ebtn', ...buttonConfig[config], `ebg-${shade}
|
17
|
+
buttonStyles = ['ebtn', ...buttonConfig[config], `ebg-${shade}`, `eoutline-${outlineShade}`, `ebtn-${size}`,`ebtn-${shade}:hover`,`ebtn-${shade}:focus` ,`disabled`,className];
|
18
18
|
}
|
19
19
|
|
20
20
|
// icon button
|
@@ -47,6 +47,9 @@
|
|
47
47
|
@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
48
48
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
49
49
|
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
50
|
+
@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
51
|
+
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
52
|
+
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
50
53
|
.ebtn {
|
51
54
|
background-color: #ffffff;
|
52
55
|
color: black;
|
@@ -1332,4 +1335,77 @@
|
|
1332
1335
|
font-style: normal;
|
1333
1336
|
font-weight: 400;
|
1334
1337
|
line-height: normal;
|
1338
|
+
}
|
1339
|
+
.ebg-active-secondary {
|
1340
|
+
background-color: #3AC82E;
|
1341
|
+
color: #ffffff;
|
1342
|
+
}
|
1343
|
+
.ebg-active-secondaryDark {
|
1344
|
+
background-color: #00A855;
|
1345
|
+
color: #ffffff;
|
1346
|
+
}
|
1347
|
+
.ebg-active-secondaryLight {
|
1348
|
+
background-color: #CBFFC7;
|
1349
|
+
color: #ffffff;
|
1350
|
+
}
|
1351
|
+
.ebg-active-primary {
|
1352
|
+
background-color: #00AEE5;
|
1353
|
+
color: #ffffff;
|
1354
|
+
}
|
1355
|
+
.ebg-active-primaryDark {
|
1356
|
+
background-color: #007FD8;
|
1357
|
+
color: #ffffff;
|
1358
|
+
}
|
1359
|
+
.ebg-active-primaryLight {
|
1360
|
+
background-color: #CEF3FF;
|
1361
|
+
color: #ffffff;
|
1362
|
+
}
|
1363
|
+
.ebg-active-danger {
|
1364
|
+
background-color: #FE4747;
|
1365
|
+
color: #ffffff;
|
1366
|
+
}
|
1367
|
+
.ebg-active-dangerDark {
|
1368
|
+
background-color: #B02A37;
|
1369
|
+
color: #ffffff;
|
1370
|
+
}
|
1371
|
+
.ebg-active-dangerLight {
|
1372
|
+
background-color: #f8d7da;
|
1373
|
+
color: #ffffff;
|
1374
|
+
}
|
1375
|
+
.ebg-active-warning {
|
1376
|
+
background-color: #FFBA3A;
|
1377
|
+
color: #ffffff;
|
1378
|
+
}
|
1379
|
+
.ebg-active-warningDark {
|
1380
|
+
background-color: #997404;
|
1381
|
+
color: #ffffff;
|
1382
|
+
color: #ffffff !important;
|
1383
|
+
}
|
1384
|
+
.ebg-active-warningLight {
|
1385
|
+
background-color: #FFF3CD;
|
1386
|
+
color: #ffffff;
|
1387
|
+
}
|
1388
|
+
.ebg-active-info {
|
1389
|
+
background-color: #0DCAF0;
|
1390
|
+
color: #ffffff;
|
1391
|
+
}
|
1392
|
+
.ebg-active-infoDark {
|
1393
|
+
background-color: #087990;
|
1394
|
+
color: #ffffff;
|
1395
|
+
}
|
1396
|
+
.ebg-active-infoLight {
|
1397
|
+
background-color: #9EEAF9;
|
1398
|
+
color: #ffffff;
|
1399
|
+
}
|
1400
|
+
.ebg-active-success {
|
1401
|
+
background-color: #00A96B;
|
1402
|
+
color: #ffffff;
|
1403
|
+
}
|
1404
|
+
.ebg-active-successDark {
|
1405
|
+
background-color: #146C43;
|
1406
|
+
color: #ffffff;
|
1407
|
+
}
|
1408
|
+
.ebg-active-successLight {
|
1409
|
+
background-color: #D1E7DD;
|
1410
|
+
color: #ffffff;
|
1335
1411
|
}</style>
|
@@ -0,0 +1,81 @@
|
|
1
|
+
@import './../variable.scss';
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
.ebg-active-secondary{
|
6
|
+
background-color: $secondary;
|
7
|
+
color: $white;
|
8
|
+
}
|
9
|
+
|
10
|
+
.ebg-active-secondaryDark{
|
11
|
+
background-color: $secondary-dark;
|
12
|
+
color: $white;
|
13
|
+
}
|
14
|
+
|
15
|
+
.ebg-active-secondaryLight{
|
16
|
+
background-color: $secondary-light;
|
17
|
+
color: $white;
|
18
|
+
}
|
19
|
+
|
20
|
+
.ebg-active-primary {
|
21
|
+
background-color: $primary;
|
22
|
+
color: $white;
|
23
|
+
}
|
24
|
+
|
25
|
+
.ebg-active-primaryDark {
|
26
|
+
background-color: $primary-dark;
|
27
|
+
color: $white;
|
28
|
+
}
|
29
|
+
.ebg-active-primaryLight {
|
30
|
+
background-color: $primary-light;
|
31
|
+
color: $white;
|
32
|
+
}
|
33
|
+
.ebg-active-danger {
|
34
|
+
background-color: $danger ;
|
35
|
+
color: $white;
|
36
|
+
}
|
37
|
+
.ebg-active-dangerDark {
|
38
|
+
background-color: $danger-dark;
|
39
|
+
color: $white;
|
40
|
+
}
|
41
|
+
.ebg-active-dangerLight {
|
42
|
+
background-color: $danger-light;
|
43
|
+
color: $white;
|
44
|
+
}
|
45
|
+
.ebg-active-warning {
|
46
|
+
background-color: $warning;
|
47
|
+
color: $white;
|
48
|
+
}
|
49
|
+
.ebg-active-warningDark {
|
50
|
+
background-color: $warning-dark;
|
51
|
+
color: $white;
|
52
|
+
color: $white !important;
|
53
|
+
}
|
54
|
+
.ebg-active-warningLight {
|
55
|
+
background-color: $warning-light;
|
56
|
+
color: $white;
|
57
|
+
}
|
58
|
+
.ebg-active-info {
|
59
|
+
background-color: $info;
|
60
|
+
color: $white;
|
61
|
+
}
|
62
|
+
.ebg-active-infoDark {
|
63
|
+
background-color: $info-dark;
|
64
|
+
color: $white;
|
65
|
+
}
|
66
|
+
.ebg-active-infoLight {
|
67
|
+
background-color: $info-light;
|
68
|
+
color: $white;
|
69
|
+
}
|
70
|
+
.ebg-active-success {
|
71
|
+
background-color: $success;
|
72
|
+
color: $white;
|
73
|
+
}
|
74
|
+
.ebg-active-successDark {
|
75
|
+
background-color: $success-dark;
|
76
|
+
color: $white;
|
77
|
+
}
|
78
|
+
.ebg-active-successLight {
|
79
|
+
background-color: $success-light;
|
80
|
+
color: $white;
|
81
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@enki-tek/fms-web-components",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.74",
|
4
4
|
"devDependencies": {
|
5
5
|
"@storybook/addon-essentials": "^7.6.14",
|
6
6
|
"@storybook/addon-interactions": "^7.6.14",
|
@@ -60,6 +60,7 @@
|
|
60
60
|
"./components/Button/Button.scss": "./components/Button/Button.scss",
|
61
61
|
"./components/Button/Button.stories": "./components/Button/Button.stories.js",
|
62
62
|
"./components/Button/Button.svelte": "./components/Button/Button.svelte",
|
63
|
+
"./components/Button/ButtoonActiveClass.scss": "./components/Button/ButtoonActiveClass.scss",
|
63
64
|
"./components/Button/buttonConfig": "./components/Button/buttonConfig.js",
|
64
65
|
"./components/Card/Card.scss": "./components/Card/Card.scss",
|
65
66
|
"./components/Card/Card.stories": "./components/Card/Card.stories.js",
|