@salesgenterp/ui-components 0.4.559 → 0.4.560
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 +1 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -10
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -18530,10 +18530,6 @@ var getProductImage$1 = function getProductImage(imageUrl, fallbackUrl) {
|
|
|
18530
18530
|
var url = imageUrl || fallbackUrl;
|
|
18531
18531
|
return url && url !== 'null' ? url : '/images/products/imgnotfound.png';
|
|
18532
18532
|
};
|
|
18533
|
-
var formatPrice$1 = function formatPrice(price) {
|
|
18534
|
-
var value = Number(price);
|
|
18535
|
-
return Number.isFinite(value) ? value.toFixed(2) : '0.00';
|
|
18536
|
-
};
|
|
18537
18533
|
var DEFAULT_GRID_SPAN$1 = {
|
|
18538
18534
|
lg: 3,
|
|
18539
18535
|
md: 4,
|
|
@@ -18734,7 +18730,6 @@ var FavoriteItemsComponent = function FavoriteItemsComponent(_ref3) {
|
|
|
18734
18730
|
}));
|
|
18735
18731
|
};
|
|
18736
18732
|
var ProductCard$1 = function ProductCard(_ref4) {
|
|
18737
|
-
var _product$standardPric, _product$retailPrice;
|
|
18738
18733
|
var product = _ref4.product,
|
|
18739
18734
|
styleOverrides = _ref4.styleOverrides,
|
|
18740
18735
|
primaryColor = _ref4.primaryColor,
|
|
@@ -18815,11 +18810,7 @@ var ProductCard$1 = function ProductCard(_ref4) {
|
|
|
18815
18810
|
width: 160,
|
|
18816
18811
|
height: 160,
|
|
18817
18812
|
objectFit: "contain"
|
|
18818
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
18819
|
-
style: getStyleOverride$1(styleOverrides, 'priceContainer', 'PriceContainer')
|
|
18820
|
-
}, ((_product$standardPric = product === null || product === void 0 ? void 0 : product.standardPrice) != null ? _product$standardPric : 0) > ((_product$retailPrice = product === null || product === void 0 ? void 0 : product.retailPrice) != null ? _product$retailPrice : 0) ? /*#__PURE__*/React__default.createElement(DiscountPriceRow$1, {
|
|
18821
|
-
style: getStyleOverride$1(styleOverrides, 'discountPriceRow', 'DiscountPriceRow')
|
|
18822
|
-
}, /*#__PURE__*/React__default.createElement("del", null, "$" + formatPrice$1(product === null || product === void 0 ? void 0 : product.standardPrice)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", null, "$" + formatPrice$1(product === null || product === void 0 ? void 0 : product.retailPrice)))) : /*#__PURE__*/React__default.createElement("div", null, "$" + formatPrice$1(product === null || product === void 0 ? void 0 : product.standardPrice))), /*#__PURE__*/React__default.createElement(ProductName$3, {
|
|
18813
|
+
}), /*#__PURE__*/React__default.createElement(ProductName$3, {
|
|
18823
18814
|
style: getStyleOverride$1(styleOverrides, 'productName', 'ProductName')
|
|
18824
18815
|
}, product === null || product === void 0 ? void 0 : product.productName), /*#__PURE__*/React__default.createElement("div", null, (product === null || product === void 0 ? void 0 : product.productStock) > 0 || allowToProcessInvoiceForOutOfStockProducts || product !== null && product !== void 0 && product.hasChildProduct ? /*#__PURE__*/React__default.createElement(ProductActionButton$1, {
|
|
18825
18816
|
variant: "contained",
|