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