-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathdefaults.js
More file actions
34 lines (30 loc) · 741 Bytes
/
defaults.js
File metadata and controls
34 lines (30 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import assign from 'object-assign';
let defaults = {
wrapperId: 'notification-wrapper',
animationDuration: 300,
timeout: 5000,
zIndex: 1000,
top: 0, // Controls the offset from top of viewport.
colors: {
error: {
color: "#FFFFFF",
backgroundColor: '#E85742'
},
success: {
color: "#FFFFFF",
backgroundColor: '#55CA92'
},
warning: {
color: "#333333",
backgroundColor: '#F5E273'
},
info: {
color: "#FFFFFF",
backgroundColor: '#4990E2'
}
}
};
function mergeOptions(options) {
defaults = assign(defaults, options);
}
export {defaults, mergeOptions};