@enki-tek/fms-web-components 0.0.39 → 0.0.41

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.
@@ -1,11 +1,10 @@
1
1
  <script>import { Alert } from "sveltestrap";
2
2
  export let color = "info";
3
- export let message = "I am an alert and I can be dismissed!";
4
3
  </script>
5
4
 
6
5
  <Alert class={`alert-${color}`} dismissible>
7
6
  <slot />
8
- {message}
7
+
9
8
  </Alert>
10
9
 
11
10
 
@@ -2,7 +2,6 @@ import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  color?: "info" | "success" | "danger" | "warning" | undefined;
5
- message?: string | undefined;
6
5
  };
7
6
  events: {
8
7
  [evt: string]: CustomEvent<any>;
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  import { Offcanvas } from 'sveltestrap';
3
3
  import Icon from '../Icon/Icon.svelte';
4
- export let companyName = 'Vertfarm';
4
+ export let companyName = 'ENKITEK';
5
5
  export let isOpen = true;
6
6
  export let backdrop = false;
7
7
  import { menuTypeStore } from '../lay-out/menuStore.js';
@@ -35,7 +35,15 @@
35
35
  <div class="sidebar-menu">
36
36
  <Offcanvas class="offcanvas offcanvas-start" scroll {isOpen} {backdrop}>
37
37
  <div class="offcanvas-header">
38
- <h5 class="offcanvas-title efs-small" id="offcanvasScrollingLabel">{companyName}</h5>
38
+ <h5 class="offcanvas-title efs-small" id="offcanvasScrollingLabel">
39
+ <slot>
40
+ {#if companyName}
41
+ {companyName}
42
+ {:else}
43
+ <slot name="company-name"/>
44
+ {/if}
45
+ </slot>
46
+ </h5>
39
47
  <button
40
48
  type="button"
41
49
  class="toggle-button"
@@ -131,6 +139,7 @@
131
139
  }
132
140
  .offcanvas-header {
133
141
  padding: 1.5rem 1.5rem;
142
+ display: flex;
134
143
  }
135
144
  .line-open {
136
145
  width: 274px;
@@ -9,6 +9,8 @@ export default class EnkiSidebar extends SvelteComponentTyped<{
9
9
  [evt: string]: CustomEvent<any>;
10
10
  }, {
11
11
  'nav-icons': {};
12
+ default: {};
13
+ 'company-name': {};
12
14
  'nav-item': {};
13
15
  }> {
14
16
  }
@@ -27,6 +29,8 @@ declare const __propDef: {
27
29
  };
28
30
  slots: {
29
31
  'nav-icons': {};
32
+ default: {};
33
+ 'company-name': {};
30
34
  'nav-item': {};
31
35
  };
32
36
  };
@@ -78,6 +78,7 @@
78
78
  }
79
79
  .offcanvas-header {
80
80
  padding: 1.5rem 1.5rem;
81
+ display: flex;
81
82
  }
82
83
  .line-open {
83
84
  width: 274px;
@@ -80,6 +80,7 @@
80
80
  }
81
81
  .offcanvas-header {
82
82
  padding: 1.5rem 1.5rem;
83
+ display: flex;
83
84
  }
84
85
  .line-open {
85
86
  width: 274px;
@@ -88,6 +88,7 @@
88
88
  }
89
89
  .offcanvas-header {
90
90
  padding: 1.5rem 1.5rem;
91
+ display: flex;
91
92
  }
92
93
  .line-open {
93
94
  width: 274px;
@@ -119,6 +119,7 @@
119
119
 
120
120
  .offcanvas-header {
121
121
  padding: 1.5rem 1.5rem;
122
+ display: flex;
122
123
  }
123
124
 
124
125
  .line-open {
@@ -35,4 +35,5 @@
35
35
  width: 12.5rem;
36
36
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
37
37
  font-weight: 400;
38
+ vertical-align: middle;
38
39
  }</style>
@@ -13,11 +13,10 @@
13
13
  font-size: 17px;
14
14
  }
15
15
 
16
-
17
-
18
16
  .td-div {
19
17
  width: 12.5rem;
20
18
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
21
19
  @extend %common-fonts;
22
20
  font-weight: 400;
21
+ vertical-align: middle;
23
22
  }
@@ -23,4 +23,5 @@
23
23
  width: 12.5rem;
24
24
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
25
25
  font-weight: 400;
26
+ vertical-align: middle;
26
27
  }</style>
@@ -25,4 +25,5 @@ let tdStyles = ['td-div', className]
25
25
  width: 12.5rem;
26
26
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
27
27
  font-weight: 400;
28
+ vertical-align: middle;
28
29
  }</style>
@@ -22,4 +22,5 @@
22
22
  width: 12.5rem;
23
23
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
24
24
  font-weight: 400;
25
+ vertical-align: middle;
25
26
  }</style>
@@ -25,4 +25,5 @@
25
25
  width: 12.5rem;
26
26
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
27
27
  font-weight: 400;
28
+ vertical-align: middle;
28
29
  }</style>
@@ -23,4 +23,5 @@
23
23
  width: 12.5rem;
24
24
  padding: 0.5rem 0.5rem 0.5625rem 0.5rem;
25
25
  font-weight: 400;
26
+ vertical-align: middle;
26
27
  }</style>