@salesgenterp/ui-components 0.4.114 → 0.4.115
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.css +1 -1
- package/dist/index.js +18 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -226,7 +226,7 @@ var CartDrawer = function CartDrawer(_ref) {
|
|
|
226
226
|
};
|
|
227
227
|
|
|
228
228
|
var _templateObject$2, _templateObject2$2, _templateObject3$2, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8, _templateObject9;
|
|
229
|
-
var CartPageSection = styled.section(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n background: ", ";\n max-width: 100%;\n width: fit-content;\n background: ", ";\n overflow: hidden;\n font-family: 'karla-fonts';\n border-radius: 28px;\n"])), function (props) {
|
|
229
|
+
var CartPageSection = styled.section(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n background: ", ";\n max-width: 100%;\n width: fit-content;\n background: ", ";\n overflow: hidden;\n font-family: 'karla-fonts';\n border-radius: 28px;\n background-color: grey;\n @media screen and (max-width: 1340px) {\n padding: 0 1em;\n }\n @media screen and (max-width: 640px) {\n padding: 0 1em;\n }\n"])), function (props) {
|
|
230
230
|
return props.bg;
|
|
231
231
|
}, function (props) {
|
|
232
232
|
return props.bg || '#FAE8E5';
|
|
@@ -249,11 +249,15 @@ var CartPageContainer = styled.div(_templateObject2$2 || (_templateObject2$2 = _
|
|
|
249
249
|
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) {
|
|
250
250
|
return props.retail ? 'grid' : 'flex';
|
|
251
251
|
});
|
|
252
|
-
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: 2.3em;\n margin-top: 2em;\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:
|
|
252
|
+
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: 2.3em;\n margin-top: 2em;\n\n color: ", ";\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: inherit;\n margin-top: 0.5em;\n }\n"])), function (props) {
|
|
253
|
+
return props.color || 'black';
|
|
254
|
+
});
|
|
253
255
|
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"])));
|
|
254
256
|
|
|
255
|
-
var CartTableCell = styled(material.TableCell)(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteralLoose(["\n && {\n padding-bottom: 1em !important;\n border: none !important;\n /* font-size: 0.75em; */\n font-size: 1em;\n color: rgba(98, 95, 95, 1);\n background: ", ";\n font-family: 'karla-fonts';\n }\n span {\n font-size: 0.75em;\n font-weight: 600;\n }\n"])), function (props) {
|
|
257
|
+
var CartTableCell = styled(material.TableCell)(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteralLoose(["\n && {\n padding-bottom: 1em !important;\n border: none !important;\n /* font-size: 0.75em; */\n font-size: 1em;\n color: rgba(98, 95, 95, 1);\n background: ", ";\n color: ", ";\n font-family: 'karla-fonts';\n }\n span {\n font-size: 0.75em;\n font-weight: 600;\n }\n"])), function (props) {
|
|
256
258
|
return "" + props.bg;
|
|
259
|
+
}, function (props) {
|
|
260
|
+
return "" + props.color || 'inherit';
|
|
257
261
|
});
|
|
258
262
|
var CartTableContainer = styled(material.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) {
|
|
259
263
|
return props.retail ? '12px' : '10px';
|
|
@@ -1571,7 +1575,8 @@ function EnhancedTableHead(props) {
|
|
|
1571
1575
|
zIndex: '3 !important'
|
|
1572
1576
|
},
|
|
1573
1577
|
className: (headCell === null || headCell === void 0 ? void 0 : headCell.noBelowSm) && 'CartnoBelowSm',
|
|
1574
|
-
bg: styles.bg
|
|
1578
|
+
bg: styles.bg,
|
|
1579
|
+
color: styles === null || styles === void 0 ? void 0 : styles.headingColor
|
|
1575
1580
|
}, headCell.filter ? /*#__PURE__*/React.createElement(TableSortLabel, {
|
|
1576
1581
|
active: orderBy === headCell.id,
|
|
1577
1582
|
direction: orderBy === headCell.id ? order : 'asc',
|
|
@@ -1589,7 +1594,7 @@ EnhancedTableHead.propTypes = {
|
|
|
1589
1594
|
};
|
|
1590
1595
|
|
|
1591
1596
|
function EnhancedTable(_ref) {
|
|
1592
|
-
var _styles$scroll, _styles$scroll2;
|
|
1597
|
+
var _styles$scroll, _styles$scroll2, _styles$Btn, _styles$Btn2;
|
|
1593
1598
|
var cartData = _ref.cartData,
|
|
1594
1599
|
loading = _ref.loading,
|
|
1595
1600
|
imgnotfoundUrl = _ref.imgnotfoundUrl,
|
|
@@ -1708,7 +1713,10 @@ function EnhancedTable(_ref) {
|
|
|
1708
1713
|
handleIncrementDecrement: handleIncrementDecrement,
|
|
1709
1714
|
handleRemoveProduct: handleRemoveProduct
|
|
1710
1715
|
});
|
|
1711
|
-
}))))), /*#__PURE__*/React.createElement(CartButtonsRow,
|
|
1716
|
+
}))))), /*#__PURE__*/React.createElement(CartButtonsRow, {
|
|
1717
|
+
bg: styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background,
|
|
1718
|
+
color: styles === null || styles === void 0 ? void 0 : (_styles$Btn2 = styles.Btn) === null || _styles$Btn2 === void 0 ? void 0 : _styles$Btn2.color
|
|
1719
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
1712
1720
|
onClick: function onClick() {
|
|
1713
1721
|
new Promise(function (resolve, reject) {
|
|
1714
1722
|
if (loading) return;
|
|
@@ -1807,7 +1815,7 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
|
|
|
1807
1815
|
};
|
|
1808
1816
|
|
|
1809
1817
|
var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$4;
|
|
1810
|
-
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: 20px;\n padding: 2em 3em;\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) {
|
|
1818
|
+
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: 20px;\n padding: 2em 3em;\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 @media only screen and (max-width: 1340px) {\n margin-top: 4em;\n }\n"])), function (props) {
|
|
1811
1819
|
return props.maxWidth || '26.375em';
|
|
1812
1820
|
}, function (props) {
|
|
1813
1821
|
return props.background || '#667080';
|
|
@@ -1953,7 +1961,9 @@ var CartPageComponent = function CartPageComponent(_ref) {
|
|
|
1953
1961
|
return /*#__PURE__*/React__default.createElement(CartPageSection, {
|
|
1954
1962
|
bg: styles.bg,
|
|
1955
1963
|
retail: retail
|
|
1956
|
-
}, /*#__PURE__*/React__default.createElement(CartHeading,
|
|
1964
|
+
}, /*#__PURE__*/React__default.createElement(CartHeading, {
|
|
1965
|
+
color: styles === null || styles === void 0 ? void 0 : styles.headingColor
|
|
1966
|
+
}, /*#__PURE__*/React__default.createElement("h1", null, "Shopping Cart"), /*#__PURE__*/React__default.createElement("p", null, "You have ", cartData === null || cartData === void 0 ? void 0 : cartData.totalCartQuantity, " items in your cart")), /*#__PURE__*/React__default.createElement(CartPageContainer, {
|
|
1957
1967
|
retail: retail,
|
|
1958
1968
|
loading: loading
|
|
1959
1969
|
}, retail ? /*#__PURE__*/React__default.createElement(CartPageMainRetail, {
|