@salesgenterp/ui-components 0.4.317 → 0.4.319

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 CHANGED
@@ -1069,7 +1069,7 @@ var APIStaticPage = function APIStaticPage(_ref) {
1069
1069
  }
1070
1070
  }, !hideRouteBar && /*#__PURE__*/React__default.createElement("div", {
1071
1071
  className: "route-bar"
1072
- }, /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement(ai.AiOutlineHome, null), "\xA0Home\xA0", /*#__PURE__*/React__default.createElement(ai.AiOutlineRight, null), "\xA0", staticPage === null || staticPage === void 0 ? void 0 : staticPage.header)), /*#__PURE__*/React__default.createElement(material.Grid, {
1072
+ }, /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement(ai.AiOutlineHome, null), "\xA0Home\xA0", /*#__PURE__*/React__default.createElement(ai.AiOutlineRight, null), "\xA0", staticPage === null || staticPage === void 0 ? void 0 : staticPage.title)), /*#__PURE__*/React__default.createElement(material.Grid, {
1073
1073
  container: true,
1074
1074
  spacing: 4,
1075
1075
  justifyContent: "center"
@@ -1077,7 +1077,7 @@ var APIStaticPage = function APIStaticPage(_ref) {
1077
1077
  item: true,
1078
1078
  sm: 12,
1079
1079
  md: contactUsForm ? 6 : 12
1080
- }, extra && extra, /*#__PURE__*/React__default.createElement("div", {
1080
+ }, extra && (typeof extra === 'function' ? extra(staticPage) : extra), /*#__PURE__*/React__default.createElement("div", {
1081
1081
  dangerouslySetInnerHTML: {
1082
1082
  __html: (staticPage === null || staticPage === void 0 ? void 0 : staticPage.body) || ''
1083
1083
  }
@@ -9778,6 +9778,9 @@ var Step2 = function Step2(_ref) {
9778
9778
  if (rangeValue) {
9779
9779
  modifyItem.amount = rangeValue === null || rangeValue === void 0 ? void 0 : rangeValue.value;
9780
9780
  }
9781
+ if (item !== null && item !== void 0 && item.freeShippingLimit && (orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.totalAmount) > (item === null || item === void 0 ? void 0 : item.freeShippingLimit)) {
9782
+ modifyItem.amount = 0;
9783
+ }
9781
9784
  return modifyItem;
9782
9785
  });
9783
9786
  var _useForm = reactHookForm.useForm(),
@@ -9835,7 +9838,7 @@ var Step2 = function Step2(_ref) {
9835
9838
  } else {
9836
9839
  !(option !== null && option !== void 0 && option.shippingId) && setExpandCarrier(null);
9837
9840
  setMethod(_extends({}, option, {
9838
- amount: (orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.totalAmount) > (option === null || option === void 0 ? void 0 : option.freeShippingLimit) ? 0 : option === null || option === void 0 ? void 0 : option.amount
9841
+ amount: option === null || option === void 0 ? void 0 : option.amount
9839
9842
  }));
9840
9843
  }
9841
9844
  },