@enki-tek/fms-web-components 0.0.37 → 0.0.38

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