@salesgenterp/ui-components 0.4.242 → 0.4.244
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 +19 -13
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -13
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4091,7 +4091,7 @@ var CartDrawerEmptyCart = styled__default.div(_templateObject7$2 || (_templateOb
|
|
|
4091
4091
|
});
|
|
4092
4092
|
|
|
4093
4093
|
var _templateObject$n, _templateObject2$e, _templateObject3$9;
|
|
4094
|
-
var CartDrawerProduct = styled__default.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n height: 100px;\n justify-content: space-around;\n align-items: center;\n overflow: hidden;\n margin-bottom: 2rem;\n\n img {\n width: 20%;\n max-height: 100%;\n /* aspect-ratio: 1; */\n object-fit: cover;\n }\n .middleSection {\n width: 60%;\n padding-left: 0.8rem;\n height: 100%;\n h6 {\n font-size: 1.1rem;\n font-weight: bold;\n margin: 0;\n\n span {\n font-size: 0.8rem;\n color: grey;\n text-decoration: line-through;\n margin-right: 0.5rem;\n }\n }\n .name {\n font-size: 0.9rem;\n line-height: 1.2rem;\n max-height: 2.45rem;\n width: 100%;\n word-wrap: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: 0.3s;\n cursor: pointer;\n &:hover {\n color: ", ";\n }\n }\n }\n .endSection {\n width: 20%;\n height: 95%;\n .icon {\n cursor: pointer;\n transition: 0.4s;\n &:hover {\n color: red;\n /* opacity: 0.7; */\n }\n }\n }\n @media only screen and (max-width: 768px) {\n .closeIcon {\n font-size: 1rem;\n }\n height: 80px;\n .middleSection {\n .name {\n max-height: 2.4rem;\n height: 2.4rem;\n }\n }\n }\n @media only screen and (max-width: 340px) {\n height: 80px;\n .middleSection {\n h6 {\n font-size: 0.9rem;\n }\n .name {\n font-size: 0.7rem;\n height: 1.45rem;\n }\n }\n }\n"])), function (props) {
|
|
4094
|
+
var CartDrawerProduct = styled__default.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n height: 100px;\n justify-content: space-around;\n align-items: center;\n overflow: hidden;\n margin-bottom: 2rem;\n user-select: none;\n\n img {\n width: 20%;\n max-height: 100%;\n /* aspect-ratio: 1; */\n object-fit: cover;\n }\n .middleSection {\n width: 60%;\n padding-left: 0.8rem;\n height: 100%;\n h6 {\n font-size: 1.1rem;\n font-weight: bold;\n margin: 0;\n\n span {\n font-size: 0.8rem;\n color: grey;\n text-decoration: line-through;\n margin-right: 0.5rem;\n }\n }\n .name {\n font-size: 0.9rem;\n line-height: 1.2rem;\n max-height: 2.45rem;\n width: 100%;\n word-wrap: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: 0.3s;\n cursor: pointer;\n &:hover {\n color: ", ";\n }\n }\n }\n .endSection {\n width: 20%;\n height: 95%;\n .icon {\n cursor: pointer;\n transition: 0.4s;\n &:hover {\n color: red;\n /* opacity: 0.7; */\n }\n }\n }\n @media only screen and (max-width: 768px) {\n .closeIcon {\n font-size: 1rem;\n }\n height: 80px;\n .middleSection {\n .name {\n max-height: 2.4rem;\n height: 2.4rem;\n }\n }\n }\n @media only screen and (max-width: 340px) {\n height: 80px;\n .middleSection {\n h6 {\n font-size: 0.9rem;\n }\n .name {\n font-size: 0.7rem;\n height: 1.45rem;\n }\n }\n }\n"])), function (props) {
|
|
4095
4095
|
return props.color || 'grey';
|
|
4096
4096
|
});
|
|
4097
4097
|
var CartDrawerQtBox = styled__default.div(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n height: 34px;\n width: 82px;\n border: 1px solid rgb(211, 210, 210);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 13.5px;\n color: #333;\n padding: 0 0.5rem;\n border-radius: 5px;\n max-width: 100%;\n\n span {\n cursor: pointer;\n height: 100%;\n display: grid;\n place-items: center;\n }\n .qt {\n font-size: 12px;\n color: black;\n font-weight: 500;\n cursor: auto;\n }\n @media only screen and (max-width: 640px) {\n min-width: 55px;\n aspect-ratio: 1/2;\n /* min-height: 28px; */\n font-size: 10px;\n }\n @media only screen and (max-width: 340px) {\n min-width: 50px;\n aspect-ratio: 1/2;\n height: 22px;\n font-size: 8px;\n }\n"])));
|
|
@@ -5975,8 +5975,8 @@ var CartSummary = function CartSummary(_ref) {
|
|
|
5975
5975
|
color: cartSummary.hr
|
|
5976
5976
|
})), /*#__PURE__*/React__default.createElement(CartSummaryInputBox, {
|
|
5977
5977
|
paddingBottom: !retail,
|
|
5978
|
-
background: (_cartSummary$input = cartSummary.input) === null || _cartSummary$input === void 0 ? void 0 : _cartSummary$input.bg,
|
|
5979
|
-
color: (_cartSummary$input2 = cartSummary.input) === null || _cartSummary$input2 === void 0 ? void 0 : _cartSummary$input2.color,
|
|
5978
|
+
background: cartSummary === null || cartSummary === void 0 ? void 0 : (_cartSummary$input = cartSummary.input) === null || _cartSummary$input === void 0 ? void 0 : _cartSummary$input.bg,
|
|
5979
|
+
color: cartSummary === null || cartSummary === void 0 ? void 0 : (_cartSummary$input2 = cartSummary.input) === null || _cartSummary$input2 === void 0 ? void 0 : _cartSummary$input2.color,
|
|
5980
5980
|
btn: Btn === null || Btn === void 0 ? void 0 : Btn.background,
|
|
5981
5981
|
Btncolor: Btn === null || Btn === void 0 ? void 0 : Btn.color,
|
|
5982
5982
|
retail: retail,
|
|
@@ -5998,15 +5998,15 @@ var CartSummary = function CartSummary(_ref) {
|
|
|
5998
5998
|
variant: "contained",
|
|
5999
5999
|
loading: buttonLoading
|
|
6000
6000
|
}, "apply coupon")), /*#__PURE__*/React__default.createElement(DiscountCouponContainer, {
|
|
6001
|
-
background: (_cartSummary$input3 = cartSummary.input) === null || _cartSummary$input3 === void 0 ? void 0 : _cartSummary$input3.bg,
|
|
6002
|
-
color: (_cartSummary$input4 = cartSummary.input) === null || _cartSummary$input4 === void 0 ? void 0 : _cartSummary$input4.color,
|
|
6001
|
+
background: cartSummary === null || cartSummary === void 0 ? void 0 : (_cartSummary$input3 = cartSummary.input) === null || _cartSummary$input3 === void 0 ? void 0 : _cartSummary$input3.bg,
|
|
6002
|
+
color: cartSummary === null || cartSummary === void 0 ? void 0 : (_cartSummary$input4 = cartSummary.input) === null || _cartSummary$input4 === void 0 ? void 0 : _cartSummary$input4.color,
|
|
6003
6003
|
btn: Btn === null || Btn === void 0 ? void 0 : Btn.background,
|
|
6004
6004
|
Btncolor: Btn === null || Btn === void 0 ? void 0 : Btn.color
|
|
6005
6005
|
}, discountCouponData === null || discountCouponData === void 0 ? void 0 : discountCouponData.map(function (coupon) {
|
|
6006
6006
|
var _cartSummary$input5, _cartSummary$input6;
|
|
6007
6007
|
return /*#__PURE__*/React__default.createElement(DiscountCouponCard, {
|
|
6008
|
-
background: (_cartSummary$input5 = cartSummary.input) === null || _cartSummary$input5 === void 0 ? void 0 : _cartSummary$input5.bg,
|
|
6009
|
-
color: (_cartSummary$input6 = cartSummary.input) === null || _cartSummary$input6 === void 0 ? void 0 : _cartSummary$input6.color,
|
|
6008
|
+
background: cartSummary === null || cartSummary === void 0 ? void 0 : (_cartSummary$input5 = cartSummary.input) === null || _cartSummary$input5 === void 0 ? void 0 : _cartSummary$input5.bg,
|
|
6009
|
+
color: cartSummary === null || cartSummary === void 0 ? void 0 : (_cartSummary$input6 = cartSummary.input) === null || _cartSummary$input6 === void 0 ? void 0 : _cartSummary$input6.color,
|
|
6010
6010
|
btn: Btn === null || Btn === void 0 ? void 0 : Btn.background,
|
|
6011
6011
|
Btncolor: Btn === null || Btn === void 0 ? void 0 : Btn.color
|
|
6012
6012
|
}, /*#__PURE__*/React__default.createElement("span", null, coupon === null || coupon === void 0 ? void 0 : coupon.discountName, " ", "(" + renderMoney(coupon === null || coupon === void 0 ? void 0 : coupon.amount) + ")"), /*#__PURE__*/React__default.createElement(md.MdDelete, {
|
|
@@ -7329,8 +7329,13 @@ var StaticPage = function StaticPage(_ref) {
|
|
|
7329
7329
|
}, data.mainTitle), mapSrc && /*#__PURE__*/React__default.createElement("iframe", {
|
|
7330
7330
|
width: "100%",
|
|
7331
7331
|
height: "600",
|
|
7332
|
-
|
|
7333
|
-
|
|
7332
|
+
src: mapSrc,
|
|
7333
|
+
style: {
|
|
7334
|
+
border: 0
|
|
7335
|
+
},
|
|
7336
|
+
allowfullscreen: "",
|
|
7337
|
+
loading: "lazy",
|
|
7338
|
+
referrerPolicy: "no-referrer-when-downgrade"
|
|
7334
7339
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7335
7340
|
className: "data-container",
|
|
7336
7341
|
style: {
|
|
@@ -7554,7 +7559,8 @@ var CommonCheckoutBtn = styled__default.button(_templateObject5$c || (_templateO
|
|
|
7554
7559
|
var Select = styled__default.div.attrs({
|
|
7555
7560
|
className: 'checkout-input'
|
|
7556
7561
|
})(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 54px;\n border-radius: 10px;\n background: ", ";\n outline: none;\n border: none;\n padding: 0 1em;\n cursor: pointer;\n select {\n width: 100%;\n height: 100%;\n border: none;\n outline: none;\n padding: 0.5em 0;\n color: rgba(107, 106, 106, 0.6);\n background: ", ";\n }\n"])), function (props) {
|
|
7557
|
-
|
|
7562
|
+
var _props$theme2, _props$theme2$input;
|
|
7563
|
+
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : (_props$theme2$input = _props$theme2.input) === null || _props$theme2$input === void 0 ? void 0 : _props$theme2$input.bg) || 'transparent';
|
|
7558
7564
|
}, function (props) {
|
|
7559
7565
|
return 'transparent';
|
|
7560
7566
|
});
|
|
@@ -8954,7 +8960,7 @@ var Step3 = function Step3(_ref) {
|
|
|
8954
8960
|
addNewCard = _useState6[0],
|
|
8955
8961
|
setAddNewCard = _useState6[1];
|
|
8956
8962
|
var isCard = selectedMethod === null || selectedMethod === void 0 ? void 0 : (_selectedMethod$name = selectedMethod.name) === null || _selectedMethod$name === void 0 ? void 0 : _selectedMethod$name.toLowerCase().includes('card');
|
|
8957
|
-
var storeCr = storeCredits > total ? total : storeCredits;
|
|
8963
|
+
var storeCr = storeCredits > total + ((shippingMethod === null || shippingMethod === void 0 ? void 0 : shippingMethod.amount) || 0) ? total + ((shippingMethod === null || shippingMethod === void 0 ? void 0 : shippingMethod.amount) || 0) : storeCredits;
|
|
8958
8964
|
React.useEffect(function () {
|
|
8959
8965
|
(function () {
|
|
8960
8966
|
try {
|
|
@@ -9155,7 +9161,7 @@ var Step4 = function Step4(_ref) {
|
|
|
9155
9161
|
discountCoupons === null || discountCoupons === void 0 ? void 0 : discountCoupons.forEach(function (element) {
|
|
9156
9162
|
discountTotal = discountTotal + element.amount;
|
|
9157
9163
|
});
|
|
9158
|
-
var storeCr = storeCredits > (cartData === null || cartData === void 0 ? void 0 : cartData.totalCartPrice) ? cartData === null || cartData === void 0 ? void 0 : cartData.totalCartPrice : storeCredits;
|
|
9164
|
+
var storeCr = storeCredits > (cartData === null || cartData === void 0 ? void 0 : cartData.totalCartPrice) + ((shippingMethod === null || shippingMethod === void 0 ? void 0 : shippingMethod.amount) || 0) ? (cartData === null || cartData === void 0 ? void 0 : cartData.totalCartPrice) + ((shippingMethod === null || shippingMethod === void 0 ? void 0 : shippingMethod.amount) || 0) : storeCredits;
|
|
9159
9165
|
return /*#__PURE__*/React__default.createElement(StepContainer, null, /*#__PURE__*/React__default.createElement(StepsHeaderComponent, {
|
|
9160
9166
|
text: 'Order Review',
|
|
9161
9167
|
icon: 5
|
|
@@ -9475,7 +9481,7 @@ var CheckoutPageComponent = function CheckoutPageComponent(_ref) {
|
|
|
9475
9481
|
shippingAddressIdFromStep1 = _useState[0],
|
|
9476
9482
|
setShippingAddressIdFromStep1 = _useState[1];
|
|
9477
9483
|
return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
9478
|
-
theme: styles
|
|
9484
|
+
theme: styles || {}
|
|
9479
9485
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(material.CssBaseline, null), /*#__PURE__*/React__default.createElement(CheckoutPageContainer, {
|
|
9480
9486
|
className: "checkout",
|
|
9481
9487
|
bg: styles === null || styles === void 0 ? void 0 : styles.bg
|