@salesgenterp/ui-components 0.4.448 → 0.4.450
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 +12 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7069,7 +7069,7 @@ var CartTableCell$1 = styled__default(material.TableCell)(_templateObject4$c ||
|
|
|
7069
7069
|
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"])));
|
|
7070
7070
|
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"])));
|
|
7071
7071
|
var CardRow = function CardRow(_ref) {
|
|
7072
|
-
var _styles$price, _styles$Btn
|
|
7072
|
+
var _styles$price, _styles$Btn;
|
|
7073
7073
|
var row = _ref.row,
|
|
7074
7074
|
isItemSelected = _ref.isItemSelected,
|
|
7075
7075
|
handleClick = _ref.handleClick,
|
|
@@ -7170,7 +7170,14 @@ var CardRow = function CardRow(_ref) {
|
|
|
7170
7170
|
className: "CartnoBelowSm"
|
|
7171
7171
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
7172
7172
|
className: "price"
|
|
7173
|
-
},
|
|
7173
|
+
}, (row === null || row === void 0 ? void 0 : row.standardPrice) > (row === null || row === void 0 ? void 0 : row.standardPrice) - (row === null || row === void 0 ? void 0 : row.discountAmount) && /*#__PURE__*/React__default.createElement("span", {
|
|
7174
|
+
style: {
|
|
7175
|
+
fontSize: '1rem',
|
|
7176
|
+
color: 'grey',
|
|
7177
|
+
textDecoration: 'line-through',
|
|
7178
|
+
marginRight: '0.5rem'
|
|
7179
|
+
}
|
|
7180
|
+
}, "$", row === null || row === void 0 ? void 0 : row.standardPrice.toFixed(2)), "$", ((row === null || row === void 0 ? void 0 : row.standardPrice) - (row === null || row === void 0 ? void 0 : row.discountAmount)).toFixed(2))), /*#__PURE__*/React__default.createElement(CartTableCell$1, {
|
|
7174
7181
|
align: "center"
|
|
7175
7182
|
}, /*#__PURE__*/React__default.createElement(QuantityBox, null, /*#__PURE__*/React__default.createElement("span", {
|
|
7176
7183
|
className: "icon",
|
|
@@ -7221,7 +7228,7 @@ var CardRow = function CardRow(_ref) {
|
|
|
7221
7228
|
className: "CartnoPaddingSm"
|
|
7222
7229
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
7223
7230
|
className: "price"
|
|
7224
|
-
}, "$", (
|
|
7231
|
+
}, "$", ((row === null || row === void 0 ? void 0 : row.standardPrice) * (row === null || row === void 0 ? void 0 : row.quantity) - (row === null || row === void 0 ? void 0 : row.discountAmount) * (row === null || row === void 0 ? void 0 : row.quantity)).toFixed(2))), /*#__PURE__*/React__default.createElement(CartTableCell$1, {
|
|
7225
7232
|
alig: "center"
|
|
7226
7233
|
}, /*#__PURE__*/React__default.createElement(DeleteBtn, {
|
|
7227
7234
|
onClick: function onClick(e) {
|
|
@@ -8160,7 +8167,7 @@ var CartDrawerProductCard = function CartDrawerProductCard(_ref) {
|
|
|
8160
8167
|
onClick: function onClick() {
|
|
8161
8168
|
return handleRedirect(product);
|
|
8162
8169
|
}
|
|
8163
|
-
}, product === null || product === void 0 ? void 0 : product.productName)), /*#__PURE__*/React__default.createElement("h6", null, (product === null || product === void 0 ? void 0 : product.standardPrice) === (product === null || product === void 0 ? void 0 : product.
|
|
8170
|
+
}, product === null || product === void 0 ? void 0 : product.productName)), /*#__PURE__*/React__default.createElement("h6", null, !((product === null || product === void 0 ? void 0 : product.standardPrice) > (product === null || product === void 0 ? void 0 : product.standardPrice) - (product === null || product === void 0 ? void 0 : product.discountAmount)) ? "$" + ((product === null || product === void 0 ? void 0 : product.standardPrice) - (product === null || product === void 0 ? void 0 : product.discountAmount)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", null, renderMoney(product === null || product === void 0 ? void 0 : product.standardPrice)), renderMoney((product === null || product === void 0 ? void 0 : product.standardPrice) - (product === null || product === void 0 ? void 0 : product.discountAmount))))), /*#__PURE__*/React__default.createElement(material.Stack, {
|
|
8164
8171
|
flexDirection: "column",
|
|
8165
8172
|
justifyContent: "space-between",
|
|
8166
8173
|
alignItems: "flex-end",
|
|
@@ -8250,7 +8257,7 @@ var CartDrawer = function CartDrawer(_ref) {
|
|
|
8250
8257
|
justifyContent: "space-between",
|
|
8251
8258
|
alignItems: "center",
|
|
8252
8259
|
className: "row"
|
|
8253
|
-
}, /*#__PURE__*/React__default.createElement("h5", null, "
|
|
8260
|
+
}, /*#__PURE__*/React__default.createElement("h5", null, "Total", /*#__PURE__*/React__default.createElement("span", null, "(", cartData === null || cartData === void 0 ? void 0 : cartData.totalCartQuantity, " items)")), /*#__PURE__*/React__default.createElement("h5", null, "$", cartData === null || cartData === void 0 ? void 0 : (_cartData$totalCartPr = cartData.totalCartPrice) === null || _cartData$totalCartPr === void 0 ? void 0 : _cartData$totalCartPr.toFixed(2))), /*#__PURE__*/React__default.createElement(CartDrawerOutlinedButton, {
|
|
8254
8261
|
color: color,
|
|
8255
8262
|
onClick: function onClick() {
|
|
8256
8263
|
return handleRedirect('cart');
|