@enki-tek/fms-web-components 0.0.79 → 0.0.81
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,7 @@
|
|
7
7
|
border: none;
|
8
8
|
cursor: pointer;
|
9
9
|
border-radius: 6px;
|
10
|
-
padding:
|
10
|
+
padding: 10px 16px;
|
11
11
|
height: $medium-height;
|
12
12
|
box-shadow: $lowShadow;
|
13
13
|
border: none;
|
@@ -31,7 +31,7 @@
|
|
31
31
|
|
32
32
|
//medium button
|
33
33
|
.ebtn-medium {
|
34
|
-
padding:
|
34
|
+
padding: 10px 16px;
|
35
35
|
height: $medium-height;
|
36
36
|
display: flex;
|
37
37
|
justify-content: center;
|
@@ -56,7 +56,7 @@
|
|
56
56
|
border: none;
|
57
57
|
cursor: pointer;
|
58
58
|
border-radius: 6px;
|
59
|
-
padding:
|
59
|
+
padding: 10px 16px;
|
60
60
|
height: 42px;
|
61
61
|
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
|
62
62
|
border: none;
|
@@ -75,7 +75,7 @@
|
|
75
75
|
font-size: 12px;
|
76
76
|
}
|
77
77
|
.ebtn-medium {
|
78
|
-
padding:
|
78
|
+
padding: 10px 16px;
|
79
79
|
height: 42px;
|
80
80
|
display: flex;
|
81
81
|
justify-content: center;
|
@@ -4,9 +4,10 @@
|
|
4
4
|
import {Icon} from 'sveltestrap'
|
5
5
|
import { toastConfig } from "./ToastConfig";
|
6
6
|
|
7
|
-
export let type = '
|
7
|
+
export let type = '';
|
8
8
|
export let className='';
|
9
9
|
let iconName='';
|
10
|
+
export let label = '';
|
10
11
|
|
11
12
|
let toastStyle = [`toast-main`,className];
|
12
13
|
|
@@ -31,7 +32,15 @@
|
|
31
32
|
<Col sm=2 class=' d-flex justify-content-center align-items-center ps-0 pe-1'>
|
32
33
|
<Icon name={iconName}></Icon>
|
33
34
|
</Col>
|
34
|
-
<Col sm=10 class='ps-0 pt-0 pb-0 pe-2'>
|
35
|
+
<Col sm=10 class='ps-0 pt-0 pb-0 pe-2'>
|
36
|
+
<slot>
|
37
|
+
{#if label}
|
38
|
+
{label}
|
39
|
+
{:else}
|
40
|
+
<slot />
|
41
|
+
{/if}
|
42
|
+
</slot>
|
43
|
+
</Col>
|
35
44
|
</Row>
|
36
45
|
</div>
|
37
46
|
|
@@ -47,8 +56,9 @@
|
|
47
56
|
}
|
48
57
|
.toast-main {
|
49
58
|
position: fixed;
|
50
|
-
bottom:
|
51
|
-
right:
|
59
|
+
bottom: 14px;
|
60
|
+
right: 6px;
|
61
|
+
z-index: 2000;
|
52
62
|
min-width: 100px;
|
53
63
|
max-width: 500px;
|
54
64
|
border: 1px solid #000000;
|
@@ -3,10 +3,13 @@
|
|
3
3
|
/** @typedef {typeof __propDef.slots} ToastSlots */
|
4
4
|
export default class Toast extends SvelteComponentTyped<{
|
5
5
|
type?: string | undefined;
|
6
|
+
label?: string | undefined;
|
6
7
|
className?: string | undefined;
|
7
8
|
}, {
|
8
9
|
[evt: string]: CustomEvent<any>;
|
9
|
-
}, {
|
10
|
+
}, {
|
11
|
+
default: {};
|
12
|
+
}> {
|
10
13
|
}
|
11
14
|
export type ToastProps = typeof __propDef.props;
|
12
15
|
export type ToastEvents = typeof __propDef.events;
|
@@ -15,11 +18,14 @@ import { SvelteComponentTyped } from "svelte";
|
|
15
18
|
declare const __propDef: {
|
16
19
|
props: {
|
17
20
|
type?: string | undefined;
|
21
|
+
label?: string | undefined;
|
18
22
|
className?: string | undefined;
|
19
23
|
};
|
20
24
|
events: {
|
21
25
|
[evt: string]: CustomEvent<any>;
|
22
26
|
};
|
23
|
-
slots: {
|
27
|
+
slots: {
|
28
|
+
default: {};
|
29
|
+
};
|
24
30
|
};
|
25
31
|
export {};
|