merchi_cart 0.0.2-t → 0.0.2-u
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/lib/components/Alert.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { createSlice } from '@reduxjs/toolkit';
|
|
2
13
|
import { faCheckCircle, faExclamationTriangle, faInfoCircle } from '@fortawesome/free-solid-svg-icons';
|
|
3
14
|
export var sliceCartAlert = createSlice({
|
|
@@ -19,16 +30,10 @@ export var sliceCartAlert = createSlice({
|
|
|
19
30
|
state.alert = action.payload;
|
|
20
31
|
},
|
|
21
32
|
showAlertDanger: function (state, action) {
|
|
22
|
-
state.alert = action.payload;
|
|
23
|
-
state.alert.icon = faExclamationTriangle;
|
|
24
|
-
state.alert.show = true;
|
|
25
|
-
state.alert.type = 'danger';
|
|
33
|
+
state.alert = __assign(__assign({}, action.payload), { icon: faExclamationTriangle, show: true, type: 'danger' });
|
|
26
34
|
},
|
|
27
35
|
showAlertSuccess: function (state, action) {
|
|
28
|
-
state.alert = action.payload;
|
|
29
|
-
state.alert.icon = faCheckCircle;
|
|
30
|
-
state.alert.show = true;
|
|
31
|
-
state.alert.type = 'success';
|
|
36
|
+
state.alert = __assign(__assign({}, action.payload), { icon: faCheckCircle, show: true, type: 'success' });
|
|
32
37
|
},
|
|
33
38
|
},
|
|
34
39
|
});
|
package/lib/styles/globals.css
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
.merchi-cart-body {
|
|
2
2
|
display: block;
|
|
3
|
-
align-items: center;
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: center;
|
|
6
3
|
min-height: 100px;
|
|
7
4
|
height: 450px;
|
|
8
5
|
}
|
|
@@ -183,8 +180,9 @@
|
|
|
183
180
|
|
|
184
181
|
.merchi-no-cart-items {
|
|
185
182
|
display: flex;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
align-items: center;
|
|
186
185
|
justify-content: center;
|
|
187
|
-
align-content: center;
|
|
188
186
|
height: 450px;
|
|
189
187
|
}
|
|
190
188
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/styles/globals.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/styles/globals.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAGF;AACA;EACE;EACA;;;AAGF;EACE;IACE;;EAGF;IACE;IACA;;EAGF;IACE;IACA;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;AAAA;EAEE;EACA;EACA;;;AAGF;EACE;;;AAGF;AAAA;EAEE;EACA;;;AAGF;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA","file":"globals.css"}
|