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