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

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