@enki-tek/fms-web-components 0.1.46 → 0.1.48

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.
@@ -69,7 +69,7 @@
69
69
  @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
70
70
  @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");
71
71
  @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");
72
- .nav-item, .sidebar-open-ul, :global(.flex-column), .icons, .icon-sidebar-content .toggle-button {
72
+ .nav-item, .icons, .icon-sidebar-content .toggle-button {
73
73
  color: #ffffff;
74
74
  }
75
75
  .line-open, .line {
@@ -121,10 +121,6 @@ li.icons:hover {
121
121
  :global(.offcanvas-body) {
122
122
  padding: 0rem 0rem;
123
123
  }
124
- .offcanvas-title {
125
- color: #ffffff;
126
- font-size: 28px;
127
- }
128
124
  .nav-item {
129
125
  padding: 18px 32px;
130
126
  }
@@ -12,7 +12,7 @@
12
12
  @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
13
13
  @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");
14
14
  @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");
15
- .nav-item, .sidebar-open-ul, :global(.flex-column), .icons, .icon-sidebar-content .toggle-button {
15
+ .nav-item, .icons, .icon-sidebar-content .toggle-button {
16
16
  color: #ffffff;
17
17
  }
18
18
  .line-open, .line {
@@ -64,10 +64,6 @@ li.icons:hover {
64
64
  :global(.offcanvas-body) {
65
65
  padding: 0rem 0rem;
66
66
  }
67
- .offcanvas-title {
68
- color: #ffffff;
69
- font-size: 28px;
70
- }
71
67
  .nav-item {
72
68
  padding: 18px 32px;
73
69
  }
@@ -10,7 +10,7 @@
10
10
  @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
11
11
  @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");
12
12
  @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");
13
- .nav-item, .sidebar-open-ul, :global(.flex-column), .icons, .icon-sidebar-content .toggle-button {
13
+ .nav-item, .icons, .icon-sidebar-content .toggle-button {
14
14
  color: #ffffff;
15
15
  }
16
16
  .line-open, .line {
@@ -62,10 +62,6 @@ li.icons:hover {
62
62
  :global(.offcanvas-body) {
63
63
  padding: 0rem 0rem;
64
64
  }
65
- .offcanvas-title {
66
- color: #ffffff;
67
- font-size: 28px;
68
- }
69
65
  .nav-item {
70
66
  padding: 18px 32px;
71
67
  }
@@ -19,7 +19,7 @@
19
19
  @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
20
20
  @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");
21
21
  @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");
22
- .nav-item, .sidebar-open-ul, :global(.flex-column), .icons, .icon-sidebar-content .toggle-button {
22
+ .nav-item, .icons, .icon-sidebar-content .toggle-button {
23
23
  color: #ffffff;
24
24
  }
25
25
  .line-open, .line {
@@ -71,10 +71,6 @@ li.icons:hover {
71
71
  :global(.offcanvas-body) {
72
72
  padding: 0rem 0rem;
73
73
  }
74
- .offcanvas-title {
75
- color: #ffffff;
76
- font-size: 28px;
77
- }
78
74
  .nav-item {
79
75
  padding: 18px 32px;
80
76
  }
@@ -81,18 +81,6 @@ li.icons:hover {
81
81
  padding: 0rem 0rem;
82
82
  }
83
83
 
84
- .offcanvas-title {
85
- color: $white;
86
- font-size: 28px;
87
- }
88
-
89
- :global(.flex-column) {
90
- @extend %common-styles;
91
- }
92
-
93
- .sidebar-open-ul {
94
- @extend %common-styles;
95
- }
96
84
 
97
85
 
98
86
  .nav-item {
@@ -4,12 +4,13 @@
4
4
  export let icon = '';
5
5
  const classNames = { edit: 'icon-edit', delete: 'icon-trash' };
6
6
  export let type = '';
7
+ export let iconClassName = 'me-2';
7
8
  </script>
8
9
 
9
10
  <a href={link} {...$$restProps} on:click>
10
- <div class={classNames[type]?? ''}>
11
+ <div class={classNames[type] ?? ''}>
11
12
  {#if icon}
12
- <Icon iconName={icon} />
13
+ <Icon iconName={icon} className={iconClassName} />
13
14
  {/if}
14
15
  </div>
15
16
  </a>
@@ -6,6 +6,7 @@ export default class ActionIcon extends SvelteComponentTyped<{
6
6
  type?: string | undefined;
7
7
  icon?: string | undefined;
8
8
  link?: string | undefined;
9
+ iconClassName?: string | undefined;
9
10
  }, {
10
11
  click: MouseEvent;
11
12
  } & {
@@ -22,6 +23,7 @@ declare const __propDef: {
22
23
  type?: string | undefined;
23
24
  icon?: string | undefined;
24
25
  link?: string | undefined;
26
+ iconClassName?: string | undefined;
25
27
  };
26
28
  events: {
27
29
  click: MouseEvent;
@@ -2,7 +2,7 @@
2
2
  import {Icon} from 'sveltestrap'
3
3
 
4
4
  export let iconName = " ";
5
- export let className="";
5
+ export let className="me-2";
6
6
  </script>
7
7
 
8
- <Icon name={iconName} class="me-2 {className}" {...$$restProps} on:click/>
8
+ <Icon name={iconName} class="{className}" {...$$restProps} on:click/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",