@salesgenterp/ui-components 0.4.56 → 0.4.60
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 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2537,7 +2537,11 @@ var Step1 = function Step1(_ref) {
|
|
|
2537
2537
|
React.useEffect(function () {
|
|
2538
2538
|
setSelectedCountry(selectedCountry);
|
|
2539
2539
|
}, [selectedCountry]);
|
|
2540
|
-
|
|
2540
|
+
React.useEffect(function () {
|
|
2541
|
+
var _addressList$3;
|
|
2542
|
+
|
|
2543
|
+
setAddress((_addressList$3 = addressList[0]) === null || _addressList$3 === void 0 ? void 0 : _addressList$3.id);
|
|
2544
|
+
}, [addressList]);
|
|
2541
2545
|
return /*#__PURE__*/React__default.createElement(StepContainer, null, /*#__PURE__*/React__default.createElement(StepsHeaderComponent, {
|
|
2542
2546
|
text: 'billing information',
|
|
2543
2547
|
icon: 2
|
|
@@ -2673,6 +2677,11 @@ var Step2 = function Step2(_ref) {
|
|
|
2673
2677
|
React.useEffect(function () {
|
|
2674
2678
|
setSelectedCountry(selectedCountry);
|
|
2675
2679
|
}, [selectedCountry]);
|
|
2680
|
+
React.useEffect(function () {
|
|
2681
|
+
var _addressList$2;
|
|
2682
|
+
|
|
2683
|
+
setAddress((_addressList$2 = addressList[0]) === null || _addressList$2 === void 0 ? void 0 : _addressList$2.id);
|
|
2684
|
+
}, [addressList]);
|
|
2676
2685
|
return /*#__PURE__*/React__default.createElement(StepContainer, null, /*#__PURE__*/React__default.createElement(StepsHeaderComponent, {
|
|
2677
2686
|
text: showShipping ? 'shipping information' : 'shipping method',
|
|
2678
2687
|
icon: 3
|
|
@@ -2861,7 +2870,7 @@ var Step3 = function Step3(_ref) {
|
|
|
2861
2870
|
className: "bold"
|
|
2862
2871
|
}, "Due Amount:"), /*#__PURE__*/React__default.createElement("span", {
|
|
2863
2872
|
className: "red"
|
|
2864
|
-
}, " $", total === null || total === void 0 ? void 0 : total.toFixed(2))), storeCredits
|
|
2873
|
+
}, " $", total === null || total === void 0 ? void 0 : total.toFixed(2))), storeCredits ? /*#__PURE__*/React__default.createElement(CheckBoxRow, {
|
|
2865
2874
|
marginLeft: "1em",
|
|
2866
2875
|
style: {
|
|
2867
2876
|
paddingBottom: '1.5em',
|
|
@@ -2877,7 +2886,7 @@ var Step3 = function Step3(_ref) {
|
|
|
2877
2886
|
className: "bold"
|
|
2878
2887
|
}, "Store Credits:", ' ', /*#__PURE__*/React__default.createElement("span", {
|
|
2879
2888
|
className: "bold"
|
|
2880
|
-
}, "$", storeCredits === null || storeCredits === void 0 ? void 0 : storeCredits.toFixed(2)))), /*#__PURE__*/React__default.createElement(StepsContent, null, payments === null || payments === void 0 ? void 0 : payments.map(function (payment, i) {
|
|
2889
|
+
}, "$", storeCredits === null || storeCredits === void 0 ? void 0 : storeCredits.toFixed(2)))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null), /*#__PURE__*/React__default.createElement(StepsContent, null, payments === null || payments === void 0 ? void 0 : payments.map(function (payment, i) {
|
|
2881
2890
|
var _payment$name;
|
|
2882
2891
|
|
|
2883
2892
|
if (payment !== null && payment !== void 0 && (_payment$name = payment.name) !== null && _payment$name !== void 0 && _payment$name.toLowerCase().includes('card')) {
|