@enki-tek/fms-web-components 0.0.3 → 0.0.4

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,8 +1,7 @@
1
1
  <script>import { Breadcrumb, BreadcrumbItem } from "sveltestrap";
2
- import { goto } from "$app/navigation";
3
2
  export let newBreadcrumbs;
4
3
  function handleClick(data) {
5
- goto(data.link);
4
+ navigator(data.link);
6
5
  }
7
6
  let length = newBreadcrumbs.length;
8
7
  </script>
@@ -1,8 +1,21 @@
1
1
  // Importing variables from variable.scss file
2
2
  @import './../variable.scss';
3
3
 
4
+ %common-styles {
5
+ color: $white;
6
+ }
7
+
8
+ %sidebar-styles {
9
+ background: $primary-dark;
10
+ }
11
+
12
+ %active-styles {
13
+ border-left: 2px solid $white;
14
+ background: $blue-700;
15
+ }
16
+
4
17
  .row {
5
- --bs-gutter-x: -0.5rem;
18
+ --bs-gutter-x: 1rem;
6
19
  }
7
20
 
8
21
  .icon-sidebar {
@@ -10,78 +23,93 @@
10
23
  top: 0;
11
24
  left: 0;
12
25
  height: 100%;
13
- width: 60px;
14
- background-color: #fff;
26
+ width: 88px;
27
+ background: $primary-dark;
15
28
  }
16
29
 
17
- .icon-sidebar .toggleButton {
18
- display: flex;
19
- align-items: center;
30
+ .line {
31
+ width: 88px;
32
+ height: 1px;
33
+ background: $white;
34
+ margin-left: -7px;
35
+ }
36
+
37
+ .icon-btn {
20
38
  padding: 20px;
21
- gap: 32px;
39
+ }
40
+
41
+ .icon-sidebar-content .toggle-button {
42
+ @extend %common-styles;
22
43
  }
23
44
 
24
45
  .icon-sidebar-content ul {
46
+ display: flex;
47
+ align-items: center;
25
48
  padding: 20px;
26
- color: $primary-dark;
49
+ @extend %common-styles;
27
50
  gap: 32px;
28
51
  }
29
52
 
30
- #offcanvasScrollingLabel {
31
- color: $secondary-dark;
53
+ .icon-sidebar-content ul .active {
54
+ @extend %active-styles;
55
+ }
56
+
57
+ //sidbar open class
58
+
59
+ :global(.offcanvas-body) {
60
+ @extend %sidebar-styles;
61
+ padding: 0rem 0rem;
62
+ }
63
+
64
+ .offcanvas-title {
65
+ color: $white;
32
66
  font-size: 28px;
33
- font-weight: 600;
34
67
  }
35
68
 
36
69
  ul {
37
- color: $primary-dark;
38
- gap: 4px;
70
+ @extend %common-styles;
39
71
  }
40
72
 
41
73
  .nav-item {
42
74
  display: flex;
43
- width: 241px;
44
- padding: 15px;
75
+ width: 274px;
76
+ padding: 15px 32px;
45
77
  align-items: center;
46
- gap: 10px;
47
- border-radius: 4px;
48
- border: 1px solid $primary-dark;
78
+ gap: 8px;
49
79
  }
50
80
 
51
81
  .nav-item .item-name {
52
- color: $primary-dark;
53
- font-size: 16px;
54
- font-style: normal;
55
- font-weight: 400;
56
82
  line-height: 22px;
57
- font-family: 'Roboto';
58
83
  }
59
84
 
60
- .toggleButton {
85
+ .nav .nav-item.active {
86
+ @extend %active-styles;
87
+ }
88
+
89
+ .toggle-button {
61
90
  background-color: transparent;
62
- border: #fff;
91
+ border: $white;
63
92
  cursor: pointer;
64
93
  }
65
94
 
66
95
  .material-icons {
67
96
  font-size: 24px;
68
- color: $primary-dark;
97
+ color: $white;
69
98
  }
70
99
 
71
- :global(.offcanvas-start) {
100
+ :global(.offcanvas.offcanvas-start) {
72
101
  width: 274px;
73
102
  border-right: none;
74
103
  }
75
104
 
76
- :global(.offcanvas.offcanvas-start) {
77
- width: 274px;
78
- border-right: none;
105
+ .offcanvas-header {
106
+ padding: 1.5rem 1.5rem;
79
107
  }
80
108
 
81
- :global(.offcanvas-body) {
82
- padding: 0.5rem 0.5rem;
109
+ .line-open {
110
+ width: 274px;
111
+ height: 1px;
112
+ @extend %common-styles;
83
113
  }
84
114
 
85
- .offcanvas-header {
86
- padding: 0.5rem 0.5rem;
87
- }
115
+
@@ -2,6 +2,7 @@ import Sidebar from "./Sidebar.svelte";
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: typeof Sidebar;
5
+ tags: string[];
5
6
  argTypes: {
6
7
  companyName: {
7
8
  control: {
@@ -16,13 +17,13 @@ declare const _default: {
16
17
  };
17
18
  };
18
19
  export default _default;
19
- export declare const Default: ({ companyName, navItems }: {
20
- companyName: any;
21
- navItems: any;
22
- }) => {
23
- Component: typeof Sidebar;
24
- props: {
25
- companyName: any;
26
- navItems: any;
20
+ export declare const Default: {
21
+ args: {
22
+ companyName: string;
23
+ navItems: {
24
+ name: string;
25
+ icon: string;
26
+ route: string;
27
+ }[];
27
28
  };
28
29
  };
@@ -2,26 +2,26 @@ import Sidebar from "./Sidebar.svelte";
2
2
  export default {
3
3
  title: 'FMS/Sidebar',
4
4
  component: Sidebar,
5
+ tags: ['autodocs'],
5
6
  argTypes: {
6
7
  companyName: { control: { type: 'text' } },
7
8
  navItems: { control: { type: 'object' } }
8
9
  }
9
10
  };
10
- const Template = ({ companyName, navItems }) => ({
11
- Component: Sidebar,
12
- props: { companyName, navItems }
13
- });
14
- export const Default = Template.bind({});
15
- Default.args = {
16
- companyName: 'Vertfarm',
17
- navItems: [
18
- { name: 'Home', icon: 'home' },
19
- { name: 'About', icon: 'person' },
20
- { name: 'Services', icon: 'settings' },
21
- { name: 'Contact', icon: 'email' },
22
- { name: 'Home', icon: 'home' },
23
- { name: 'About', icon: 'person' },
24
- { name: 'Services', icon: 'settings' },
25
- { name: 'Contact', icon: 'email' }
26
- ]
11
+ export const Default = {
12
+ args: {
13
+ companyName: 'Vertfarm',
14
+ navItems: [
15
+ { name: 'Overview', icon: 'house-fill', route: '/overview' },
16
+ { name: 'Container Types', icon: 'aspect-ratio', route: '/container-types' },
17
+ { name: 'Containers', icon: 'view-list', route: '/containers' },
18
+ { name: 'Batch Operations', icon: 'grid', route: '/batch-operations' },
19
+ { name: 'Recipe', icon: 'soundwave', route: '/recipe' },
20
+ { name: 'Work Order', icon: 'collection', route: '/work-order' },
21
+ { name: 'Protocol', icon: 'textarea', route: '/protocol' },
22
+ { name: 'Users', icon: 'people', route: '/users' },
23
+ { name: 'Packaging Configuration', icon: 'box-seam', route: '/packaging-configuration' },
24
+ { name: 'Delivery', icon: 'truck', route: '/delivery' }
25
+ ]
26
+ }
27
27
  };
@@ -1,144 +1,722 @@
1
1
  <script>
2
2
  import { Offcanvas } from 'sveltestrap';
3
+ import Icon from '../Icon/Icon.svelte';
4
+
3
5
  export let companyName = 'Vertfarm';
4
6
  export let navItems = [
5
- { name: 'Home', icon: 'home' },
6
- { name: 'About', icon: 'person' },
7
- { name: 'Services', icon: 'settings' },
8
- { name: 'Contact', icon: 'email' },
9
- { name: 'Home', icon: 'home' },
10
- { name: 'About', icon: 'person' },
11
- { name: 'Services', icon: 'settings' },
12
- { name: 'Contact', icon: 'email' }
7
+ { name: 'Overview', icon: 'house-fill', route: '/overview' },
8
+ { name: 'Container Types', icon: 'aspect-ratio', route: '/container-types' },
9
+ { name: 'Containers', icon: 'view-list', route: '/containers' },
10
+ { name: 'Batch Operations', icon: 'grid', route: '/batch-operations' },
11
+ { name: 'Recipe', icon: 'soundwave', route: '/recipe' },
12
+ { name: 'Work Order', icon: 'collection', route: '/work-order' },
13
+ { name: 'Protocol', icon: 'textarea', route: '/protocol' },
14
+ { name: 'Users', icon: 'people', route: '/users' },
15
+ { name: 'Packaging Configuration', icon: 'box-seam', route: '/packaging-configuration' },
16
+ { name: 'Delivery', icon: 'truck', route: '/delivery' }
13
17
  ];
18
+
14
19
  let isOpen = false;
20
+ let activeItem = 'Overview';
15
21
  </script>
16
22
 
17
23
  <div class="container-fluid">
18
24
  <div class="row">
19
25
  <!-- Toggle button for offcanvas -->
20
26
  <div class="col-auto icon-sidebar">
21
- <button
22
- class="toggleButton"
23
- type="button"
24
- data-bs-toggle="offcanvas"
25
- data-bs-target="#offcanvasScrolling"
26
- aria-controls="offcanvasScrolling"
27
- on:click={() => (isOpen = true)}
28
- >
29
- <span class="material-icons">{'keyboard_double_arrow_right'}</span>
30
- </button>
31
27
  <!-- Icon Sidebar -->
32
28
  <div class="icon-sidebar-content">
29
+ <div class="upper-div">
30
+ <div class="icon-btn">
31
+ <button class="toggle-button" type="button" on:click={() => (isOpen = true)}>
32
+ <Icon iconName="chevron-double-right" />
33
+ </button>
34
+ </div>
35
+ <div class="line" />
36
+ </div>
33
37
  <ul class="nav flex-column">
34
38
  {#each navItems as item, index}
35
- <li>
36
- <span class="material-icons">{item.icon}</span>
39
+ <li class:active={activeItem === item.name} on:click={() => (activeItem = item.name)}>
40
+ <Icon iconName={item.icon} />
37
41
  </li>
38
42
  {/each}
39
43
  </ul>
40
44
  </div>
41
45
  </div>
42
46
  <!-- Offcanvas menu -->
43
- <div>
44
- <Offcanvas class="offcanvas offcanvas-start" scroll {isOpen} backdrop={false}>
45
- <div class="offcanvas-header">
46
- <h5 class="offcanvas-title" id="offcanvasScrollingLabel">{companyName}</h5>
47
- <button
48
- type="button"
49
- class="toggleButton"
50
- data-bs-dismiss="offcanvas"
51
- aria-label="Close"
52
- on:click={() => (isOpen = false)}
53
- >
54
- <span class="material-icons">{'keyboard_double_arrow_left'}</span>
55
- </button>
56
- </div>
57
- <div class="offcanvas-body">
58
- <ul class="nav flex-column">
59
- {#each navItems as item, index}
60
- <li class="nav-item">
61
- <span class="material-icons">{item.icon}</span>
62
- <span class="item-name">{item.name}</span>
63
- </li>
64
- {/each}
65
- </ul>
66
- </div>
67
- </Offcanvas>
68
- </div>
47
+ <div class="sidebar-menu">
48
+ <Offcanvas class="offcanvas offcanvas-start" scroll {isOpen} backdrop={false}>
49
+ <div class="offcanvas-header">
50
+ <h5 class="offcanvas-title efs-small" id="offcanvasScrollingLabel">{companyName}</h5>
51
+ <button
52
+ type="button"
53
+ class="toggle-button"
54
+ data-bs-dismiss="offcanvas"
55
+ aria-label="Close"
56
+ on:click={() => (isOpen = false)}
57
+ >
58
+ <span class="material-icons">{'keyboard_double_arrow_left'}</span>
59
+ </button>
60
+ </div>
61
+ <div class="line-open" />
62
+ <div class="offcanvas-body">
63
+ <ul class="nav flex-column">
64
+ {#each navItems as item, index}
65
+ <li
66
+ class="nav-item"
67
+ class:active={activeItem === item.name}
68
+ on:click={() => (activeItem = item.name)}
69
+ >
70
+ <span><Icon iconName={item.icon} /></span>
71
+ <span class="item-name efs-normal">{item.name}</span>
72
+ </li>
73
+ {/each}
74
+ </ul>
75
+ </div>
76
+ </Offcanvas>
77
+ </div>
69
78
  </div>
70
79
  </div>
80
+
71
81
  <style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
72
82
  @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");
73
83
  @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");
84
+ @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
85
+ @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");
86
+ @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");
87
+ .line-open, ul, .icon-sidebar-content ul, .icon-sidebar-content .toggle-button {
88
+ color: #ffffff;
89
+ }
90
+ :global(.offcanvas-body) {
91
+ background: #007FD8;
92
+ }
93
+ .nav .nav-item.active, .icon-sidebar-content ul .active {
94
+ border-left: 2px solid #ffffff;
95
+ background: #084298;
96
+ }
74
97
  .row {
75
- --bs-gutter-x: -0.5rem;
98
+ --bs-gutter-x: 1rem;
76
99
  }
77
100
  .icon-sidebar {
78
101
  position: fixed;
79
102
  top: 0;
80
103
  left: 0;
81
104
  height: 100%;
82
- width: 60px;
83
- background-color: #fff;
105
+ width: 88px;
106
+ background: #007FD8;
84
107
  }
85
- .icon-sidebar .toggleButton {
86
- display: flex;
87
- align-items: center;
108
+ .line {
109
+ width: 88px;
110
+ height: 1px;
111
+ background: #ffffff;
112
+ margin-left: -7px;
113
+ }
114
+ .icon-btn {
88
115
  padding: 20px;
89
- gap: 32px;
90
116
  }
91
117
  .icon-sidebar-content ul {
118
+ display: flex;
119
+ align-items: center;
92
120
  padding: 20px;
93
- color: #007FD8;
94
121
  gap: 32px;
95
122
  }
96
- #offcanvasScrollingLabel {
97
- color: #00A855;
98
- font-size: 28px;
99
- font-weight: 600;
123
+ :global(.offcanvas-body) {
124
+ padding: 0rem 0rem;
100
125
  }
101
- ul {
102
- color: #007FD8;
103
- gap: 4px;
126
+ .offcanvas-title {
127
+ color: #ffffff;
128
+ font-size: 28px;
104
129
  }
105
130
  .nav-item {
106
131
  display: flex;
107
- width: 241px;
108
- padding: 15px;
132
+ width: 274px;
133
+ padding: 15px 32px;
109
134
  align-items: center;
110
- gap: 10px;
111
- border-radius: 4px;
112
- border: 1px solid #007FD8;
135
+ gap: 8px;
113
136
  }
114
137
  .nav-item .item-name {
115
- color: #007FD8;
116
- font-size: 16px;
117
- font-style: normal;
118
- font-weight: 400;
119
138
  line-height: 22px;
120
- font-family: "Roboto";
121
139
  }
122
- .toggleButton {
140
+ .toggle-button {
123
141
  background-color: transparent;
124
- border: #fff;
142
+ border: #ffffff;
125
143
  cursor: pointer;
126
144
  }
127
145
  .material-icons {
128
146
  font-size: 24px;
129
- color: #007FD8;
147
+ color: #ffffff;
130
148
  }
131
- :global(.offcanvas-start) {
149
+ :global(.offcanvas.offcanvas-start) {
132
150
  width: 274px;
133
151
  border-right: none;
134
152
  }
135
- :global(.offcanvas.offcanvas-start) {
153
+ .offcanvas-header {
154
+ padding: 1.5rem 1.5rem;
155
+ }
156
+ .line-open {
136
157
  width: 274px;
137
- border-right: none;
158
+ height: 1px;
138
159
  }
139
- :global(.offcanvas-body) {
140
- padding: 0.5rem 0.5rem;
160
+ :global(.ebg-none) {
161
+ background-color: #ffffff !important;
141
162
  }
142
- .offcanvas-header {
143
- padding: 0.5rem 0.5rem;
163
+ :global(.ebg-white) {
164
+ background-color: #ffffff;
165
+ }
166
+ :global(.ebg-secondary, .eactive-secondary:active, .ehover-secondary:hover) {
167
+ background-color: #3AC82E !important;
168
+ }
169
+ :global(.ebg-secondaryDark, .eactive-secondaryDark:active, .ehover-secondaryDark:hover) {
170
+ background-color: #00A855;
171
+ }
172
+ :global(.ebg-secondaryLight, .eactive-secondaryLight:active, .ehover-secondaryLight:hover) {
173
+ background-color: #CBFFC7;
174
+ }
175
+ :global(.ebg-primary) {
176
+ background-color: #00AEE5;
177
+ }
178
+ :global(.ebg-primaryDark) {
179
+ background-color: #007FD8;
180
+ }
181
+ :global(.ebg-primaryLight) {
182
+ background-color: #CEF3FF;
183
+ }
184
+ :global(.ebg-danger) {
185
+ background-color: #FE4747;
186
+ }
187
+ :global(.ebg-dangerDark) {
188
+ background-color: #B02A37;
189
+ }
190
+ :global(.ebg-dangerLight) {
191
+ background-color: #FE4747;
192
+ }
193
+ :global(.ebg-warning) {
194
+ background-color: #FFBA3A;
195
+ }
196
+ :global(.ebg-warningDark) {
197
+ background-color: #997404;
198
+ color: #ffffff !important;
199
+ }
200
+ :global(.ebg-warningLight) {
201
+ background-color: #FFF3CD;
202
+ }
203
+ :global(.ebg-info) {
204
+ background-color: #0DCAF0;
205
+ }
206
+ :global(.ebg-infoDark) {
207
+ background-color: #087990;
208
+ }
209
+ :global(.ebg-infoLight) {
210
+ background-color: #9EEAF9;
211
+ }
212
+ :global(.ebg-success) {
213
+ background-color: #00A96B;
214
+ }
215
+ :global(.ebg-successDark) {
216
+ background-color: #146C43;
217
+ }
218
+ :global(.ebg-successLight) {
219
+ background-color: #D1E7DD;
220
+ }
221
+ :global(.ebg-gray100) {
222
+ background-color: #F8F9FA;
223
+ }
224
+ :global(.ebg-gray200) {
225
+ background-color: #E9ECEF;
226
+ }
227
+ :global(.ebg-gray300) {
228
+ background-color: #DEE2E6;
229
+ }
230
+ :global(.ebg-gray400) {
231
+ background-color: #CED4DA;
232
+ }
233
+ :global(.ebg-gray500) {
234
+ background-color: #adb5bd;
235
+ }
236
+ :global(.ebg-gray600) {
237
+ background-color: #6C757D;
238
+ }
239
+ :global(.ebg-gray700) {
240
+ background-color: #495057;
241
+ }
242
+ :global(.ebg-gray800) {
243
+ background-color: #343A40;
244
+ }
245
+ :global(.ebg-gray900) {
246
+ background-color: #212529;
247
+ }
248
+ :global(.ebg-green100) {
249
+ background-color: #D1E7DD;
250
+ }
251
+ :global(.ebg-green200) {
252
+ background-color: #A3CFBB;
253
+ }
254
+ :global(.ebg-green300) {
255
+ background-color: #75B798;
256
+ }
257
+ :global(.ebg-green400) {
258
+ background-color: #479F76;
259
+ }
260
+ :global(.ebg-green500) {
261
+ background-color: #198754;
262
+ }
263
+ :global(.ebg-green600) {
264
+ background-color: #146C43;
265
+ }
266
+ :global(.ebg-green700) {
267
+ background-color: #0F5132;
268
+ }
269
+ :global(.ebg-green800) {
270
+ background-color: #0A3622;
271
+ }
272
+ :global(.ebg-green900) {
273
+ background-color: #051B11;
274
+ }
275
+ :global(.ebg-red100) {
276
+ background-color: #F8D7DA;
277
+ }
278
+ :global(.ebg-red200) {
279
+ background-color: #F1AEB5;
280
+ }
281
+ :global(.ebg-red300) {
282
+ background-color: #EA868F;
283
+ }
284
+ :global(.ebg-red400) {
285
+ background-color: #E35D6A;
286
+ }
287
+ :global(.ebg-red500) {
288
+ background-color: #DC3545;
289
+ }
290
+ :global(.ebg-red600) {
291
+ background-color: #B02A37;
292
+ }
293
+ :global(.ebg-red700) {
294
+ background-color: #842029;
295
+ }
296
+ :global(.ebg-red800) {
297
+ background-color: #58151C;
298
+ }
299
+ :global(.ebg-red900) {
300
+ background-color: #2C0B0E;
301
+ }
302
+ :global(.ebg-yellow100) {
303
+ background-color: #FFF3CD;
304
+ }
305
+ :global(.ebg-yellow200) {
306
+ background-color: #FFE69C;
307
+ }
308
+ :global(.ebg-yellow300) {
309
+ background-color: #FFDA6A;
310
+ }
311
+ :global(.ebg-yellow400) {
312
+ background-color: #FFCD39;
313
+ }
314
+ :global(.ebg-yellow500) {
315
+ background-color: #FFC107;
316
+ }
317
+ :global(.ebg-yellow600) {
318
+ background-color: #CC9A06;
319
+ }
320
+ :global(.ebg-yellow700) {
321
+ background-color: #997404;
322
+ }
323
+ :global(.ebg-yellow800) {
324
+ background-color: #664D03;
325
+ }
326
+ :global(.ebg-yellow900) {
327
+ background-color: #332701;
328
+ }
329
+ :global(.ebg-cyan100) {
330
+ background-color: #CFF4FC;
331
+ }
332
+ :global(.ebg-cyan200) {
333
+ background-color: #9EEAF9;
334
+ }
335
+ :global(.ebg-cyan300) {
336
+ background-color: #6EDFF6;
337
+ }
338
+ :global(.ebg-cyan400) {
339
+ background-color: #3DD5F3;
340
+ }
341
+ :global(.ebg-cyan500) {
342
+ background-color: #0DCAF0;
343
+ }
344
+ :global(.ebg-cyan600) {
345
+ background-color: #0AA2C0;
346
+ }
347
+ :global(.ebg-cyan700) {
348
+ background-color: #087990;
349
+ }
350
+ :global(.ebg-cyan800) {
351
+ background-color: #055160;
352
+ }
353
+ :global(.ebg-cyan900) {
354
+ background-color: #032830;
355
+ }
356
+ .etext-white {
357
+ color: #ffffff;
358
+ }
359
+ :global(.etext-dark) {
360
+ color: #000000;
361
+ }
362
+ :global(.etext-secondary) {
363
+ color: #3AC82E;
364
+ }
365
+ :global(.etext-secondaryDark) {
366
+ color: #00A855;
367
+ }
368
+ :global(.etext-secondaryLight) {
369
+ color: #CBFFC7;
370
+ }
371
+ :global(.etext-primary) {
372
+ color: #00AEE5;
373
+ }
374
+ :global(.etext-primaryDark) {
375
+ color: #007FD8;
376
+ }
377
+ :global(.etext-primaryLight) {
378
+ color: #CEF3FF;
379
+ }
380
+ :global(.etext-danger) {
381
+ color: #FE4747;
382
+ }
383
+ :global(.etext-dangerDark) {
384
+ color: #B02A37;
385
+ }
386
+ :global(.etext-dangerLight) {
387
+ color: #FE4747;
388
+ }
389
+ :global(.etext-info) {
390
+ color: #0DCAF0;
391
+ }
392
+ :global(.etext-infoDark) {
393
+ color: #087990;
394
+ }
395
+ :global(.etext-infoLight) {
396
+ color: #9EEAF9;
397
+ }
398
+ :global(.etext-success) {
399
+ color: #00A96B;
400
+ }
401
+ :global(.etext-successDark) {
402
+ color: #146C43;
403
+ }
404
+ :global(.etext-successLight) {
405
+ color: #D1E7DD;
406
+ }
407
+ :global(.etext-warning) {
408
+ color: #FFBA3A;
409
+ }
410
+ :global(.etext-warningDark) {
411
+ color: #997404;
412
+ }
413
+ :global(.etext-warningLight) {
414
+ color: #FFF3CD;
415
+ }
416
+ :global(.etext-gray100) {
417
+ color: #F8F9FA;
418
+ }
419
+ :global(.etext-gray200) {
420
+ color: #E9ECEF;
421
+ }
422
+ :global(.etext-gray300) {
423
+ color: #DEE2E6;
424
+ }
425
+ :global(.etext-gray400) {
426
+ color: #CED4DA;
427
+ }
428
+ :global(.etext-gray500) {
429
+ color: #adb5bd;
430
+ }
431
+ :global(.etext-gray600) {
432
+ color: #6C757D;
433
+ }
434
+ :global(.etext-gray700) {
435
+ color: #495057;
436
+ }
437
+ :global(.etext-gray800) {
438
+ color: #343A40;
439
+ }
440
+ :global(.etext-gray900) {
441
+ color: #212529;
442
+ }
443
+ :global(.etext-green100) {
444
+ color: #D1E7DD;
445
+ }
446
+ :global(.etext-green200) {
447
+ color: #A3CFBB;
448
+ }
449
+ :global(.etext-green300) {
450
+ color: #75B798;
451
+ }
452
+ :global(.etext-green400) {
453
+ color: #479F76;
454
+ }
455
+ :global(.etext-green500) {
456
+ color: #198754;
457
+ }
458
+ :global(.etext-green600) {
459
+ color: #146C43;
460
+ }
461
+ :global(.etext-green700) {
462
+ color: #0F5132;
463
+ }
464
+ :global(.etext-green800) {
465
+ color: #0A3622;
466
+ }
467
+ :global(.etext-green900) {
468
+ color: #051B11;
469
+ }
470
+ :global(.etext-red100) {
471
+ color: #F8D7DA;
472
+ }
473
+ :global(.etext-red200) {
474
+ color: #F1AEB5;
475
+ }
476
+ :global(.etext-red300) {
477
+ color: #EA868F;
478
+ }
479
+ :global(.etext-red400) {
480
+ color: #E35D6A;
481
+ }
482
+ :global(.etext-red500) {
483
+ color: #DC3545;
484
+ }
485
+ :global(.etext-red600) {
486
+ color: #B02A37;
487
+ }
488
+ :global(.etext-red700) {
489
+ color: #842029;
490
+ }
491
+ :global(.etext-red800) {
492
+ color: #58151C;
493
+ }
494
+ :global(.etext-red900) {
495
+ color: #2C0B0E;
496
+ }
497
+ :global(.etext-yellow100) {
498
+ color: #FFF3CD;
499
+ }
500
+ :global(.etext-yellow200) {
501
+ color: #FFE69C;
502
+ }
503
+ :global(.etext-yellow300) {
504
+ color: #FFDA6A;
505
+ }
506
+ :global(.etext-yellow400) {
507
+ color: #FFCD39;
508
+ }
509
+ :global(.etext-yellow500) {
510
+ color: #FFC107;
511
+ }
512
+ :global(.etext-yellow600) {
513
+ color: #CC9A06;
514
+ }
515
+ :global(.etext-yellow700) {
516
+ color: #997404;
517
+ }
518
+ :global(.etext-yellow800) {
519
+ color: #664D03;
520
+ }
521
+ :global(.etext-yellow900) {
522
+ color: #332701;
523
+ }
524
+ :global(.etext-cyan100) {
525
+ color: #CFF4FC;
526
+ }
527
+ :global(.etext-cyan200) {
528
+ color: #9EEAF9;
529
+ }
530
+ :global(.etext-cyan300) {
531
+ color: #6EDFF6;
532
+ }
533
+ :global(.etext-cyan400) {
534
+ color: #3DD5F3;
535
+ }
536
+ :global(.etext-cyan500) {
537
+ color: #0DCAF0;
538
+ }
539
+ :global(.etext-cyan600) {
540
+ color: #0AA2C0;
541
+ }
542
+ :global(.etext-cyan700) {
543
+ color: #087990;
544
+ }
545
+ :global(.etext-cyan800) {
546
+ color: #055160;
547
+ }
548
+ :global(.etext-cyan900) {
549
+ color: #032830;
550
+ }
551
+ :global(.eoutline-secondary) {
552
+ outline: 1px solid #3AC82E;
553
+ }
554
+ :global(.eoutline-secondaryDark) {
555
+ outline: 1px solid #00A855;
556
+ }
557
+ :global(.eoutline-secondaryLight) {
558
+ outline: 1px solid #CBFFC7;
559
+ }
560
+ :global(.eoutline-primary) {
561
+ outline: 1px solid #00AEE5;
562
+ }
563
+ :global(.eoutline-primaryDark) {
564
+ outline: 1px solid #007FD8;
565
+ }
566
+ :global(.eoutline-primaryLight) {
567
+ outline: 1px solid #CEF3FF;
568
+ }
569
+ :global(.eoutline-danger) {
570
+ outline: 1px solid #FE4747;
571
+ }
572
+ :global(.eoutline-dangerDark) {
573
+ outline: 1px solid #B02A37;
574
+ }
575
+ :global(.eoutline-dangerLight) {
576
+ outline: 1px solid #FE4747;
577
+ }
578
+ :global(.eoutline-success) {
579
+ outline: 1px solid #00A96B;
580
+ }
581
+ :global(.eoutline-successDark) {
582
+ outline: 1px solid #146C43;
583
+ }
584
+ :global(.eoutline-successLight) {
585
+ outline: 1px solid #D1E7DD;
586
+ }
587
+ :global(.eoutline-info) {
588
+ outline: 1px solid #0DCAF0;
589
+ }
590
+ :global(.eoutline-infoDark) {
591
+ outline: 1px solid #087990;
592
+ }
593
+ :global(.eoutline-infoLight) {
594
+ outline: 1px solid #9EEAF9;
595
+ }
596
+ :global(.eoutline-warning) {
597
+ outline: 1px solid #FFBA3A;
598
+ }
599
+ :global(.eoutline-warningDark) {
600
+ outline: 1px solid #997404;
601
+ }
602
+ :global(.eoutline-warningLight) {
603
+ outline: 1px solid #FFF3CD;
604
+ }
605
+ :global(.eradius) {
606
+ border-radius: 4px;
607
+ }
608
+ :global(.eradius-low) {
609
+ border-radius: 8px;
610
+ }
611
+ :global(.eradius-medium) {
612
+ border-radius: 16px;
613
+ }
614
+ :global(.eradius-full) {
615
+ border-radius: 50%;
616
+ }
617
+ .eshadow-non {
618
+ box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
619
+ }
620
+ .eshadow-low {
621
+ box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
622
+ }
623
+ .eshadow-medium {
624
+ box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.1);
625
+ }
626
+ .eshadow-high {
627
+ box-shadow: 0px 1px 16px 0px rgba(0, 0, 0, 0.1);
628
+ }
629
+ :global(.efs-small) {
630
+ font-family: Roboto;
631
+ font-size: 12px;
632
+ font-style: normal;
633
+ font-weight: 400;
634
+ line-height: normal;
635
+ }
636
+ :global(.efs-normal) {
637
+ font-family: Roboto;
638
+ font-size: 16px;
639
+ font-style: normal;
640
+ font-weight: 400;
641
+ line-height: 28px;
642
+ }
643
+ :global(.efs-strong) {
644
+ font-family: Roboto;
645
+ font-size: 17px;
646
+ font-style: normal;
647
+ font-weight: 700;
648
+ line-height: 28px;
649
+ }
650
+ :global(.efs-h6) {
651
+ font-family: Roboto;
652
+ font-size: 16px;
653
+ font-style: normal;
654
+ font-weight: 700;
655
+ line-height: normal;
656
+ }
657
+ :global(.efs-h5) {
658
+ font-family: Roboto;
659
+ font-size: 20px;
660
+ font-style: normal;
661
+ font-weight: 700;
662
+ line-height: normal;
663
+ }
664
+ :global(.efs-h4) {
665
+ font-family: Roboto;
666
+ font-size: 24px;
667
+ font-style: normal;
668
+ font-weight: 700;
669
+ line-height: normal;
670
+ }
671
+ :global(.efs-h3) {
672
+ font-family: Roboto;
673
+ font-size: 28px;
674
+ font-style: normal;
675
+ font-weight: 700;
676
+ line-height: normal;
677
+ }
678
+ :global(.efs-h2) {
679
+ font-family: Roboto;
680
+ font-size: 32px;
681
+ font-style: normal;
682
+ font-weight: 700;
683
+ line-height: normal;
684
+ }
685
+ :global(.efs-h1) {
686
+ font-family: Roboto;
687
+ font-size: 40px;
688
+ font-style: normal;
689
+ font-weight: 700;
690
+ line-height: normal;
691
+ letter-spacing: -0.8px;
692
+ }
693
+ :global(.efs-h4D) {
694
+ font-family: Merriweather;
695
+ font-size: 52px;
696
+ font-style: normal;
697
+ font-weight: 400;
698
+ line-height: normal;
699
+ }
700
+ :global(.efs-h3D) {
701
+ font-family: Merriweather;
702
+ font-size: 58px;
703
+ font-style: normal;
704
+ font-weight: 400;
705
+ line-height: normal;
706
+ }
707
+ :global(.efs-h2D) {
708
+ font-family: Merriweather;
709
+ font-size: 64px;
710
+ font-style: normal;
711
+ font-weight: 400;
712
+ line-height: normal;
713
+ letter-spacing: -1.28px;
714
+ }
715
+ :global(.efs-h1D) {
716
+ font-family: Merriweather;
717
+ font-size: 72px;
718
+ font-style: normal;
719
+ font-weight: 400;
720
+ line-height: normal;
144
721
  }</style>
722
+
@@ -6,6 +6,7 @@ export default class Sidebar extends SvelteComponentTyped<{
6
6
  navItems?: {
7
7
  name: string;
8
8
  icon: string;
9
+ route: string;
9
10
  }[] | undefined;
10
11
  }, {
11
12
  [evt: string]: CustomEvent<any>;
@@ -21,6 +22,7 @@ declare const __propDef: {
21
22
  navItems?: {
22
23
  name: string;
23
24
  icon: string;
25
+ route: string;
24
26
  }[] | undefined;
25
27
  };
26
28
  events: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",