@enki-tek/fms-web-components 0.0.57 → 0.0.58

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,6 +48,9 @@
48
48
  width: 45px;
49
49
  font-weight: bold;
50
50
  }
51
+ .avatar-text {
52
+ color: black;
53
+ }
51
54
  :global(.headerIcons i) {
52
55
  padding: 0 4px;
53
56
  font-size: 18px;
@@ -22,6 +22,11 @@
22
22
  height:45px;
23
23
  width:45px;
24
24
  font-weight:bold;
25
+
26
+ }
27
+
28
+ .avatar-text{
29
+ color: black ;
25
30
  }
26
31
 
27
32
  :global(.headerIcons i) {
@@ -50,6 +50,9 @@
50
50
  width: 45px;
51
51
  font-weight: bold;
52
52
  }
53
+ .avatar-text {
54
+ color: black;
55
+ }
53
56
  :global(.headerIcons i) {
54
57
  padding: 0 4px;
55
58
  font-size: 18px;
@@ -4,12 +4,22 @@
4
4
  NavLink,
5
5
  Icon
6
6
  } from 'sveltestrap';
7
- export let iconName ='gear';
7
+ export let iconName ='';
8
8
  export let link = "#";
9
+ export let type = " ";
10
+
9
11
  </script>
10
12
 
11
13
  <NavItem class='me-3' {...$$restProps}>
12
- <NavLink href={link} class='headerIcons' on:click><Icon name={iconName}></Icon><slot></slot></NavLink>
14
+ <NavLink href={link} class='headerIcons' on:click>
15
+ {#if type === "icon"}
16
+ <Icon name={iconName}></Icon>
17
+ {:else if type === "avatarText"}
18
+ <span class="avatar-text">
19
+ <slot></slot>
20
+ </span>
21
+ {/if}
22
+ </NavLink>
13
23
  </NavItem>
14
24
 
15
25
  <style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
@@ -39,6 +49,9 @@
39
49
  width: 45px;
40
50
  font-weight: bold;
41
51
  }
52
+ .avatar-text {
53
+ color: black;
54
+ }
42
55
  :global(.headerIcons i) {
43
56
  padding: 0 4px;
44
57
  font-size: 18px;
@@ -4,6 +4,7 @@
4
4
  export default class HeaderItem extends SvelteComponentTyped<{
5
5
  [x: string]: any;
6
6
  link?: string | undefined;
7
+ type?: string | undefined;
7
8
  iconName?: string | undefined;
8
9
  }, {
9
10
  click: MouseEvent;
@@ -21,6 +22,7 @@ declare const __propDef: {
21
22
  props: {
22
23
  [x: string]: any;
23
24
  link?: string | undefined;
25
+ type?: string | undefined;
24
26
  iconName?: string | undefined;
25
27
  };
26
28
  events: {
@@ -47,6 +47,9 @@
47
47
  width: 45px;
48
48
  font-weight: bold;
49
49
  }
50
+ .avatar-text {
51
+ color: black;
52
+ }
50
53
  :global(.headerIcons i) {
51
54
  padding: 0 4px;
52
55
  font-size: 18px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",