@enki-tek/fms-web-components 0.0.72 → 0.0.73

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  .ebtn {
4
4
  // Default styles for button
5
- background-color: $white;
5
+ background-color: $gray-300;
6
6
  color: black;
7
7
  border: none;
8
8
  cursor: pointer;
@@ -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 : ''}`,'ebtn'];
16
16
  if (buttonConfig.hasOwnProperty(config)) {
17
- buttonStyles = ['ebtn', ...buttonConfig[config], `ebg-${shade}`,`ebg-${actived.state === true ? actived.color : ''}`, `eoutline-${outlineShade}`, `ebtn-${size}`,`ebtn-${shade}:hover`,`ebtn-${shade}:focus` ,`disabled`,className];
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,8 +47,11 @@
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
- background-color: #ffffff;
54
+ background-color: #DEE2E6;
52
55
  color: black;
53
56
  border: none;
54
57
  cursor: pointer;
@@ -1332,4 +1335,59 @@
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
+ }
1342
+ .ebg-active-secondaryDark {
1343
+ background-color: #00A855;
1344
+ }
1345
+ .ebg-active-secondaryLight {
1346
+ background-color: #CBFFC7;
1347
+ }
1348
+ .ebg-active-primary {
1349
+ background-color: #00AEE5;
1350
+ }
1351
+ .ebg-active-primaryDark {
1352
+ background-color: #007FD8;
1353
+ }
1354
+ .ebg-active-primaryLight {
1355
+ background-color: #CEF3FF;
1356
+ }
1357
+ .ebg-active-danger {
1358
+ background-color: #FE4747;
1359
+ }
1360
+ .ebg-active-dangerDark {
1361
+ background-color: #B02A37;
1362
+ }
1363
+ .ebg-active-dangerLight {
1364
+ background-color: #f8d7da;
1365
+ }
1366
+ .ebg-active-warning {
1367
+ background-color: #FFBA3A;
1368
+ }
1369
+ .ebg-active-warningDark {
1370
+ background-color: #997404;
1371
+ color: #ffffff !important;
1372
+ }
1373
+ .ebg-active-warningLight {
1374
+ background-color: #FFF3CD;
1375
+ }
1376
+ .ebg-active-info {
1377
+ background-color: #0DCAF0;
1378
+ }
1379
+ .ebg-active-infoDark {
1380
+ background-color: #087990;
1381
+ }
1382
+ .ebg-active-infoLight {
1383
+ background-color: #9EEAF9;
1384
+ }
1385
+ .ebg-active-success {
1386
+ background-color: #00A96B;
1387
+ }
1388
+ .ebg-active-successDark {
1389
+ background-color: #146C43;
1390
+ }
1391
+ .ebg-active-successLight {
1392
+ background-color: #D1E7DD;
1335
1393
  }</style>
@@ -0,0 +1,63 @@
1
+ @import './../variable.scss';
2
+
3
+
4
+
5
+ .ebg-active-secondary{
6
+ background-color: $secondary;
7
+ }
8
+
9
+ .ebg-active-secondaryDark{
10
+ background-color: $secondary-dark;
11
+ }
12
+
13
+ .ebg-active-secondaryLight{
14
+ background-color: $secondary-light;
15
+ }
16
+
17
+ .ebg-active-primary {
18
+ background-color: $primary;
19
+ }
20
+
21
+ .ebg-active-primaryDark {
22
+ background-color: $primary-dark;
23
+ }
24
+ .ebg-active-primaryLight {
25
+ background-color: $primary-light;
26
+ }
27
+ .ebg-active-danger {
28
+ background-color: $danger ;
29
+ }
30
+ .ebg-active-dangerDark {
31
+ background-color: $danger-dark;
32
+ }
33
+ .ebg-active-dangerLight {
34
+ background-color: $danger-light;
35
+ }
36
+ .ebg-active-warning {
37
+ background-color: $warning;
38
+ }
39
+ .ebg-active-warningDark {
40
+ background-color: $warning-dark;
41
+ color: $white !important;
42
+ }
43
+ .ebg-active-warningLight {
44
+ background-color: $warning-light;
45
+ }
46
+ .ebg-active-info {
47
+ background-color: $info;
48
+ }
49
+ .ebg-active-infoDark {
50
+ background-color: $info-dark;
51
+ }
52
+ .ebg-active-infoLight {
53
+ background-color: $info-light;
54
+ }
55
+ .ebg-active-success {
56
+ background-color: $success;
57
+ }
58
+ .ebg-active-successDark {
59
+ background-color: $success-dark;
60
+ }
61
+ .ebg-active-successLight {
62
+ background-color: $success-light;
63
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.0.72",
3
+ "version": "0.0.73",
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",