@citygross/components 0.13.3 → 0.13.4
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/build/cjs/components/src/components/CartSummary/CartSummary.js +4 -6
- package/build/cjs/components/src/components/CartSummary/CartSummary.js.map +1 -1
- package/build/es/components/src/components/CartSummary/CartSummary.js +4 -6
- package/build/es/components/src/components/CartSummary/CartSummary.js.map +1 -1
- package/package.json +2 -2
|
@@ -33,8 +33,8 @@ var calculateSummaryLine = function (items) {
|
|
|
33
33
|
return sumOfItems;
|
|
34
34
|
};
|
|
35
35
|
function CartSummary(_a) {
|
|
36
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t
|
|
37
|
-
var
|
|
36
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
37
|
+
var _u = _a.saveLabel, saveLabel = _u === void 0 ? 'Varav rabatt' : _u, _v = _a.totalLabel, totalLabel = _v === void 0 ? 'Totalt' : _v, _w = _a.itemsLabel, itemsLabel = _w === void 0 ? 'Varor' : _w, cartSummary = _tslib.__rest(_a, ["saveLabel", "totalLabel", "itemsLabel"]);
|
|
38
38
|
var charges = (_b = cartSummary.charges) !== null && _b !== void 0 ? _b : [];
|
|
39
39
|
var bags = (_c = cartSummary.bags) !== null && _c !== void 0 ? _c : [];
|
|
40
40
|
var groceries = (_d = cartSummary.groceries) !== null && _d !== void 0 ? _d : [];
|
|
@@ -116,10 +116,8 @@ function CartSummary(_a) {
|
|
|
116
116
|
React__default["default"].createElement(typography.H3, { fontWeight: "semiBold" }, totalLabel),
|
|
117
117
|
React__default["default"].createElement(typography.H3, { fontWeight: "semiBold" }, utils.formatPrice(cartSummary.totalAmount))),
|
|
118
118
|
cartSummary.totalDiscount > 0 && (React__default["default"].createElement(CartSummary_styles.CartLine, { role: "listitem", "aria-label": "".concat(saveLabel, " ").concat(utils.formatPrice(cartSummary.totalDiscount)) },
|
|
119
|
-
React__default["default"].createElement(typography.BodyText, {
|
|
120
|
-
React__default["default"].createElement(typography.BodyText, { color: (
|
|
121
|
-
"-",
|
|
122
|
-
utils.formatPrice(cartSummary.totalDiscount))))))));
|
|
119
|
+
React__default["default"].createElement(typography.BodyText, { size: typography.TextTypes.TextSize.SMALL }, saveLabel),
|
|
120
|
+
React__default["default"].createElement(typography.BodyText, { color: (_t = index.theme === null || index.theme === void 0 ? void 0 : index.theme.palette) === null || _t === void 0 ? void 0 : _t.alertRed, size: typography.TextTypes.TextSize.SMALL, "aria-label": "Discount ".concat(utils.formatPrice(cartSummary.totalDiscount)) }, utils.formatPrice(cartSummary.totalDiscount))))))));
|
|
123
121
|
}
|
|
124
122
|
|
|
125
123
|
exports.CartSummary = CartSummary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartSummary.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CartSummary.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -25,8 +25,8 @@ var calculateSummaryLine = function (items) {
|
|
|
25
25
|
return sumOfItems;
|
|
26
26
|
};
|
|
27
27
|
function CartSummary(_a) {
|
|
28
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t
|
|
29
|
-
var
|
|
28
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
29
|
+
var _u = _a.saveLabel, saveLabel = _u === void 0 ? 'Varav rabatt' : _u, _v = _a.totalLabel, totalLabel = _v === void 0 ? 'Totalt' : _v, _w = _a.itemsLabel, itemsLabel = _w === void 0 ? 'Varor' : _w, cartSummary = __rest(_a, ["saveLabel", "totalLabel", "itemsLabel"]);
|
|
30
30
|
var charges = (_b = cartSummary.charges) !== null && _b !== void 0 ? _b : [];
|
|
31
31
|
var bags = (_c = cartSummary.bags) !== null && _c !== void 0 ? _c : [];
|
|
32
32
|
var groceries = (_d = cartSummary.groceries) !== null && _d !== void 0 ? _d : [];
|
|
@@ -108,10 +108,8 @@ function CartSummary(_a) {
|
|
|
108
108
|
React.createElement(H3, { fontWeight: "semiBold" }, totalLabel),
|
|
109
109
|
React.createElement(H3, { fontWeight: "semiBold" }, formatPrice(cartSummary.totalAmount))),
|
|
110
110
|
cartSummary.totalDiscount > 0 && (React.createElement(CartLine, { role: "listitem", "aria-label": "".concat(saveLabel, " ").concat(formatPrice(cartSummary.totalDiscount)) },
|
|
111
|
-
React.createElement(BodyText, {
|
|
112
|
-
React.createElement(BodyText, { color: (
|
|
113
|
-
"-",
|
|
114
|
-
formatPrice(cartSummary.totalDiscount))))))));
|
|
111
|
+
React.createElement(BodyText, { size: TextTypes.TextSize.SMALL }, saveLabel),
|
|
112
|
+
React.createElement(BodyText, { color: (_t = theme_1 === null || theme_1 === void 0 ? void 0 : theme_1.palette) === null || _t === void 0 ? void 0 : _t.alertRed, size: TextTypes.TextSize.SMALL, "aria-label": "Discount ".concat(formatPrice(cartSummary.totalDiscount)) }, formatPrice(cartSummary.totalDiscount))))))));
|
|
115
113
|
}
|
|
116
114
|
|
|
117
115
|
export { CartSummary };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartSummary.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CartSummary.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./build/cjs/components/src/index.js",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"react-slick": "^0.30.1",
|
|
76
76
|
"slick-carousel": "^1.8.1"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "16d19b8a20462869165b15188e92d45c8ab70d5b"
|
|
79
79
|
}
|