@salesgenterp/ui-components 0.4.185 → 0.4.186

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 CHANGED
@@ -94,7 +94,7 @@ function _taggedTemplateLiteralLoose(strings, raw) {
94
94
  }
95
95
 
96
96
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
97
- var CartDrawerContainer = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: ", ";\n height: 100%;\n font-family: ", ";\n /* padding: 1em;\n padding-top: 0rem; */\n position: relative;\n /* min-width: 100%; */\n min-height: 100vh;\n max-height: 100vh;\n overflow-y: auto;\n background-color: grey;\n display: flex;\n flex-direction: column;\n /* border: 1px solid; */\n"])), function (props) {
97
+ var CartDrawerContainer = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: ", ";\n height: 100%;\n font-family: ", ";\n /* padding: 1em;\n padding-top: 0rem; */\n position: relative;\n /* min-width: 100%; */\n min-height: 100vh;\n max-height: 100vh;\n overflow-y: auto;\n\n display: flex;\n flex-direction: column;\n /* border: 1px solid; */\n"])), function (props) {
98
98
  return props.maxWidth || '650px';
99
99
  }, function (props) {
100
100
  return props.fontFamily;
@@ -103,7 +103,7 @@ var CartDrawerBar = styled__default.div(_templateObject2 || (_templateObject2 =
103
103
  var CartDrawerProductContainer = styled__default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: max-content;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n position: relative;\n /* height: 900px; */\n padding: 1rem;\n min-height: 74vh;\n opacity: ", ";\n @media only screen and (max-width: 748px) {\n min-height: 75vh;\n }\n /* background-color: red; */\n"])), function (props) {
104
104
  return props.opacity;
105
105
  });
106
- var CartDrawerBottomSection = styled__default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n width: 100%;\n /* height: 8rem; */\n background-color: white;\n box-shadow: 3px -2px 10px #b1b1b1;\n display: flex;\n flex-direction: column;\n min-height: 7rem;\n position: sticky;\n bottom: 0;\n margin-top:auto;\n /* padding-bottom: 0.5rem; */\n\n /* left: 0; */\n align-items: center;\n .row {\n width: 100%;\n padding: 0rem 1rem;\n padding-top: 1rem;\n /* padding-left: 1rem; */\n h5 {\n font-weight: bold;\n font-size: 1.1rem;\n span {\n font-weight: 400;\n padding-left: 0.5rem;\n }\n }\n }\n @media only screen and (max-width: 340px) {\n min-height: 6rem;\n .row h5 {\n font-size: 0.8rem;\n }\n }\n"])));
106
+ var CartDrawerBottomSection = styled__default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n width: 100%;\n /* height: 8rem; */\n background-color: white;\n box-shadow: 3px -2px 10px #b1b1b1;\n display: flex;\n flex-direction: column;\n min-height: 7rem;\n position: sticky;\n bottom: 0;\n margin-top: auto;\n /* padding-bottom: 0.5rem; */\n\n /* left: 0; */\n align-items: center;\n .row {\n width: 100%;\n padding: 0rem 1rem;\n padding-top: 1rem;\n /* padding-left: 1rem; */\n h5 {\n font-weight: bold;\n font-size: 1.1rem;\n span {\n font-weight: 400;\n padding-left: 0.5rem;\n }\n }\n }\n @media only screen and (max-width: 340px) {\n min-height: 6rem;\n .row h5 {\n font-size: 0.8rem;\n }\n }\n"])));
107
107
  var CartDrawerOutlinedButton = styled__default.button(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n width: 90%;\n height: 3.55rem;\n border: 2px solid;\n border-radius: 1rem;\n display: grid;\n place-items: center;\n font-weight: 500;\n font-size: 1rem;\n transition: 0.5s;\n outline: none;\n text-transform: capitalize;\n border-color: ", ";\n color: ", ";\n text-transform: capitalize;\n margin: 0.6rem 0;\n cursor: pointer;\n background: white;\n &:hover,\n &:focus {\n opacity: 0.8;\n letter-spacing: 1px;\n outline: none;\n }\n @media only screen and (max-width: 640px) {\n height: 2.9rem;\n }\n @media only screen and (max-width: 340px) {\n height: 2.2rem;\n margin: 0.3rem 0;\n }\n"])), function (props) {
108
108
  return props.color || 'black';
109
109
  }, function (props) {
@@ -1621,7 +1621,7 @@ EnhancedTableHead.propTypes = {
1621
1621
  };
1622
1622
 
1623
1623
  function EnhancedTable(_ref) {
1624
- var _styles$scroll, _styles$scroll2, _styles$Btn, _styles$Btn2;
1624
+ var _styles$scroll, _styles$scroll2, _styles$cartSummary4, _styles$Btn;
1625
1625
  var cartData = _ref.cartData,
1626
1626
  loading = _ref.loading,
1627
1627
  imgnotfoundUrl = _ref.imgnotfoundUrl,
@@ -1737,8 +1737,8 @@ function EnhancedTable(_ref) {
1737
1737
  handleRemoveProduct: handleRemoveProduct
1738
1738
  });
1739
1739
  }))))), /*#__PURE__*/React.createElement(CartButtonsRow, {
1740
- bg: styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background,
1741
- color: styles === null || styles === void 0 ? void 0 : (_styles$Btn2 = styles.Btn) === null || _styles$Btn2 === void 0 ? void 0 : _styles$Btn2.color
1740
+ bg: styles === null || styles === void 0 ? void 0 : (_styles$cartSummary4 = styles.cartSummary) === null || _styles$cartSummary4 === void 0 ? void 0 : _styles$cartSummary4.bg,
1741
+ color: styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.color
1742
1742
  }, /*#__PURE__*/React.createElement("button", {
1743
1743
  onClick: function onClick() {
1744
1744
  new Promise(function (resolve, reject) {