@salesgenterp/ui-components 0.4.70 → 0.4.72
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 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -9
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -229,12 +229,12 @@ var CartPageContainer = styled.div(_templateObject2$2 || (_templateObject2$2 = _
|
|
|
229
229
|
var CardsBox = styled.div(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteralLoose(["\n width: 100%;\n /* min-height: 1000px; */\n position: relative;\n max-width: 860px;\n margin-right: auto;\n padding: 1em 2em;\n display: ", ";\n grid-template-columns: 1fr 1fr;\n flex-direction: column;\n align-items: flex-start;\n grid-gap: 1em;\n justify-content: flex-start;\n align-items: center;\n border-radius: 20px;\n @media only screen and (max-width: 960px) {\n display: flex;\n }\n @media only screen and (max-width: 640px) {\n padding: 1em 0.2em;\n }\n"])), function (props) {
|
|
230
230
|
return props.retail ? 'grid' : 'flex';
|
|
231
231
|
});
|
|
232
|
-
var CartHeading = styled.div(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n /* margin-bottom: 2em; */\n margin-left: 1em;\n\n h1 {\n font-weight: 600;\n font-size: 2.0375em;\n text-transform: capitalize;\n color: inherit;\n /* margin-bottom: 1em; */\n }\n p {\n font-size:
|
|
232
|
+
var CartHeading = styled.div(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n /* margin-bottom: 2em; */\n margin-left: 2em;\n margin-top: 1em;\n\n h1 {\n font-weight: 600;\n font-size: 2.0375em;\n text-transform: capitalize;\n color: inherit;\n /* margin-bottom: 1em; */\n }\n p {\n font-size: 0.875em;\n color: black;\n margin-top: 0.5em;\n }\n"])));
|
|
233
233
|
var Loader = styled.div(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 40%;\n left: 47%;\n display: grid;\n place-items: center;\n z-index: 3;\n"])));
|
|
234
234
|
var CartTableCell = styled(TableCell)(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteralLoose(["\n && {\n padding-bottom: 1em !important;\n border: none !important;\n font-size: 0.75rem;\n background: ", ";\n font-family: 'karla-fonts';\n }\n span {\n font-size: 0.75rem;\n }\n"])), function (props) {
|
|
235
235
|
return "" + props.bg;
|
|
236
236
|
});
|
|
237
|
-
var CartTableContainer = styled(TableContainer)(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteralLoose(["\n max-height: 580px;\n min-height:
|
|
237
|
+
var CartTableContainer = styled(TableContainer)(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteralLoose(["\n max-height: 580px;\n min-height: 460px;\n padding-right: 1.5em;\n\n &::-webkit-scrollbar {\n width: ", ";\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: ", ";\n background: ", ";\n border-radius: 16px;\n width: 100%;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n border-radius: 16px;\n margin: 5px 2px;\n background: ", ";\n border: 3px solid;\n border-color: #fae8e5;\n }\n @media screen and (max-width: 750px) {\n padding: 0;\n }\n"])), function (props) {
|
|
238
238
|
return props.retail ? '12px' : '10px';
|
|
239
239
|
}, function (props) {
|
|
240
240
|
return props.retail ? '#667080' : 'rgba(102, 112, 128, 0.5)';
|
|
@@ -243,7 +243,7 @@ var CartTableContainer = styled(TableContainer)(_templateObject7$1 || (_template
|
|
|
243
243
|
}, function (props) {
|
|
244
244
|
return props.color || '#ef9687';
|
|
245
245
|
});
|
|
246
|
-
var CartButtonsRow = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n button {\n background: ", ";\n color: ", ";\n padding: 0.5em 1em;\n margin-
|
|
246
|
+
var CartButtonsRow = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n padding-right: 1.85em;\n button {\n background: ", ";\n color: ", ";\n padding: 0.5em 1em;\n margin-left: 1em;\n font-size: 0.85em;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n transition: 0.4s;\n &:hover {\n transform: scale(0.9);\n }\n }\n"])), function (props) {
|
|
247
247
|
return props.bg || 'rgba(253, 0, 21, 1)';
|
|
248
248
|
}, function (props) {
|
|
249
249
|
return props.color || 'white';
|
|
@@ -1362,7 +1362,7 @@ var CartTableRow = styled(TableRow)(_templateObject3$3 || (_templateObject3$3 =
|
|
|
1362
1362
|
return props.size || '1.19rem';
|
|
1363
1363
|
});
|
|
1364
1364
|
var CartTableCell$1 = styled(TableCell)(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-family: 'karla-fonts';\n }\n"])));
|
|
1365
|
-
var QuantityBox = styled.div(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteralLoose(["\n height: 1.7em;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n div {\n /* width:30px; */\n min-height: 100%;\n aspect-ratio: 1.15/1;\n display: grid;\n place-items: center;\n font-size: 0.
|
|
1365
|
+
var QuantityBox = styled.div(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteralLoose(["\n height: 1.7em;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n div {\n /* width:30px; */\n min-height: 100%;\n aspect-ratio: 1.15/1;\n display: grid;\n place-items: center;\n font-size: 0.65em;\n color: white;\n background-color: #323232;\n cursor: pointer;\n }\n .price {\n background: transparent;\n cursor: auto;\n background: #ffffff;\n border: 1px solid #ebebeb;\n p {\n color: #5e5c5c;\n font-size: 0.685em;\n font-weight: 500;\n }\n }\n .add {\n background-color: #ebebeb;\n color: #323232;\n }\n"])));
|
|
1366
1366
|
var DeleteBtn = styled.div(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n display: grid;\n place-items: center;\n cursor: pointer;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n background: #eef1f4;\n color: #393f48;\n font-size: 0.75em;\n transition: 0.4s;\n &:hover {\n background: red;\n color: white;\n }\n"])));
|
|
1367
1367
|
|
|
1368
1368
|
var CardRow = function CardRow(_ref) {
|
|
@@ -1396,6 +1396,7 @@ var CardRow = function CardRow(_ref) {
|
|
|
1396
1396
|
background: styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background
|
|
1397
1397
|
}
|
|
1398
1398
|
}), /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
1399
|
+
size: "small",
|
|
1399
1400
|
color: "primary",
|
|
1400
1401
|
checked: isItemSelected,
|
|
1401
1402
|
inputProps: {
|
|
@@ -1432,7 +1433,11 @@ var CardRow = function CardRow(_ref) {
|
|
|
1432
1433
|
if (loading) return;
|
|
1433
1434
|
handleIncrementDecrement('decrement', row);
|
|
1434
1435
|
}
|
|
1435
|
-
}, /*#__PURE__*/React__default.createElement(AiOutlineMinus,
|
|
1436
|
+
}, /*#__PURE__*/React__default.createElement(AiOutlineMinus, {
|
|
1437
|
+
style: {
|
|
1438
|
+
fontSize: 'inherit'
|
|
1439
|
+
}
|
|
1440
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
1436
1441
|
className: "price"
|
|
1437
1442
|
}, /*#__PURE__*/React__default.createElement("p", null, row === null || row === void 0 ? void 0 : row.quantity)), /*#__PURE__*/React__default.createElement("div", {
|
|
1438
1443
|
className: "add",
|
|
@@ -1441,7 +1446,11 @@ var CardRow = function CardRow(_ref) {
|
|
|
1441
1446
|
if (loading) return;
|
|
1442
1447
|
handleIncrementDecrement('increment', row);
|
|
1443
1448
|
}
|
|
1444
|
-
}, /*#__PURE__*/React__default.createElement(AiOutlinePlus,
|
|
1449
|
+
}, /*#__PURE__*/React__default.createElement(AiOutlinePlus, {
|
|
1450
|
+
style: {
|
|
1451
|
+
fontSize: 'inherit'
|
|
1452
|
+
}
|
|
1453
|
+
})))), /*#__PURE__*/React__default.createElement(CartTableCell$1, {
|
|
1445
1454
|
alig: "center",
|
|
1446
1455
|
className: "CartnoPaddingSm"
|
|
1447
1456
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
@@ -1526,6 +1535,7 @@ function EnhancedTableHead(props) {
|
|
|
1526
1535
|
padding: "checkbox",
|
|
1527
1536
|
bg: styles.bg
|
|
1528
1537
|
}, /*#__PURE__*/createElement(Checkbox, {
|
|
1538
|
+
size: "small",
|
|
1529
1539
|
color: "primary",
|
|
1530
1540
|
indeterminate: numSelected > 0 && numSelected < rowCount,
|
|
1531
1541
|
checked: rowCount > 0 && numSelected === rowCount,
|
|
@@ -1794,7 +1804,7 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
|
|
|
1794
1804
|
};
|
|
1795
1805
|
|
|
1796
1806
|
var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$4;
|
|
1797
|
-
var CartSummaryContainer = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n width: 26.375em;\n max-width: ", ";\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n border-radius: 28px;\n padding: 2em 1em;\n align-items: center;\n margin-top: 3em
|
|
1807
|
+
var CartSummaryContainer = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n width: 26.375em;\n max-width: ", ";\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n border-radius: 28px;\n padding: 2em 1em;\n align-items: center;\n /* margin-top: 3em; */\n p {\n font-size: 1.189em;\n font-weight: 600;\n align-self: flex-start;\n color: inherit;\n margin: 0;\n padding: 0;\n }\n .continueShopping {\n font-size: 0.75em;\n color: inherit;\n text-transform: capitalize;\n height: 20px;\n border-bottom: 1px solid;\n border-color: ", ";\n font-weight: 300;\n cursor: pointer;\n }\n"])), function (props) {
|
|
1798
1808
|
return props.maxWidth || '26.375em';
|
|
1799
1809
|
}, function (props) {
|
|
1800
1810
|
return props.background || '#667080';
|
|
@@ -1830,7 +1840,7 @@ var CartSummaryInputBox = styled.form(_templateObject4$4 || (_templateObject4$4
|
|
|
1830
1840
|
}, function (props) {
|
|
1831
1841
|
return props.Btncolor || 'inherit';
|
|
1832
1842
|
});
|
|
1833
|
-
var CartSummaryCheckoutBtn = styled.button(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n font-size: 0.95em;\n font-weight: 700;\n background: ", ";\n color: ", ";\n cursor: pointer;\n text-transform: uppercase;\n border: none;\n outline: none;\n width: 16.81em;\n height: 3.
|
|
1843
|
+
var CartSummaryCheckoutBtn = styled.button(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n font-size: 0.95em;\n font-weight: 700;\n background: ", ";\n color: ", ";\n cursor: pointer;\n text-transform: uppercase;\n border: none;\n outline: none;\n width: 16.81em;\n height: 3.4em;\n display: grid;\n place-items: center;\n font-size: 0.75em;\n border-radius: ", ";\n padding: 0;\n font-family: 'karla-fonts';\n font-size: 0.94em;\n margin: 1em auto;\n transition: 0.3s;\n margin-top: 2em;\n &:hover {\n opacity: 0.8;\n }\n"])), function (props) {
|
|
1834
1844
|
return props.background || '#393f48';
|
|
1835
1845
|
}, function (props) {
|
|
1836
1846
|
return props.color || 'inherit';
|
|
@@ -1861,7 +1871,7 @@ var CartSummary = function CartSummary(_ref) {
|
|
|
1861
1871
|
return /*#__PURE__*/React__default.createElement(CartSummaryContainer, {
|
|
1862
1872
|
background: cartSummary.bg,
|
|
1863
1873
|
color: cartSummary.color
|
|
1864
|
-
}, /*#__PURE__*/React__default.createElement("p", null, "Cart summary"), /*#__PURE__*/React__default.createElement(CartSummaryHr, {
|
|
1874
|
+
}, /*#__PURE__*/React__default.createElement("p", null, "Cart summary:"), /*#__PURE__*/React__default.createElement(CartSummaryHr, {
|
|
1865
1875
|
color: cartSummary.hr
|
|
1866
1876
|
}), /*#__PURE__*/React__default.createElement(CartSummaryRow, null, /*#__PURE__*/React__default.createElement("h6", null, "subtotal"), /*#__PURE__*/React__default.createElement("h5", null, "$", subtotal === null || subtotal === void 0 ? void 0 : subtotal.toFixed(2))), /*#__PURE__*/React__default.createElement(CartSummaryHr, {
|
|
1867
1877
|
color: cartSummary.hr
|