@enki-tek/fms-web-components 0.0.5 → 0.0.6

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,56 +1,56 @@
1
1
  import Badge from './Badge.svelte'
2
2
 
3
- export default{
4
- title:'FMS/Badge',
5
- component:Badge,
3
+ export default {
4
+ title: 'FMS/Badge',
5
+ component: Badge,
6
6
  tags: ['autodocs'],
7
7
  };
8
8
 
9
- export const yellow={
10
- args:{
11
- config:'yellow',
12
- label:'Badges',
9
+ export const yellow = {
10
+ args: {
11
+ config: 'yellow',
12
+ label: 'Badges',
13
13
  }
14
14
  };
15
- export const primaryLight={
16
- args:{
17
- config:'primaryLight',
18
- label:'Badges',
15
+ export const primaryLight = {
16
+ args: {
17
+ config: 'primaryLight',
18
+ label: 'Badges',
19
19
  }
20
20
  };
21
- export const secondaryLight={
22
- args:{
23
- config:'secondaryLight',
24
- label:'Badges',
21
+ export const secondaryLight = {
22
+ args: {
23
+ config: 'secondaryLight',
24
+ label: 'Badges',
25
25
  }
26
26
  };
27
- export const green={
28
- args:{
29
- config:'green',
30
- label:'Badges',
27
+ export const green = {
28
+ args: {
29
+ config: 'green',
30
+ label: 'Badges',
31
31
  }
32
32
  };
33
- export const grayLight={
34
- args:{
35
- config:'grayLight',
36
- label:'Badges',
33
+ export const grayLight = {
34
+ args: {
35
+ config: 'grayLight',
36
+ label: 'Badges',
37
37
  }
38
38
  };
39
- export const gray={
40
- args:{
41
- config:'gray',
42
- label:'Badges',
39
+ export const gray = {
40
+ args: {
41
+ config: 'gray',
42
+ label: 'Badges',
43
43
  }
44
44
  };
45
- export const red={
46
- args:{
47
- config:'red',
48
- label:'Badges',
45
+ export const red = {
46
+ args: {
47
+ config: 'red',
48
+ label: 'Badges',
49
49
  }
50
50
  };
51
- export const cyan={
52
- args:{
53
- config:'cyan',
54
- label:'Badges',
51
+ export const cyan = {
52
+ args: {
53
+ config: 'cyan',
54
+ label: 'Badges',
55
55
  }
56
56
  };
@@ -8,10 +8,9 @@ if (badgeConfig.hasOwnProperty(config)) {
8
8
  }
9
9
  </script>
10
10
 
11
- <Badge pill color='none' class={badgeStyles.join(' ')}>{label}</Badge>
11
+ <Badge pill color="none" class={badgeStyles.join(' ')}>{label}</Badge>
12
12
 
13
-
14
- <style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
13
+ <style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
15
14
  @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");
16
15
  @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");
17
16
  @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
@@ -584,4 +583,4 @@ if (badgeConfig.hasOwnProperty(config)) {
584
583
  font-style: normal;
585
584
  font-weight: 400;
586
585
  line-height: normal;
587
- }</style>
586
+ }</style>
@@ -13,7 +13,7 @@ export const Default={
13
13
  args:{
14
14
  newBreadcrumbs:[
15
15
  {title:'home',link:'/'},
16
- {title:'contact',link:'/contact'},
16
+ {title:'contact',link:'https://stackoverflow.com/questions/73033899/pluginviteimport-analysis-failed-to-parse-source-for-import-analysis-because'},
17
17
  {title:'payment',link:'/contact/payment'},
18
18
  ]
19
19
  }
@@ -0,0 +1,95 @@
1
+ @import './../variable.scss';
2
+
3
+ :global(.custom-card-style) {
4
+ width: auto;
5
+ padding: 7px 10px;
6
+ display: flex;
7
+ flex-direction: column;
8
+ align-items: flex-start;
9
+ gap: 10px;
10
+ flex: 1 0 0;
11
+ border-radius: 10px;
12
+ border: 1px dashed $white-cardicon;
13
+ background: $white;
14
+ }
15
+
16
+ .cardicon-main {
17
+ width: 100%;
18
+ display: flex;
19
+ padding: 10px;
20
+ justify-content: space-between;
21
+ align-items: flex-start;
22
+ align-self: stretch;
23
+ }
24
+
25
+ .cardicon-content {
26
+ width: 100%;
27
+ display: flex;
28
+ color: $gray-cardicon;
29
+ text-align: right;
30
+ font-size: 30px;
31
+ @extend %common-fontstyle;
32
+ line-height: 40px;
33
+ padding: 10px;
34
+ }
35
+
36
+ :global(.cardicon-main .card-title) {
37
+ color: $black;
38
+ font-size: 18px;
39
+ @extend %common-fontstyle;
40
+ text-transform: capitalize;
41
+ }
42
+
43
+ :global(.cardicon-main i) {
44
+ width: 20px;
45
+ height: 20px;
46
+ }
47
+
48
+ .custom-body-slot {
49
+ color: $black;
50
+ font-size: 13px;
51
+ @extend %common-fontstyle;
52
+ }
53
+
54
+ %common-fontstyle {
55
+ font-family: $bodyFonts;
56
+ font-style: normal;
57
+ font-weight: 400;
58
+ line-height: 20px;
59
+ }
60
+
61
+ %common {
62
+ flex-direction: column-reverse !important;
63
+ }
64
+
65
+ :global(.bottom-left) {
66
+ @extend %common;
67
+
68
+ .cardicon-main {
69
+ flex-direction: row-reverse;
70
+ }
71
+ }
72
+
73
+ :global(.bottom-right) {
74
+ @extend %common;
75
+ }
76
+
77
+ :global(.top-left) {
78
+ flex-direction: column;
79
+
80
+ .cardicon-main {
81
+ flex-direction: row-reverse;
82
+ }
83
+ }
84
+
85
+ :global(.top-right) {
86
+ flex-direction: column;
87
+ }
88
+
89
+ .right {
90
+ justify-content: end !important;
91
+ }
92
+
93
+ .top {
94
+ justify-content: start !important;
95
+ }
@@ -0,0 +1,129 @@
1
+ declare namespace _default {
2
+ export const title: string;
3
+ export { CardIcon as component };
4
+ export const tags: string[];
5
+ export namespace argTypes {
6
+ export namespace name {
7
+ namespace control {
8
+ const type: string;
9
+ }
10
+ const options: string[];
11
+ }
12
+ export namespace location {
13
+ export namespace control_1 {
14
+ const type_1: string;
15
+ export { type_1 as type };
16
+ }
17
+ export { control_1 as control };
18
+ const options_1: string[];
19
+ export { options_1 as options };
20
+ }
21
+ export namespace slotPosition {
22
+ export namespace control_2 {
23
+ const type_2: string;
24
+ export { type_2 as type };
25
+ }
26
+ export { control_2 as control };
27
+ const options_2: string[];
28
+ export { options_2 as options };
29
+ }
30
+ export namespace title_1 {
31
+ export namespace control_3 {
32
+ const type_3: string;
33
+ export { type_3 as type };
34
+ }
35
+ export { control_3 as control };
36
+ }
37
+ export { title_1 as title };
38
+ export namespace cardsubtitle {
39
+ export namespace control_4 {
40
+ const type_4: string;
41
+ export { type_4 as type };
42
+ }
43
+ export { control_4 as control };
44
+ }
45
+ export namespace cardbody {
46
+ export namespace control_5 {
47
+ const type_5: string;
48
+ export { type_5 as type };
49
+ }
50
+ export { control_5 as control };
51
+ }
52
+ }
53
+ }
54
+ export default _default;
55
+ export namespace Default {
56
+ namespace args {
57
+ const name_1: string;
58
+ export { name_1 as name };
59
+ const location_1: string;
60
+ export { location_1 as location };
61
+ const title_2: string;
62
+ export { title_2 as title };
63
+ const cardsubtitle_1: string;
64
+ export { cardsubtitle_1 as cardsubtitle };
65
+ const cardbody_1: string;
66
+ export { cardbody_1 as cardbody };
67
+ }
68
+ }
69
+ export namespace topLeft {
70
+ export namespace args_1 {
71
+ const name_2: string;
72
+ export { name_2 as name };
73
+ const location_2: string;
74
+ export { location_2 as location };
75
+ const title_3: string;
76
+ export { title_3 as title };
77
+ const cardsubtitle_2: string;
78
+ export { cardsubtitle_2 as cardsubtitle };
79
+ const cardbody_2: string;
80
+ export { cardbody_2 as cardbody };
81
+ }
82
+ export { args_1 as args };
83
+ }
84
+ export namespace topRight {
85
+ export namespace args_2 {
86
+ const name_3: string;
87
+ export { name_3 as name };
88
+ const location_3: string;
89
+ export { location_3 as location };
90
+ const title_4: string;
91
+ export { title_4 as title };
92
+ const cardsubtitle_3: string;
93
+ export { cardsubtitle_3 as cardsubtitle };
94
+ const cardbody_3: string;
95
+ export { cardbody_3 as cardbody };
96
+ }
97
+ export { args_2 as args };
98
+ }
99
+ export namespace bottomLeft {
100
+ export namespace args_3 {
101
+ const name_4: string;
102
+ export { name_4 as name };
103
+ const location_4: string;
104
+ export { location_4 as location };
105
+ const title_5: string;
106
+ export { title_5 as title };
107
+ const cardsubtitle_4: string;
108
+ export { cardsubtitle_4 as cardsubtitle };
109
+ const cardbody_4: string;
110
+ export { cardbody_4 as cardbody };
111
+ }
112
+ export { args_3 as args };
113
+ }
114
+ export namespace bottomRight {
115
+ export namespace args_4 {
116
+ const name_5: string;
117
+ export { name_5 as name };
118
+ const location_5: string;
119
+ export { location_5 as location };
120
+ const title_6: string;
121
+ export { title_6 as title };
122
+ const cardsubtitle_5: string;
123
+ export { cardsubtitle_5 as cardsubtitle };
124
+ const cardbody_5: string;
125
+ export { cardbody_5 as cardbody };
126
+ }
127
+ export { args_4 as args };
128
+ }
129
+ import CardIcon from "./CardIcon.svelte";
@@ -0,0 +1,77 @@
1
+ import CardIcon from './CardIcon.svelte';
2
+
3
+ export default {
4
+ title: 'FMS/CardIcon',
5
+ component: CardIcon,
6
+ tags: ['autodocs'],
7
+ argTypes: {
8
+ name: {
9
+ control: { type: 'select' },
10
+ options: ['people', 'exclamation-triangle', 'trophy']
11
+ },
12
+ location: {
13
+ control: { type: 'select' },
14
+ options: ['top-left', 'top-right', 'bottom-left', 'bottom-right']
15
+ },
16
+ slotPosition: {
17
+ control: { type: 'select' },
18
+ options: ['left', 'right']
19
+ },
20
+ title: {
21
+ control: { type: 'text' }
22
+ },
23
+ cardsubtitle: {
24
+ control: { type: 'text' }
25
+ },
26
+ cardbody: {
27
+ control: { type: 'text' }
28
+ }
29
+ }
30
+ };
31
+
32
+ export const Default = {
33
+ args: {
34
+ name: 'people',
35
+ location: 'bottom-right',
36
+ title: 'component title',
37
+ cardsubtitle: '45',
38
+ cardbody: 'table data'
39
+ }
40
+ };
41
+
42
+ export const topLeft = {
43
+ args: {
44
+ name: 'people',
45
+ location: 'top-left',
46
+ title: 'component title',
47
+ cardsubtitle: '45',
48
+ cardbody: 'table data'
49
+ }
50
+ };
51
+ export const topRight = {
52
+ args: {
53
+ name: 'people',
54
+ location: 'top-right',
55
+ title: 'component title',
56
+ cardsubtitle: '45',
57
+ cardbody: 'table data'
58
+ }
59
+ };
60
+ export const bottomLeft = {
61
+ args: {
62
+ name: 'people',
63
+ location: 'bottom-left',
64
+ title: 'component title',
65
+ cardsubtitle: '45',
66
+ cardbody: 'table data'
67
+ }
68
+ };
69
+ export const bottomRight = {
70
+ args: {
71
+ name: 'people',
72
+ location: 'bottom-right',
73
+ title: 'component title',
74
+ cardsubtitle: '45',
75
+ cardbody: 'table data'
76
+ }
77
+ };
@@ -0,0 +1,684 @@
1
+ <script>import { Card, CardBody, CardTitle, Icon } from "sveltestrap";
2
+ import { locationConfig, slotLocationConfig } from "./CardIconConfig";
3
+ export let title = "Card title";
4
+ export let name = "bell";
5
+ export let location = "bottom-right";
6
+ export let slotPosition = "top";
7
+ export let cardbody = "";
8
+ export let cardsubtitle = "";
9
+ let locationStyle = [`custom-card-style`];
10
+ if (locationConfig.includes(location)) {
11
+ locationStyle.push(location);
12
+ }
13
+ let slotLocation = [`cardicon-content`];
14
+ if (slotLocationConfig.includes(slotPosition)) {
15
+ slotLocation.push(slotPosition);
16
+ }
17
+ </script>
18
+
19
+ <Card class={locationStyle.join(' ')}>
20
+ <div class="cardicon-main">
21
+ <CardTitle>{title}</CardTitle>
22
+ <Icon {name} />
23
+ </div>
24
+
25
+ <div class={slotLocation.join(' ')}>
26
+ <slot name="cardsubtitle">
27
+ {#if cardsubtitle}
28
+ {cardsubtitle}
29
+ {:else}
30
+ <slot />
31
+ {/if}
32
+ </slot>
33
+ </div>
34
+
35
+ <CardBody>
36
+ <div class="custom-body-slot">
37
+ <slot name="cardbody">
38
+ {#if cardbody}
39
+ {cardbody}
40
+ {:else}
41
+ <slot />
42
+ {/if}
43
+ </slot>
44
+ </div>
45
+ </CardBody>
46
+ </Card>
47
+
48
+ <style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
49
+ @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");
50
+ @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");
51
+ @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
52
+ @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");
53
+ @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");
54
+ :global(.custom-card-style) {
55
+ width: auto;
56
+ padding: 7px 10px;
57
+ display: flex;
58
+ flex-direction: column;
59
+ align-items: flex-start;
60
+ gap: 10px;
61
+ flex: 1 0 0;
62
+ border-radius: 10px;
63
+ border: 1px dashed #B8B8B8;
64
+ background: #ffffff;
65
+ }
66
+ .cardicon-main {
67
+ width: 100%;
68
+ display: flex;
69
+ padding: 10px;
70
+ justify-content: space-between;
71
+ align-items: flex-start;
72
+ align-self: stretch;
73
+ }
74
+ .cardicon-content {
75
+ width: 100%;
76
+ display: flex;
77
+ color: #444;
78
+ text-align: right;
79
+ font-size: 30px;
80
+ line-height: 40px;
81
+ padding: 10px;
82
+ }
83
+ :global(.cardicon-main .card-title) {
84
+ color: #000000;
85
+ font-size: 18px;
86
+ text-transform: capitalize;
87
+ }
88
+ :global(.cardicon-main i) {
89
+ width: 20px;
90
+ height: 20px;
91
+ }
92
+ .custom-body-slot {
93
+ color: #000000;
94
+ font-size: 13px;
95
+ }
96
+ .cardicon-content, :global(.cardicon-main .card-title), .custom-body-slot {
97
+ font-family: Roboto;
98
+ font-style: normal;
99
+ font-weight: 400;
100
+ line-height: 20px;
101
+ }
102
+ :global(.bottom-right), :global(.bottom-left) {
103
+ flex-direction: column-reverse !important;
104
+ }
105
+ :global(.bottom-left) .cardicon-main {
106
+ flex-direction: row-reverse;
107
+ }
108
+ :global(.top-left) {
109
+ flex-direction: column;
110
+ }
111
+ :global(.top-left) .cardicon-main {
112
+ flex-direction: row-reverse;
113
+ }
114
+ :global(.top-right) {
115
+ flex-direction: column;
116
+ }
117
+ .right {
118
+ justify-content: end !important;
119
+ }
120
+ .top {
121
+ justify-content: start !important;
122
+ }
123
+ :global(.ebg-none) {
124
+ background-color: #ffffff !important;
125
+ }
126
+ :global(.ebg-white) {
127
+ background-color: #ffffff;
128
+ }
129
+ :global(.ebg-secondary, .eactive-secondary:active, .ehover-secondary:hover) {
130
+ background-color: #3AC82E !important;
131
+ }
132
+ :global(.ebg-secondaryDark, .eactive-secondaryDark:active, .ehover-secondaryDark:hover) {
133
+ background-color: #00A855;
134
+ }
135
+ :global(.ebg-secondaryLight, .eactive-secondaryLight:active, .ehover-secondaryLight:hover) {
136
+ background-color: #CBFFC7;
137
+ }
138
+ :global(.ebg-primary) {
139
+ background-color: #00AEE5;
140
+ }
141
+ :global(.ebg-primaryDark) {
142
+ background-color: #007FD8;
143
+ }
144
+ :global(.ebg-primaryLight) {
145
+ background-color: #CEF3FF;
146
+ }
147
+ :global(.ebg-danger) {
148
+ background-color: #FE4747;
149
+ }
150
+ :global(.ebg-dangerDark) {
151
+ background-color: #B02A37;
152
+ }
153
+ :global(.ebg-dangerLight) {
154
+ background-color: #FE4747;
155
+ }
156
+ :global(.ebg-warning) {
157
+ background-color: #FFBA3A;
158
+ }
159
+ :global(.ebg-warningDark) {
160
+ background-color: #997404;
161
+ color: #ffffff !important;
162
+ }
163
+ :global(.ebg-warningLight) {
164
+ background-color: #FFF3CD;
165
+ }
166
+ :global(.ebg-info) {
167
+ background-color: #0DCAF0;
168
+ }
169
+ :global(.ebg-infoDark) {
170
+ background-color: #087990;
171
+ }
172
+ :global(.ebg-infoLight) {
173
+ background-color: #9EEAF9;
174
+ }
175
+ :global(.ebg-success) {
176
+ background-color: #00A96B;
177
+ }
178
+ :global(.ebg-successDark) {
179
+ background-color: #146C43;
180
+ }
181
+ :global(.ebg-successLight) {
182
+ background-color: #D1E7DD;
183
+ }
184
+ :global(.ebg-gray100) {
185
+ background-color: #F8F9FA;
186
+ }
187
+ :global(.ebg-gray200) {
188
+ background-color: #E9ECEF;
189
+ }
190
+ :global(.ebg-gray300) {
191
+ background-color: #DEE2E6;
192
+ }
193
+ :global(.ebg-gray400) {
194
+ background-color: #CED4DA;
195
+ }
196
+ :global(.ebg-gray500) {
197
+ background-color: #adb5bd;
198
+ }
199
+ :global(.ebg-gray600) {
200
+ background-color: #6C757D;
201
+ }
202
+ :global(.ebg-gray700) {
203
+ background-color: #495057;
204
+ }
205
+ :global(.ebg-gray800) {
206
+ background-color: #343A40;
207
+ }
208
+ :global(.ebg-gray900) {
209
+ background-color: #212529;
210
+ }
211
+ :global(.ebg-green100) {
212
+ background-color: #D1E7DD;
213
+ }
214
+ :global(.ebg-green200) {
215
+ background-color: #A3CFBB;
216
+ }
217
+ :global(.ebg-green300) {
218
+ background-color: #75B798;
219
+ }
220
+ :global(.ebg-green400) {
221
+ background-color: #479F76;
222
+ }
223
+ :global(.ebg-green500) {
224
+ background-color: #198754;
225
+ }
226
+ :global(.ebg-green600) {
227
+ background-color: #146C43;
228
+ }
229
+ :global(.ebg-green700) {
230
+ background-color: #0F5132;
231
+ }
232
+ :global(.ebg-green800) {
233
+ background-color: #0A3622;
234
+ }
235
+ :global(.ebg-green900) {
236
+ background-color: #051B11;
237
+ }
238
+ :global(.ebg-red100) {
239
+ background-color: #F8D7DA;
240
+ }
241
+ :global(.ebg-red200) {
242
+ background-color: #F1AEB5;
243
+ }
244
+ :global(.ebg-red300) {
245
+ background-color: #EA868F;
246
+ }
247
+ :global(.ebg-red400) {
248
+ background-color: #E35D6A;
249
+ }
250
+ :global(.ebg-red500) {
251
+ background-color: #DC3545;
252
+ }
253
+ :global(.ebg-red600) {
254
+ background-color: #B02A37;
255
+ }
256
+ :global(.ebg-red700) {
257
+ background-color: #842029;
258
+ }
259
+ :global(.ebg-red800) {
260
+ background-color: #58151C;
261
+ }
262
+ :global(.ebg-red900) {
263
+ background-color: #2C0B0E;
264
+ }
265
+ :global(.ebg-yellow100) {
266
+ background-color: #FFF3CD;
267
+ }
268
+ :global(.ebg-yellow200) {
269
+ background-color: #FFE69C;
270
+ }
271
+ :global(.ebg-yellow300) {
272
+ background-color: #FFDA6A;
273
+ }
274
+ :global(.ebg-yellow400) {
275
+ background-color: #FFCD39;
276
+ }
277
+ :global(.ebg-yellow500) {
278
+ background-color: #FFC107;
279
+ }
280
+ :global(.ebg-yellow600) {
281
+ background-color: #CC9A06;
282
+ }
283
+ :global(.ebg-yellow700) {
284
+ background-color: #997404;
285
+ }
286
+ :global(.ebg-yellow800) {
287
+ background-color: #664D03;
288
+ }
289
+ :global(.ebg-yellow900) {
290
+ background-color: #332701;
291
+ }
292
+ :global(.ebg-cyan100) {
293
+ background-color: #CFF4FC;
294
+ }
295
+ :global(.ebg-cyan200) {
296
+ background-color: #9EEAF9;
297
+ }
298
+ :global(.ebg-cyan300) {
299
+ background-color: #6EDFF6;
300
+ }
301
+ :global(.ebg-cyan400) {
302
+ background-color: #3DD5F3;
303
+ }
304
+ :global(.ebg-cyan500) {
305
+ background-color: #0DCAF0;
306
+ }
307
+ :global(.ebg-cyan600) {
308
+ background-color: #0AA2C0;
309
+ }
310
+ :global(.ebg-cyan700) {
311
+ background-color: #087990;
312
+ }
313
+ :global(.ebg-cyan800) {
314
+ background-color: #055160;
315
+ }
316
+ :global(.ebg-cyan900) {
317
+ background-color: #032830;
318
+ }
319
+ .etext-white {
320
+ color: #ffffff;
321
+ }
322
+ :global(.etext-dark) {
323
+ color: #000000;
324
+ }
325
+ :global(.etext-secondary) {
326
+ color: #3AC82E;
327
+ }
328
+ :global(.etext-secondaryDark) {
329
+ color: #00A855;
330
+ }
331
+ :global(.etext-secondaryLight) {
332
+ color: #CBFFC7;
333
+ }
334
+ :global(.etext-primary) {
335
+ color: #00AEE5;
336
+ }
337
+ :global(.etext-primaryDark) {
338
+ color: #007FD8;
339
+ }
340
+ :global(.etext-primaryLight) {
341
+ color: #CEF3FF;
342
+ }
343
+ :global(.etext-danger) {
344
+ color: #FE4747;
345
+ }
346
+ :global(.etext-dangerDark) {
347
+ color: #B02A37;
348
+ }
349
+ :global(.etext-dangerLight) {
350
+ color: #FE4747;
351
+ }
352
+ :global(.etext-info) {
353
+ color: #0DCAF0;
354
+ }
355
+ :global(.etext-infoDark) {
356
+ color: #087990;
357
+ }
358
+ :global(.etext-infoLight) {
359
+ color: #9EEAF9;
360
+ }
361
+ :global(.etext-success) {
362
+ color: #00A96B;
363
+ }
364
+ :global(.etext-successDark) {
365
+ color: #146C43;
366
+ }
367
+ :global(.etext-successLight) {
368
+ color: #D1E7DD;
369
+ }
370
+ :global(.etext-warning) {
371
+ color: #FFBA3A;
372
+ }
373
+ :global(.etext-warningDark) {
374
+ color: #997404;
375
+ }
376
+ :global(.etext-warningLight) {
377
+ color: #FFF3CD;
378
+ }
379
+ :global(.etext-gray100) {
380
+ color: #F8F9FA;
381
+ }
382
+ :global(.etext-gray200) {
383
+ color: #E9ECEF;
384
+ }
385
+ :global(.etext-gray300) {
386
+ color: #DEE2E6;
387
+ }
388
+ :global(.etext-gray400) {
389
+ color: #CED4DA;
390
+ }
391
+ :global(.etext-gray500) {
392
+ color: #adb5bd;
393
+ }
394
+ :global(.etext-gray600) {
395
+ color: #6C757D;
396
+ }
397
+ :global(.etext-gray700) {
398
+ color: #495057;
399
+ }
400
+ :global(.etext-gray800) {
401
+ color: #343A40;
402
+ }
403
+ :global(.etext-gray900) {
404
+ color: #212529;
405
+ }
406
+ :global(.etext-green100) {
407
+ color: #D1E7DD;
408
+ }
409
+ :global(.etext-green200) {
410
+ color: #A3CFBB;
411
+ }
412
+ :global(.etext-green300) {
413
+ color: #75B798;
414
+ }
415
+ :global(.etext-green400) {
416
+ color: #479F76;
417
+ }
418
+ :global(.etext-green500) {
419
+ color: #198754;
420
+ }
421
+ :global(.etext-green600) {
422
+ color: #146C43;
423
+ }
424
+ :global(.etext-green700) {
425
+ color: #0F5132;
426
+ }
427
+ :global(.etext-green800) {
428
+ color: #0A3622;
429
+ }
430
+ :global(.etext-green900) {
431
+ color: #051B11;
432
+ }
433
+ :global(.etext-red100) {
434
+ color: #F8D7DA;
435
+ }
436
+ :global(.etext-red200) {
437
+ color: #F1AEB5;
438
+ }
439
+ :global(.etext-red300) {
440
+ color: #EA868F;
441
+ }
442
+ :global(.etext-red400) {
443
+ color: #E35D6A;
444
+ }
445
+ :global(.etext-red500) {
446
+ color: #DC3545;
447
+ }
448
+ :global(.etext-red600) {
449
+ color: #B02A37;
450
+ }
451
+ :global(.etext-red700) {
452
+ color: #842029;
453
+ }
454
+ :global(.etext-red800) {
455
+ color: #58151C;
456
+ }
457
+ :global(.etext-red900) {
458
+ color: #2C0B0E;
459
+ }
460
+ :global(.etext-yellow100) {
461
+ color: #FFF3CD;
462
+ }
463
+ :global(.etext-yellow200) {
464
+ color: #FFE69C;
465
+ }
466
+ :global(.etext-yellow300) {
467
+ color: #FFDA6A;
468
+ }
469
+ :global(.etext-yellow400) {
470
+ color: #FFCD39;
471
+ }
472
+ :global(.etext-yellow500) {
473
+ color: #FFC107;
474
+ }
475
+ :global(.etext-yellow600) {
476
+ color: #CC9A06;
477
+ }
478
+ :global(.etext-yellow700) {
479
+ color: #997404;
480
+ }
481
+ :global(.etext-yellow800) {
482
+ color: #664D03;
483
+ }
484
+ :global(.etext-yellow900) {
485
+ color: #332701;
486
+ }
487
+ :global(.etext-cyan100) {
488
+ color: #CFF4FC;
489
+ }
490
+ :global(.etext-cyan200) {
491
+ color: #9EEAF9;
492
+ }
493
+ :global(.etext-cyan300) {
494
+ color: #6EDFF6;
495
+ }
496
+ :global(.etext-cyan400) {
497
+ color: #3DD5F3;
498
+ }
499
+ :global(.etext-cyan500) {
500
+ color: #0DCAF0;
501
+ }
502
+ :global(.etext-cyan600) {
503
+ color: #0AA2C0;
504
+ }
505
+ :global(.etext-cyan700) {
506
+ color: #087990;
507
+ }
508
+ :global(.etext-cyan800) {
509
+ color: #055160;
510
+ }
511
+ :global(.etext-cyan900) {
512
+ color: #032830;
513
+ }
514
+ :global(.eoutline-secondary) {
515
+ outline: 1px solid #3AC82E;
516
+ }
517
+ :global(.eoutline-secondaryDark) {
518
+ outline: 1px solid #00A855;
519
+ }
520
+ :global(.eoutline-secondaryLight) {
521
+ outline: 1px solid #CBFFC7;
522
+ }
523
+ :global(.eoutline-primary) {
524
+ outline: 1px solid #00AEE5;
525
+ }
526
+ :global(.eoutline-primaryDark) {
527
+ outline: 1px solid #007FD8;
528
+ }
529
+ :global(.eoutline-primaryLight) {
530
+ outline: 1px solid #CEF3FF;
531
+ }
532
+ :global(.eoutline-danger) {
533
+ outline: 1px solid #FE4747;
534
+ }
535
+ :global(.eoutline-dangerDark) {
536
+ outline: 1px solid #B02A37;
537
+ }
538
+ :global(.eoutline-dangerLight) {
539
+ outline: 1px solid #FE4747;
540
+ }
541
+ :global(.eoutline-success) {
542
+ outline: 1px solid #00A96B;
543
+ }
544
+ :global(.eoutline-successDark) {
545
+ outline: 1px solid #146C43;
546
+ }
547
+ :global(.eoutline-successLight) {
548
+ outline: 1px solid #D1E7DD;
549
+ }
550
+ :global(.eoutline-info) {
551
+ outline: 1px solid #0DCAF0;
552
+ }
553
+ :global(.eoutline-infoDark) {
554
+ outline: 1px solid #087990;
555
+ }
556
+ :global(.eoutline-infoLight) {
557
+ outline: 1px solid #9EEAF9;
558
+ }
559
+ :global(.eoutline-warning) {
560
+ outline: 1px solid #FFBA3A;
561
+ }
562
+ :global(.eoutline-warningDark) {
563
+ outline: 1px solid #997404;
564
+ }
565
+ :global(.eoutline-warningLight) {
566
+ outline: 1px solid #FFF3CD;
567
+ }
568
+ :global(.eradius) {
569
+ border-radius: 4px;
570
+ }
571
+ :global(.eradius-low) {
572
+ border-radius: 8px;
573
+ }
574
+ :global(.eradius-medium) {
575
+ border-radius: 16px;
576
+ }
577
+ :global(.eradius-full) {
578
+ border-radius: 50%;
579
+ }
580
+ .eshadow-non {
581
+ box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
582
+ }
583
+ .eshadow-low {
584
+ box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
585
+ }
586
+ .eshadow-medium {
587
+ box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.1);
588
+ }
589
+ .eshadow-high {
590
+ box-shadow: 0px 1px 16px 0px rgba(0, 0, 0, 0.1);
591
+ }
592
+ :global(.efs-small) {
593
+ font-family: Roboto;
594
+ font-size: 12px;
595
+ font-style: normal;
596
+ font-weight: 400;
597
+ line-height: normal;
598
+ }
599
+ :global(.efs-normal) {
600
+ font-family: Roboto;
601
+ font-size: 16px;
602
+ font-style: normal;
603
+ font-weight: 400;
604
+ line-height: 28px;
605
+ }
606
+ :global(.efs-strong) {
607
+ font-family: Roboto;
608
+ font-size: 17px;
609
+ font-style: normal;
610
+ font-weight: 700;
611
+ line-height: 28px;
612
+ }
613
+ :global(.efs-h6) {
614
+ font-family: Roboto;
615
+ font-size: 16px;
616
+ font-style: normal;
617
+ font-weight: 700;
618
+ line-height: normal;
619
+ }
620
+ :global(.efs-h5) {
621
+ font-family: Roboto;
622
+ font-size: 20px;
623
+ font-style: normal;
624
+ font-weight: 700;
625
+ line-height: normal;
626
+ }
627
+ :global(.efs-h4) {
628
+ font-family: Roboto;
629
+ font-size: 24px;
630
+ font-style: normal;
631
+ font-weight: 700;
632
+ line-height: normal;
633
+ }
634
+ :global(.efs-h3) {
635
+ font-family: Roboto;
636
+ font-size: 28px;
637
+ font-style: normal;
638
+ font-weight: 700;
639
+ line-height: normal;
640
+ }
641
+ :global(.efs-h2) {
642
+ font-family: Roboto;
643
+ font-size: 32px;
644
+ font-style: normal;
645
+ font-weight: 700;
646
+ line-height: normal;
647
+ }
648
+ :global(.efs-h1) {
649
+ font-family: Roboto;
650
+ font-size: 40px;
651
+ font-style: normal;
652
+ font-weight: 700;
653
+ line-height: normal;
654
+ letter-spacing: -0.8px;
655
+ }
656
+ :global(.efs-h4D) {
657
+ font-family: Merriweather;
658
+ font-size: 52px;
659
+ font-style: normal;
660
+ font-weight: 400;
661
+ line-height: normal;
662
+ }
663
+ :global(.efs-h3D) {
664
+ font-family: Merriweather;
665
+ font-size: 58px;
666
+ font-style: normal;
667
+ font-weight: 400;
668
+ line-height: normal;
669
+ }
670
+ :global(.efs-h2D) {
671
+ font-family: Merriweather;
672
+ font-size: 64px;
673
+ font-style: normal;
674
+ font-weight: 400;
675
+ line-height: normal;
676
+ letter-spacing: -1.28px;
677
+ }
678
+ :global(.efs-h1D) {
679
+ font-family: Merriweather;
680
+ font-size: 72px;
681
+ font-style: normal;
682
+ font-weight: 400;
683
+ line-height: normal;
684
+ }</style>
@@ -0,0 +1,25 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ title?: string | undefined;
5
+ name?: string | undefined;
6
+ location?: string | undefined;
7
+ slotPosition?: string | undefined;
8
+ cardbody?: string | undefined;
9
+ cardsubtitle?: string | undefined;
10
+ };
11
+ events: {
12
+ [evt: string]: CustomEvent<any>;
13
+ };
14
+ slots: {
15
+ cardsubtitle: {};
16
+ default: {};
17
+ cardbody: {};
18
+ };
19
+ };
20
+ export type CardIconProps = typeof __propDef.props;
21
+ export type CardIconEvents = typeof __propDef.events;
22
+ export type CardIconSlots = typeof __propDef.slots;
23
+ export default class CardIcon extends SvelteComponentTyped<CardIconProps, CardIconEvents, CardIconSlots> {
24
+ }
25
+ export {};
@@ -0,0 +1,2 @@
1
+ export const locationConfig: string[];
2
+ export const slotLocationConfig: string[];
@@ -0,0 +1,2 @@
1
+ export const locationConfig = ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
2
+ export const slotLocationConfig = ['left', 'right'];
@@ -96,6 +96,10 @@ $blue-500: rgba(13, 110, 253, 1);
96
96
 
97
97
  $Title-Color: #152536;
98
98
 
99
+ // cardicon color private
100
+ $gray-cardicon:#444;
101
+ $white-cardicon:#B8B8B8;
102
+
99
103
  $box-shadow-green: rgba(11, 235, 49, 0.25);
100
104
  //Button sizes
101
105
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",
@@ -63,6 +63,10 @@
63
63
  "./components/Card/Card.scss": "./components/Card/Card.scss",
64
64
  "./components/Card/Card.stories": "./components/Card/Card.stories.js",
65
65
  "./components/Card/Card.svelte": "./components/Card/Card.svelte",
66
+ "./components/CardIcon/CardIcon.scss": "./components/CardIcon/CardIcon.scss",
67
+ "./components/CardIcon/CardIcon.stories": "./components/CardIcon/CardIcon.stories.js",
68
+ "./components/CardIcon/CardIcon.svelte": "./components/CardIcon/CardIcon.svelte",
69
+ "./components/CardIcon/CardIconConfig": "./components/CardIcon/CardIconConfig.js",
66
70
  "./components/CheckBox/Checkbox.scss": "./components/CheckBox/Checkbox.scss",
67
71
  "./components/CheckBox/Checkbox.stories": "./components/CheckBox/Checkbox.stories.js",
68
72
  "./components/CheckBox/Checkbox.svelte": "./components/CheckBox/Checkbox.svelte",