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

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- color?: "info" | "success" | "danger" | "warning" | undefined;
4
+ color?: "danger" | "info" | "success" | "warning" | undefined;
5
5
  };
6
6
  events: {
7
7
  [evt: string]: CustomEvent<any>;
@@ -6,7 +6,6 @@ let badgeStyles = [`m-0`, `mt-1`, `custom-badge`, className];
6
6
  if (badgeConfig.hasOwnProperty(config)) {
7
7
  badgeStyles = [...badgeConfig[config], ...badgeStyles];
8
8
  }
9
- console.log("badgeStyles:", badgeStyles);
10
9
  </script>
11
10
 
12
11
  <Badge pill color="none" class={badgeStyles.join(' ')}>
@@ -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;
@@ -10,8 +10,9 @@
10
10
  export let disabled =false;
11
11
  export let className = "";
12
12
  export let id='';
13
+ export let actived={state:false,color:'danger'};
13
14
 
14
- let buttonStyles = [className];
15
+ let buttonStyles = [className,`ebg-active-${actived.state === true ? actived.color : ''}`,'ebtn'];
15
16
  if (buttonConfig.hasOwnProperty(config)) {
16
17
  buttonStyles = ['ebtn', ...buttonConfig[config], `ebg-${shade}`, `eoutline-${outlineShade}`, `ebtn-${size}`,`ebtn-${shade}:hover`,`ebtn-${shade}:focus` ,`disabled`,className];
17
18
  }
@@ -46,8 +47,11 @@
46
47
  @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
47
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");
48
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");
49
53
  .ebtn {
50
- background-color: #ffffff;
54
+ background-color: #DEE2E6;
51
55
  color: black;
52
56
  border: none;
53
57
  cursor: pointer;
@@ -1331,4 +1335,59 @@
1331
1335
  font-style: normal;
1332
1336
  font-weight: 400;
1333
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;
1334
1393
  }</style>
@@ -17,6 +17,10 @@ export default class Button extends SvelteComponentTyped<{
17
17
  shade?: string | undefined;
18
18
  outlineShade?: string | undefined;
19
19
  className?: string | undefined;
20
+ actived?: {
21
+ state: boolean;
22
+ color: string;
23
+ } | undefined;
20
24
  }, {
21
25
  click: MouseEvent;
22
26
  focus: FocusEvent;
@@ -48,6 +52,10 @@ declare const __propDef: {
48
52
  shade?: string | undefined;
49
53
  outlineShade?: string | undefined;
50
54
  className?: string | undefined;
55
+ actived?: {
56
+ state: boolean;
57
+ color: string;
58
+ } | undefined;
51
59
  };
52
60
  events: {
53
61
  click: MouseEvent;
@@ -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.71",
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",