@salesgenterp/ui-components 0.4.221 → 0.4.223
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 +14 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6426,16 +6426,16 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
|
|
|
6426
6426
|
className: "text"
|
|
6427
6427
|
}, "order total :"), /*#__PURE__*/React__default.createElement("h6", {
|
|
6428
6428
|
className: "total"
|
|
6429
|
-
}, renderMoney(total + ((shippingMethod === null || shippingMethod === void 0 ? void 0 : shippingMethod.amount) || 0) - (discountTotal || 0)))), discountTotal && /*#__PURE__*/React__default.createElement(TextRow, null, /*#__PURE__*/React__default.createElement("p", {
|
|
6429
|
+
}, renderMoney(total + ((shippingMethod === null || shippingMethod === void 0 ? void 0 : shippingMethod.amount) || 0) - (discountTotal || 0)))), discountTotal && discountTotal > 0 ? /*#__PURE__*/React__default.createElement(TextRow, null, /*#__PURE__*/React__default.createElement("p", {
|
|
6430
6430
|
className: "text"
|
|
6431
|
-
}, "
|
|
6431
|
+
}, "Discount Total :"), /*#__PURE__*/React__default.createElement("h6", {
|
|
6432
6432
|
className: "total",
|
|
6433
6433
|
style: {
|
|
6434
6434
|
fontSize: '1rem'
|
|
6435
6435
|
}
|
|
6436
|
-
}, renderMoney(discountTotal || 0))), /*#__PURE__*/React__default.createElement(FilledInfo, null, /*#__PURE__*/React__default.createElement("h6", {
|
|
6436
|
+
}, renderMoney(discountTotal || 0))) : null, /*#__PURE__*/React__default.createElement(FilledInfo, null, /*#__PURE__*/React__default.createElement("h6", {
|
|
6437
6437
|
className: "heading"
|
|
6438
|
-
}, "Billing
|
|
6438
|
+
}, "Billing Information"), billingInformation !== null && billingInformation !== void 0 && billingInformation.title ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
|
|
6439
6439
|
className: "bold"
|
|
6440
6440
|
}, billingInformation === null || billingInformation === void 0 ? void 0 : billingInformation.title), /*#__PURE__*/React__default.createElement("p", null, billingInformation === null || billingInformation === void 0 ? void 0 : billingInformation.data)) : /*#__PURE__*/React__default.createElement("p", {
|
|
6441
6441
|
className: "blank bold"
|
|
@@ -8014,7 +8014,8 @@ var Step4 = function Step4(_ref) {
|
|
|
8014
8014
|
styles = _ref.styles,
|
|
8015
8015
|
shippingMethod = _ref.shippingMethod,
|
|
8016
8016
|
_ref$discountCoupons = _ref.discountCoupons,
|
|
8017
|
-
discountCoupons = _ref$discountCoupons === void 0 ? [] : _ref$discountCoupons
|
|
8017
|
+
discountCoupons = _ref$discountCoupons === void 0 ? [] : _ref$discountCoupons,
|
|
8018
|
+
shippingText = _ref.shippingText;
|
|
8018
8019
|
var _React$useState = React__default.useState(false),
|
|
8019
8020
|
checked = _React$useState[0],
|
|
8020
8021
|
setChecked = _React$useState[1];
|
|
@@ -8092,7 +8093,7 @@ var Step4 = function Step4(_ref) {
|
|
|
8092
8093
|
align: "right"
|
|
8093
8094
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
8094
8095
|
className: "max sm primaryColor"
|
|
8095
|
-
}, renderMoney((shippingMethod === null || shippingMethod === void 0 ? void 0 : shippingMethod.amount) || 0)))), /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
8096
|
+
}, shippingMethod !== null && shippingMethod !== void 0 && shippingMethod.amount ? renderMoney((shippingMethod === null || shippingMethod === void 0 ? void 0 : shippingMethod.amount) || 0) : shippingText || renderMoney((shippingMethod === null || shippingMethod === void 0 ? void 0 : shippingMethod.amount) || 0)))), /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
8096
8097
|
colSpan: 1,
|
|
8097
8098
|
noSmall: true
|
|
8098
8099
|
}), /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
@@ -8126,7 +8127,7 @@ var Step4 = function Step4(_ref) {
|
|
|
8126
8127
|
fontSize: '0.8rem'
|
|
8127
8128
|
}
|
|
8128
8129
|
}, renderMoney(coupon === null || coupon === void 0 ? void 0 : coupon.amount))));
|
|
8129
|
-
}), discountTotal && /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
8130
|
+
}), discountTotal && discountTotal > 0 ? /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
8130
8131
|
colSpan: 1,
|
|
8131
8132
|
noSmall: true
|
|
8132
8133
|
}), /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
@@ -8139,7 +8140,7 @@ var Step4 = function Step4(_ref) {
|
|
|
8139
8140
|
align: "right"
|
|
8140
8141
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
8141
8142
|
className: "max sm primaryColor"
|
|
8142
|
-
}, renderMoney(discountTotal)))), storeCredits && storeCredits > 0 ? /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
8143
|
+
}, renderMoney(discountTotal)))) : null, storeCredits && storeCredits > 0 ? /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
8143
8144
|
colSpan: 1,
|
|
8144
8145
|
noSmall: true
|
|
8145
8146
|
}), /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
@@ -8152,7 +8153,7 @@ var Step4 = function Step4(_ref) {
|
|
|
8152
8153
|
align: "right"
|
|
8153
8154
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
8154
8155
|
className: "max sm price"
|
|
8155
|
-
}, "- $", (storeCr === null || storeCr === void 0 ? void 0 : storeCr.toFixed(2)) || 0))) :
|
|
8156
|
+
}, "- $", (storeCr === null || storeCr === void 0 ? void 0 : storeCr.toFixed(2)) || 0))) : null, /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
8156
8157
|
colSpan: 1,
|
|
8157
8158
|
noSmall: true
|
|
8158
8159
|
}), /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
@@ -8339,7 +8340,8 @@ var CheckoutPageComponent = function CheckoutPageComponent(_ref) {
|
|
|
8339
8340
|
billingAddress = _ref.billingAddress,
|
|
8340
8341
|
selectedPaymentMethod = _ref.selectedPaymentMethod,
|
|
8341
8342
|
shippingMethod = _ref.shippingMethod,
|
|
8342
|
-
discountCoupons = _ref.discountCoupons
|
|
8343
|
+
discountCoupons = _ref.discountCoupons,
|
|
8344
|
+
shippingText = _ref.shippingText;
|
|
8343
8345
|
return /*#__PURE__*/React__default.createElement(CheckoutPageContainer, {
|
|
8344
8346
|
className: "checkout",
|
|
8345
8347
|
bg: styles === null || styles === void 0 ? void 0 : styles.bg
|
|
@@ -8506,7 +8508,8 @@ var CheckoutPageComponent = function CheckoutPageComponent(_ref) {
|
|
|
8506
8508
|
placeOrder: placeOrder,
|
|
8507
8509
|
styles: styles,
|
|
8508
8510
|
storeCredits: selectedStoreCredits,
|
|
8509
|
-
discountCoupons: discountCoupons
|
|
8511
|
+
discountCoupons: discountCoupons,
|
|
8512
|
+
shippingText: shippingText
|
|
8510
8513
|
})));
|
|
8511
8514
|
}))))), /*#__PURE__*/React__default.createElement(CheckoutSummary, {
|
|
8512
8515
|
billingInformation: billingAddress,
|