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