@enki-tek/fms-web-components 0.0.1 → 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 (106) hide show
  1. package/README.md +1 -1
  2. package/app.scss +1 -1
  3. package/components/Accordion/Accordion.scss +30 -0
  4. package/components/Accordion/Accordion.stories.d.ts +20 -0
  5. package/components/Accordion/Accordion.stories.js +30 -0
  6. package/components/Accordion/Accordion.svelte +617 -0
  7. package/components/Accordion/Accordion.svelte.d.ts +17 -0
  8. package/components/Alert/Alert.scss +25 -0
  9. package/components/Alert/Alert.stories.d.ts +54 -0
  10. package/components/Alert/Alert.stories.js +46 -0
  11. package/components/Alert/Alert.svelte +29 -0
  12. package/components/Alert/Alert.svelte.d.ts +19 -0
  13. package/components/Badge/Badge.scss +8 -0
  14. package/components/Badge/Badge.stories.d.ts +75 -0
  15. package/components/Badge/Badge.stories.js +55 -0
  16. package/components/Badge/Badge.svelte +587 -0
  17. package/components/Badge/Badge.svelte.d.ts +17 -0
  18. package/components/Badge/BadgeConfig.d.ts +10 -0
  19. package/components/Badge/BadgeConfig.js +34 -0
  20. package/components/Breadcrumb/Breadcrumb.scss +26 -0
  21. package/components/Breadcrumb/Breadcrumb.stories.d.ts +23 -0
  22. package/components/Breadcrumb/Breadcrumb.stories.js +20 -0
  23. package/components/Breadcrumb/Breadcrumb.svelte +603 -0
  24. package/components/Breadcrumb/Breadcrumb.svelte.d.ts +16 -0
  25. package/components/Button/Button.scss +706 -0
  26. package/components/Button/Button.stories.d.ts +96 -27
  27. package/components/Button/Button.stories.js +99 -38
  28. package/components/Button/Button.svelte +1125 -10
  29. package/components/Button/Button.svelte.d.ts +43 -9
  30. package/components/Button/buttonConfig.d.ts +38 -0
  31. package/components/Button/buttonConfig.js +203 -0
  32. package/components/Card/Card.scss +39 -0
  33. package/components/Card/Card.stories.d.ts +59 -0
  34. package/components/Card/Card.stories.js +42 -0
  35. package/components/Card/Card.svelte +123 -0
  36. package/components/Card/Card.svelte.d.ts +51 -0
  37. package/components/CheckBox/Checkbox.scss +32 -0
  38. package/components/CheckBox/Checkbox.stories.d.ts +94 -0
  39. package/components/CheckBox/Checkbox.stories.js +51 -0
  40. package/components/CheckBox/Checkbox.svelte +614 -0
  41. package/components/CheckBox/Checkbox.svelte.d.ts +31 -0
  42. package/components/Dropdown/Dropdown.scss +72 -0
  43. package/components/Dropdown/Dropdown.stories.d.ts +29 -0
  44. package/components/Dropdown/Dropdown.stories.js +19 -0
  45. package/components/Dropdown/Dropdown.svelte +646 -0
  46. package/components/Dropdown/Dropdown.svelte.d.ts +17 -0
  47. package/components/Header/Header.scss +54 -0
  48. package/components/Header/Header.stories.d.ts +28 -0
  49. package/components/Header/Header.stories.js +28 -0
  50. package/components/Header/Header.svelte +667 -0
  51. package/components/Header/Header.svelte.d.ts +27 -0
  52. package/components/Icon/Icon.scss +0 -0
  53. package/components/Icon/Icon.stories.d.ts +21 -0
  54. package/components/Icon/Icon.stories.js +18 -0
  55. package/components/Icon/Icon.svelte +7 -0
  56. package/components/Icon/Icon.svelte.d.ts +23 -0
  57. package/components/ModalWindow/Modal.scss +28 -0
  58. package/components/ModalWindow/Modal.stories.d.ts +29 -0
  59. package/components/ModalWindow/Modal.stories.js +20 -0
  60. package/components/ModalWindow/Modal.svelte +641 -0
  61. package/components/ModalWindow/Modal.svelte.d.ts +23 -0
  62. package/components/Pagination/Pagination.scss +83 -0
  63. package/components/Pagination/Pagination.stories.d.ts +29 -0
  64. package/components/Pagination/Pagination.stories.js +18 -0
  65. package/components/Pagination/Pagination.svelte +702 -0
  66. package/components/Pagination/Pagination.svelte.d.ts +18 -0
  67. package/components/RadioButton/RadioButton.scss +28 -0
  68. package/components/RadioButton/RadioButton.stories.d.ts +35 -0
  69. package/components/RadioButton/RadioButton.stories.js +25 -0
  70. package/components/RadioButton/RadioButton.svelte +616 -0
  71. package/components/RadioButton/RadioButton.svelte.d.ts +41 -0
  72. package/components/Sidebar/Sidebar.scss +87 -0
  73. package/components/Sidebar/Sidebar.stories.d.ts +28 -0
  74. package/components/Sidebar/Sidebar.stories.js +27 -0
  75. package/components/Sidebar/Sidebar.svelte +144 -0
  76. package/components/Sidebar/Sidebar.svelte.d.ts +31 -0
  77. package/components/Switches/Switch.scss +12 -0
  78. package/components/Switches/Switch.stories.d.ts +87 -0
  79. package/components/Switches/Switch.stories.js +50 -0
  80. package/components/Switches/Switch.svelte +595 -0
  81. package/components/Switches/Switch.svelte.d.ts +29 -0
  82. package/components/Tab/Tab.scss +30 -0
  83. package/components/Tab/Tab.stories.d.ts +23 -0
  84. package/components/Tab/Tab.stories.js +19 -0
  85. package/components/Tab/Tab.svelte +615 -0
  86. package/components/Tab/Tab.svelte.d.ts +19 -0
  87. package/components/Table/Table.scss +38 -0
  88. package/components/Table/Table.stories.d.ts +28 -0
  89. package/components/Table/Table.stories.js +21 -0
  90. package/components/Table/Table.svelte +137 -0
  91. package/components/Table/Table.svelte.d.ts +35 -0
  92. package/components/Tooltip/Tooltip.scss +29 -0
  93. package/components/Tooltip/Tooltip.stories.d.ts +40 -0
  94. package/components/Tooltip/Tooltip.stories.js +24 -0
  95. package/components/Tooltip/Tooltip.svelte +622 -0
  96. package/components/Tooltip/Tooltip.svelte.d.ts +21 -0
  97. package/components/common.scss +789 -0
  98. package/components/textField/TextField.scss +34 -0
  99. package/components/textField/TextField.stories.d.ts +85 -0
  100. package/components/textField/TextField.stories.js +32 -0
  101. package/components/textField/TextField.svelte +607 -0
  102. package/components/textField/TextField.svelte.d.ts +33 -0
  103. package/components/variable.scss +134 -0
  104. package/index.d.ts +17 -1
  105. package/index.js +17 -1
  106. package/package.json +60 -1
@@ -0,0 +1,706 @@
1
+ @import './../variable.scss';
2
+
3
+ .ebtn {
4
+ // Default styles for button
5
+ background-color: $white;
6
+ color: black;
7
+ border: none;
8
+ cursor: pointer;
9
+ border-radius: 6px;
10
+ padding: 0px 24px;
11
+ height: $medium-height;
12
+ box-shadow: $lowShadow;
13
+ border: none;
14
+ outline: 1px solid $white;
15
+ font-family: Roboto;
16
+ }
17
+
18
+ //small button
19
+ .ebtn-small {
20
+ height: $small-height;
21
+ font-size: 12px;
22
+ display: flex;
23
+ justify-content: center;
24
+ align-items: center;
25
+ font-family: Roboto;
26
+
27
+ i {
28
+ font-size: 12px;
29
+ }
30
+ }
31
+
32
+ //medium button
33
+ .ebtn-medium {
34
+ padding: 0px 24px;
35
+ height: $medium-height;
36
+ display: flex;
37
+ justify-content: center;
38
+ align-items: center;
39
+ font-size: 16px;
40
+ font-family: Roboto;
41
+
42
+ i {
43
+ font-size: 16px;
44
+ }
45
+ }
46
+
47
+ //large button
48
+ .ebtn-large {
49
+ height: $large-height;
50
+ display: flex;
51
+ justify-content: center;
52
+ align-items: center;
53
+ font-size: 16px;
54
+ font-family: Roboto;
55
+
56
+ i {
57
+ font-size: 16px;
58
+ }
59
+ }
60
+
61
+ // icon button
62
+ .eicon-btn {
63
+ width: 52px;
64
+ height: 52px;
65
+ border-radius: 50%;
66
+ font-family: Roboto;
67
+ }
68
+
69
+ .eicon-left {
70
+ display: flex;
71
+ justify-content: center;
72
+ align-items: center;
73
+ flex-direction: row-reverse;
74
+ gap: 7px;
75
+ size: 2px;
76
+ font-family: Roboto;
77
+ }
78
+
79
+ .eicon-right {
80
+ display: flex;
81
+ justify-content: center;
82
+ align-items: center;
83
+ gap: 7px
84
+ }
85
+
86
+
87
+ // additional css for BUtton
88
+
89
+
90
+
91
+ .ebg-none {
92
+ background-color: $white !important;
93
+ }
94
+
95
+ .ebg-white {
96
+ background-color: $white;
97
+ }
98
+
99
+ .ebg-secondary,
100
+ .eactive-secondary:active,
101
+ .ehover-secondary:hover {
102
+ background-color: $secondary !important;
103
+ }
104
+
105
+ .ebg-secondaryDark,
106
+ .eactive-secondaryDark:active,
107
+ .ehover-secondaryDark:hover {
108
+ background-color: $secondary-dark;
109
+ }
110
+
111
+ .ebg-secondaryLight,
112
+ .eactive-secondaryLight:active,
113
+ .ehover-secondaryLight:hover {
114
+ background-color: $secondary-light;
115
+ }
116
+
117
+ .ebg-primary {
118
+ background-color: $primary;
119
+ }
120
+
121
+ .ebg-primaryDark {
122
+ background-color: $primary-dark;
123
+ }
124
+
125
+ .ebg-primaryLight {
126
+ background-color: $primary-light;
127
+ }
128
+
129
+ .ebg-danger {
130
+ background-color: $danger ;
131
+ }
132
+
133
+ .ebg-dangerDark {
134
+ background-color: $danger-dark;
135
+ }
136
+
137
+ .ebg-dangerLight {
138
+ background-color: $danger-light;
139
+ }
140
+
141
+ .ebg-warning {
142
+ background-color: $warning;
143
+ }
144
+
145
+ .ebg-warningDark {
146
+ background-color: $warning-dark;
147
+ color: $white !important;
148
+ }
149
+
150
+ .ebg-warningLight {
151
+ background-color: $warning-light;
152
+ }
153
+
154
+
155
+ .ebg-info {
156
+ background-color: $info;
157
+ }
158
+
159
+ .ebg-infoDark {
160
+ background-color: $info-dark;
161
+ }
162
+
163
+ .ebg-infoLight {
164
+ background-color: $info-light;
165
+ }
166
+
167
+
168
+ .ebg-success {
169
+ background-color: $success;
170
+ }
171
+
172
+ .ebg-successDark {
173
+ background-color: $success-dark;
174
+ }
175
+
176
+ .ebg-successLight {
177
+ background-color: $success-light;
178
+ }
179
+
180
+ .ebg-gray100 {
181
+ background-color: $gray-100;
182
+ }
183
+
184
+ .ebg-gray200 {
185
+ background-color: $gray-200;
186
+ }
187
+
188
+ .ebg-gray300 {
189
+ background-color: $gray-300;
190
+ }
191
+
192
+ .ebg-gray400 {
193
+ background-color: $gray-400;
194
+ }
195
+
196
+ .ebg-gray500 {
197
+ background-color: $gray-500;
198
+ }
199
+
200
+ .ebg-gray600 {
201
+ background-color: $gray-600;
202
+ }
203
+
204
+ .ebg-gray700 {
205
+ background-color: $gray-700;
206
+ }
207
+
208
+ .ebg-gray800 {
209
+ background-color: $gray-800;
210
+ }
211
+
212
+ .ebg-gray900 {
213
+ background-color: $gray-900;
214
+ }
215
+
216
+ // green background
217
+ .ebg-green100 {
218
+ background-color: $green-100;
219
+ }
220
+
221
+ .ebg-green200 {
222
+ background-color: $green-200;
223
+ }
224
+
225
+ .ebg-green300 {
226
+ background-color: $green-300;
227
+ }
228
+
229
+ .ebg-green400 {
230
+ background-color: $green-400;
231
+ }
232
+
233
+ .ebg-green500 {
234
+ background-color: $green-500;
235
+ }
236
+
237
+ .ebg-green600 {
238
+ background-color: $green-600;
239
+ }
240
+
241
+ .ebg-green700 {
242
+ background-color: $green-700;
243
+ }
244
+
245
+ .ebg-green800 {
246
+ background-color: $green-800;
247
+ }
248
+
249
+ .ebg-green900 {
250
+ background-color: $green-900;
251
+ }
252
+
253
+ // red background
254
+ .ebg-red100 {
255
+ background-color: $red-100;
256
+ }
257
+
258
+ .ebg-red200 {
259
+ background-color: $red-200;
260
+ }
261
+
262
+ .ebg-red300 {
263
+ background-color: $red-300;
264
+ }
265
+
266
+ .ebg-red400 {
267
+ background-color: $red-400;
268
+ }
269
+
270
+ .ebg-red500 {
271
+ background-color: $red-500;
272
+ }
273
+
274
+ .ebg-red600 {
275
+ background-color: $red-600;
276
+ }
277
+
278
+ .ebg-red700 {
279
+ background-color: $red-700;
280
+ }
281
+
282
+ .ebg-red800 {
283
+ background-color: $red-800;
284
+ }
285
+
286
+ .ebg-red900 {
287
+ background-color: $red-900;
288
+ }
289
+
290
+
291
+ // yellow background
292
+ .ebg-yellow100 {
293
+ background-color: $yellow-100;
294
+ }
295
+
296
+ .ebg-yellow200 {
297
+ background-color: $yellow-200;
298
+ }
299
+
300
+ .ebg-yellow300 {
301
+ background-color: $yellow-300;
302
+ }
303
+
304
+ .ebg-yellow400 {
305
+ background-color: $yellow-400;
306
+ }
307
+
308
+ .ebg-yellow500 {
309
+ background-color: $yellow-500;
310
+ }
311
+
312
+ .ebg-yellow600 {
313
+ background-color: $yellow-600;
314
+ }
315
+
316
+ .ebg-yellow700 {
317
+ background-color: $yellow-700;
318
+ }
319
+
320
+ .ebg-yellow800 {
321
+ background-color: $yellow-800;
322
+ }
323
+
324
+ .ebg-yellow900 {
325
+ background-color: $yellow-900;
326
+ }
327
+
328
+
329
+ // cyan background
330
+ .ebg-cyan100 {
331
+ background-color: $cyan-100;
332
+ }
333
+
334
+ .ebg-cyan200 {
335
+ background-color: $cyan-200;
336
+ }
337
+
338
+ .ebg-cyan300 {
339
+ background-color: $cyan-300;
340
+ }
341
+
342
+ .ebg-cyan400 {
343
+ background-color: $cyan-400;
344
+ }
345
+
346
+ .ebg-cyan500 {
347
+ background-color: $cyan-500;
348
+ }
349
+
350
+ .ebg-cyan600 {
351
+ background-color: $cyan-600;
352
+ }
353
+
354
+ .ebg-cyan700 {
355
+ background-color: $cyan-700;
356
+ }
357
+
358
+ .ebg-cyan800 {
359
+ background-color: $cyan-800;
360
+ }
361
+
362
+ .ebg-cyan900 {
363
+ background-color: $cyan-900;
364
+ }
365
+
366
+ // Text color classess
367
+
368
+ .etext-white {
369
+ color: $white;
370
+ }
371
+
372
+ .etext-dark {
373
+ color: $black;
374
+ }
375
+
376
+ .etext-secondary {
377
+ color: $secondary;
378
+ }
379
+
380
+ .etext-secondaryDark {
381
+ color: $secondary-dark;
382
+ }
383
+
384
+ .etext-secondaryLight {
385
+ color: $secondary-light;
386
+ }
387
+
388
+ .etext-primary {
389
+ color: $primary;
390
+ }
391
+
392
+ .etext-primaryDark {
393
+ color: $primary-dark;
394
+ }
395
+
396
+ .etext-primaryLight {
397
+ color: $primary-light;
398
+ }
399
+
400
+ .etext-danger {
401
+ color: $danger;
402
+ }
403
+
404
+ .etext-dangerDark {
405
+ color: $danger-dark;
406
+ }
407
+
408
+ .etext-dangerLight {
409
+ color: $danger-light;
410
+ }
411
+
412
+ .etext-info {
413
+ color: $info;
414
+ }
415
+
416
+ .etext-infoDark {
417
+ color: $info-dark;
418
+ }
419
+
420
+ .etext-infoLight {
421
+ color: $info-light;
422
+ }
423
+
424
+ .etext-success {
425
+ color: $success;
426
+ }
427
+
428
+ .etext-successDark {
429
+ color: $success-dark;
430
+ }
431
+
432
+ .etext-successLight {
433
+ color: $success-light;
434
+ }
435
+
436
+ .etext-warning {
437
+ color: $warning;
438
+ }
439
+
440
+ .etext-warningDark {
441
+ color: $warning-dark;
442
+ }
443
+
444
+ .etext-warningLight {
445
+ color: $warning-light;
446
+ }
447
+
448
+
449
+ .etext-gray100 {
450
+ color: $gray-100;
451
+ }
452
+
453
+ .etext-gray200 {
454
+ color: $gray-200;
455
+ }
456
+
457
+ .etext-gray300 {
458
+ color: $gray-300;
459
+ }
460
+
461
+ .etext-gray400 {
462
+ color: $gray-400;
463
+ }
464
+
465
+ .etext-gray500 {
466
+ color: $gray-500;
467
+ }
468
+
469
+ .etext-gray600 {
470
+ color: $gray-600;
471
+ }
472
+
473
+ .etext-gray700 {
474
+ color: $gray-700;
475
+ }
476
+
477
+ .etext-gray800 {
478
+ color: $gray-800;
479
+ }
480
+
481
+ .etext-gray900 {
482
+ color: $gray-900;
483
+ }
484
+
485
+ // green text
486
+ .etext-green100 {
487
+ color: $green-100;
488
+ }
489
+
490
+ .etext-green200 {
491
+ color: $green-200;
492
+ }
493
+
494
+ .etext-green300 {
495
+ color: $green-300;
496
+ }
497
+
498
+ .etext-green400 {
499
+ color: $green-400;
500
+ }
501
+
502
+ .etext-green500 {
503
+ color: $green-500;
504
+ }
505
+
506
+ .etext-green600 {
507
+ color: $green-600;
508
+ }
509
+
510
+ .etext-green700 {
511
+ color: $green-700;
512
+ }
513
+
514
+ .etext-green800 {
515
+ color: $green-800;
516
+ }
517
+
518
+ .etext-green900 {
519
+ color: $green-900;
520
+ }
521
+
522
+ // red text
523
+ .etext-red100 {
524
+ color: $red-100;
525
+ }
526
+
527
+ .etext-red200 {
528
+ color: $red-200;
529
+ }
530
+
531
+ .etext-red300 {
532
+ color: $red-300;
533
+ }
534
+
535
+ .etext-red400 {
536
+ color: $red-400;
537
+ }
538
+
539
+ .etext-red500 {
540
+ color: $red-500;
541
+ }
542
+
543
+ .etext-red600 {
544
+ color: $red-600;
545
+ }
546
+
547
+ .etext-red700 {
548
+ color: $red-700;
549
+ }
550
+
551
+ .etext-red800 {
552
+ color: $red-800;
553
+ }
554
+
555
+ .etext-red900 {
556
+ color: $red-900;
557
+ }
558
+
559
+ // yellow text
560
+ .etext-yellow100 {
561
+ color: $yellow-100;
562
+ }
563
+
564
+ .etext-yellow200 {
565
+ color: $yellow-200;
566
+ }
567
+
568
+ .etext-yellow300 {
569
+ color: $yellow-300;
570
+ }
571
+
572
+ .etext-yellow400 {
573
+ color: $yellow-400;
574
+ }
575
+
576
+ .etext-yellow500 {
577
+ color: $yellow-500;
578
+ }
579
+
580
+ .etext-yellow600 {
581
+ color: $yellow-600;
582
+ }
583
+
584
+ .etext-yellow700 {
585
+ color: $yellow-700;
586
+ }
587
+
588
+ .etext-yellow800 {
589
+ color: $yellow-800;
590
+ }
591
+
592
+ .etext-yellow900 {
593
+ color: $yellow-900;
594
+ }
595
+
596
+ // cyan text
597
+ .etext-cyan100 {
598
+ color: $cyan-100;
599
+ }
600
+
601
+ .etext-cyan200 {
602
+ color: $cyan-200;
603
+ }
604
+
605
+ .etext-cyan300 {
606
+ color: $cyan-300;
607
+ }
608
+
609
+ .etext-cyan400 {
610
+ color: $cyan-400;
611
+ }
612
+
613
+ .etext-cyan500 {
614
+ color: $cyan-500;
615
+ }
616
+
617
+ .etext-cyan600 {
618
+ color: $cyan-600;
619
+ }
620
+
621
+ .etext-cyan700 {
622
+ color: $cyan-700;
623
+ }
624
+
625
+ .etext-cyan800 {
626
+ color: $cyan-800;
627
+ }
628
+
629
+ .etext-cyan900 {
630
+ color: $cyan-900;
631
+ }
632
+
633
+
634
+ //outline classess
635
+
636
+ .eoutline-secondary {
637
+ outline: 1px solid $secondary;
638
+ }
639
+
640
+ .eoutline-secondaryDark {
641
+ outline: 1px solid $secondary-dark;
642
+ }
643
+
644
+ .eoutline-secondaryLight {
645
+ outline: 1px solid $secondary-light;
646
+ }
647
+
648
+ .eoutline-primary {
649
+ outline: 1px solid $primary;
650
+ }
651
+
652
+ .eoutline-primaryDark {
653
+ outline: 1px solid $primary-dark;
654
+ }
655
+
656
+ .eoutline-primaryLight {
657
+ outline: 1px solid $primary-light;
658
+ }
659
+
660
+ .eoutline-danger {
661
+ outline: 1px solid $danger;
662
+ }
663
+
664
+ .eoutline-dangerDark {
665
+ outline: 1px solid $danger-dark;
666
+ }
667
+
668
+ .eoutline-dangerLight {
669
+ outline: 1px solid $danger-light;
670
+ }
671
+
672
+ .eoutline-success {
673
+ outline: 1px solid $success;
674
+ }
675
+
676
+ .eoutline-successDark {
677
+ outline: 1px solid $success-dark;
678
+ }
679
+
680
+ .eoutline-successLight {
681
+ outline: 1px solid $success-light;
682
+ }
683
+
684
+ .eoutline-info {
685
+ outline: 1px solid $info;
686
+ }
687
+
688
+ .eoutline-infoDark {
689
+ outline: 1px solid $info-dark;
690
+ }
691
+
692
+ .eoutline-infoLight {
693
+ outline: 1px solid $info-light;
694
+ }
695
+
696
+ .eoutline-warning {
697
+ outline: 1px solid $warning;
698
+ }
699
+
700
+ .eoutline-warningDark {
701
+ outline: 1px solid $warning-dark;
702
+ }
703
+
704
+ .eoutline-warningLight {
705
+ outline: 1px solid $warning-light;
706
+ }