@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.js
CHANGED
|
@@ -18534,10 +18534,6 @@ var getProductImage$1 = function getProductImage(imageUrl, fallbackUrl) {
|
|
|
18534
18534
|
var url = imageUrl || fallbackUrl;
|
|
18535
18535
|
return url && url !== 'null' ? url : '/images/products/imgnotfound.png';
|
|
18536
18536
|
};
|
|
18537
|
-
var formatPrice$1 = function formatPrice(price) {
|
|
18538
|
-
var value = Number(price);
|
|
18539
|
-
return Number.isFinite(value) ? value.toFixed(2) : '0.00';
|
|
18540
|
-
};
|
|
18541
18537
|
var DEFAULT_GRID_SPAN$1 = {
|
|
18542
18538
|
lg: 3,
|
|
18543
18539
|
md: 4,
|
|
@@ -18738,7 +18734,6 @@ var FavoriteItemsComponent = function FavoriteItemsComponent(_ref3) {
|
|
|
18738
18734
|
}));
|
|
18739
18735
|
};
|
|
18740
18736
|
var ProductCard$1 = function ProductCard(_ref4) {
|
|
18741
|
-
var _product$standardPric, _product$retailPrice;
|
|
18742
18737
|
var product = _ref4.product,
|
|
18743
18738
|
styleOverrides = _ref4.styleOverrides,
|
|
18744
18739
|
primaryColor = _ref4.primaryColor,
|
|
@@ -18819,11 +18814,7 @@ var ProductCard$1 = function ProductCard(_ref4) {
|
|
|
18819
18814
|
width: 160,
|
|
18820
18815
|
height: 160,
|
|
18821
18816
|
objectFit: "contain"
|
|
18822
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
18823
|
-
style: getStyleOverride$1(styleOverrides, 'priceContainer', 'PriceContainer')
|
|
18824
|
-
}, ((_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, {
|
|
18825
|
-
style: getStyleOverride$1(styleOverrides, 'discountPriceRow', 'DiscountPriceRow')
|
|
18826
|
-
}, /*#__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, {
|
|
18817
|
+
}), /*#__PURE__*/React__default.createElement(ProductName$3, {
|
|
18827
18818
|
style: getStyleOverride$1(styleOverrides, 'productName', 'ProductName')
|
|
18828
18819
|
}, 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, {
|
|
18829
18820
|
variant: "contained",
|