@salesgenterp/ui-components 0.4.508 → 0.4.509
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/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7376,7 +7376,7 @@ var CartTableCell$1 = styled__default(material.TableCell)(_templateObject4$c ||
|
|
|
7376
7376
|
var QuantityBox = styled__default.div(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n height: 30px;\n width: 86px;\n border: 1px solid rgb(211, 210, 210);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 13.5px;\n color: #323232;\n padding: 0 0.5rem;\n border-radius: 5px;\n max-width: 100%;\n .icon {\n cursor: pointer;\n height: 100%;\n display: grid;\n place-items: center;\n }\n .qt {\n font-size: 12px;\n color: black;\n font-weight: 500;\n cursor: auto;\n height: 100%;\n input {\n width: 40px;\n height: 100%;\n text-align: center;\n border: none;\n }\n }\n"])));
|
|
7377
7377
|
var DeleteBtn = styled__default.div(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\n display: grid;\n place-items: center;\n cursor: pointer;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n background: #eef1f4;\n color: #393f48;\n font-size: 0.75em;\n transition: 0.4s;\n &:hover {\n background: red;\n color: white;\n }\n"])));
|
|
7378
7378
|
var CardRow = function CardRow(_ref) {
|
|
7379
|
-
var _styles$price, _styles$Btn;
|
|
7379
|
+
var _styles$price, _styles$Btn, _item, _item2;
|
|
7380
7380
|
var row = _ref.row,
|
|
7381
7381
|
isItemSelected = _ref.isItemSelected,
|
|
7382
7382
|
handleClick = _ref.handleClick,
|
|
@@ -7467,8 +7467,8 @@ var CardRow = function CardRow(_ref) {
|
|
|
7467
7467
|
clickRedirect(row);
|
|
7468
7468
|
}
|
|
7469
7469
|
}, row.productName), /*#__PURE__*/React__default.createElement(CouponDiscountName, {
|
|
7470
|
-
discountAmount:
|
|
7471
|
-
discountName:
|
|
7470
|
+
discountAmount: (_item = item) === null || _item === void 0 ? void 0 : _item.couponDiscount,
|
|
7471
|
+
discountName: (_item2 = item) === null || _item2 === void 0 ? void 0 : _item2.couponCode
|
|
7472
7472
|
}), ((row === null || row === void 0 ? void 0 : row.quantity) > (row === null || row === void 0 ? void 0 : row.availableQuantity) || (row === null || row === void 0 ? void 0 : row.availableQuantity) <= 0) && /*#__PURE__*/React__default.createElement("p", {
|
|
7473
7473
|
style: {
|
|
7474
7474
|
color: 'red',
|
|
@@ -7882,8 +7882,8 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
|
|
|
7882
7882
|
return clickRedirect(item);
|
|
7883
7883
|
}
|
|
7884
7884
|
}, item.productName)), /*#__PURE__*/React__default.createElement(CouponDiscountName, {
|
|
7885
|
-
discountAmount: item === null || item === void 0 ? void 0 : item.
|
|
7886
|
-
discountName: item === null || item === void 0 ? void 0 : item.
|
|
7885
|
+
discountAmount: item === null || item === void 0 ? void 0 : item.couponDiscount,
|
|
7886
|
+
discountName: item === null || item === void 0 ? void 0 : item.couponCode
|
|
7887
7887
|
})), !doNotShowPrice && /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement(TotalAfterDiscount, {
|
|
7888
7888
|
totalAmount: item === null || item === void 0 ? void 0 : item.standardPrice,
|
|
7889
7889
|
discountAmount: item === null || item === void 0 ? void 0 : item.discountAmount
|
|
@@ -8526,7 +8526,7 @@ var CartDrawerProductCard = function CartDrawerProductCard(_ref) {
|
|
|
8526
8526
|
return handleRedirect(product);
|
|
8527
8527
|
}
|
|
8528
8528
|
}, product === null || product === void 0 ? void 0 : product.productName)), /*#__PURE__*/React__default.createElement(CouponDiscountName, {
|
|
8529
|
-
discountName: product === null || product === void 0 ? void 0 : product.
|
|
8529
|
+
discountName: product === null || product === void 0 ? void 0 : product.couponCode,
|
|
8530
8530
|
discountAmount: product === null || product === void 0 ? void 0 : product.couponDiscount
|
|
8531
8531
|
})), !doNotShowPrice && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h6", null, /*#__PURE__*/React__default.createElement(TotalAfterDiscount, {
|
|
8532
8532
|
totalAmount: product === null || product === void 0 ? void 0 : product.standardPrice,
|