@salesgenterp/ui-components 0.4.143 → 0.4.144

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
@@ -5991,7 +5991,7 @@ var ModalContainer = styled(material.Dialog)(_templateObject$m || (_templateObje
5991
5991
  return props.secondaryColor;
5992
5992
  });
5993
5993
 
5994
- var _templateObject$n, _templateObject2$f, _templateObject3$d, _templateObject4$a;
5994
+ var _templateObject$n, _templateObject2$f, _templateObject3$d, _templateObject4$a, _templateObject5$9;
5995
5995
  var StoreDetails = function StoreDetails(_ref) {
5996
5996
  var apiEndPoint = _ref.apiEndPoint,
5997
5997
  token = _ref.token,
@@ -6168,7 +6168,11 @@ var StoreDetails = function StoreDetails(_ref) {
6168
6168
  style: {
6169
6169
  display: 'flex'
6170
6170
  }
6171
- }, /*#__PURE__*/React__default.createElement(md.MdStore, null), /*#__PURE__*/React__default.createElement("h3", null, "Address " + (index + 1)))), /*#__PURE__*/React__default.createElement(material.Grid, {
6171
+ }, /*#__PURE__*/React__default.createElement(md.MdStore, {
6172
+ style: {
6173
+ margin: 'auto'
6174
+ }
6175
+ }), /*#__PURE__*/React__default.createElement("h3", null, "Address " + (index + 1)))), /*#__PURE__*/React__default.createElement(material.Grid, {
6172
6176
  item: true
6173
6177
  }, /*#__PURE__*/React__default.createElement(material.IconButton, {
6174
6178
  style: {
@@ -6181,10 +6185,12 @@ var StoreDetails = function StoreDetails(_ref) {
6181
6185
  });
6182
6186
  }
6183
6187
  }, /*#__PURE__*/React__default.createElement(md.MdModeEdit, null))))
6184
- }), /*#__PURE__*/React__default.createElement(material.CardContent, null, (address === null || address === void 0 ? void 0 : address.address1) && /*#__PURE__*/React__default.createElement("p", null, address === null || address === void 0 ? void 0 : address.address1), (address === null || address === void 0 ? void 0 : address.address2) && /*#__PURE__*/React__default.createElement("p", null, address === null || address === void 0 ? void 0 : address.address2), ((address === null || address === void 0 ? void 0 : address.city) || (address === null || address === void 0 ? void 0 : address.state)) && /*#__PURE__*/React__default.createElement("p", null, (address === null || address === void 0 ? void 0 : address.city) + (address === null || address === void 0 ? void 0 : address.state)), (address === null || address === void 0 ? void 0 : address.country) && /*#__PURE__*/React__default.createElement("p", null, address === null || address === void 0 ? void 0 : address.country), (address === null || address === void 0 ? void 0 : address.defaultBillingAddress) && /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement("span", null, "Default billing address")), (address === null || address === void 0 ? void 0 : address.defaultShippingAddress) && /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement("span", null, "Default shipping address")), /*#__PURE__*/React__default.createElement("p", null, address === null || address === void 0 ? void 0 : address.phone))));
6188
+ }), /*#__PURE__*/React__default.createElement(material.CardContent, null, /*#__PURE__*/React__default.createElement(AddressCardContainer, {
6189
+ primaryColor: primaryColor
6190
+ }, (address === null || address === void 0 ? void 0 : address.address1) && /*#__PURE__*/React__default.createElement("p", null, address === null || address === void 0 ? void 0 : address.address1), (address === null || address === void 0 ? void 0 : address.address2) && /*#__PURE__*/React__default.createElement("p", null, address === null || address === void 0 ? void 0 : address.address2), ((address === null || address === void 0 ? void 0 : address.city) || (address === null || address === void 0 ? void 0 : address.state)) && /*#__PURE__*/React__default.createElement("p", null, (address === null || address === void 0 ? void 0 : address.city) + (address === null || address === void 0 ? void 0 : address.state)), (address === null || address === void 0 ? void 0 : address.country) && /*#__PURE__*/React__default.createElement("p", null, address === null || address === void 0 ? void 0 : address.country), /*#__PURE__*/React__default.createElement("p", null, address === null || address === void 0 ? void 0 : address.phone), (address === null || address === void 0 ? void 0 : address.defaultBillingAddress) && /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement("span", null, "Default billing address")), (address === null || address === void 0 ? void 0 : address.defaultShippingAddress) && /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement("span", null, "Default shipping address"))))));
6185
6191
  })));
6186
6192
  };
6187
- var AddressContainer = styled(material.Card)(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n border-radius: 12px !important;\n background-color: ", " !important;\n box-shadow: 0px 0px 4px 0px !important;\n // font-family: Poppins !important;\n .MuiCardHeader-root {\n background-color: ", ";\n svg,\n h3 {\n color: #fff;\n font-size: 1.5rem;\n }\n h3 {\n font-weight: 600;\n margin-left: 6px;\n }\n }\n p {\n font-size: 0.9rem;\n font-weight: 400;\n color: ", ";\n margin-bottom: 1rem;\n word-break: break-word;\n }\n"])), function (props) {
6193
+ var AddressContainer = styled(material.Card)(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n border-radius: 12px !important;\n background-color: ", " !important;\n box-shadow: 0px 0px 4px 0px !important;\n // font-family: Poppins !important;\n .MuiCardHeader-root {\n background-color: ", ";\n padding: 4px 14px;\n svg,\n h3 {\n color: #fff;\n font-size: 1.3rem;\n }\n h3 {\n font-weight: 500;\n margin-left: 6px;\n }\n }\n p {\n font-size: 0.9rem;\n font-weight: 400;\n color: ", ";\n margin-bottom: 1rem;\n word-break: break-word;\n }\n"])), function (props) {
6188
6194
  return props.secondaryColor;
6189
6195
  }, function (props) {
6190
6196
  return props.primaryColor;
@@ -6196,6 +6202,9 @@ var TypographyContainer$2 = styled(material.Typography)(_templateObject3$d || (_
6196
6202
  return props.fontColor;
6197
6203
  });
6198
6204
  var HeaderContainer$2 = styled.div(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 1.3rem 0;\n"])));
6205
+ var AddressCardContainer = styled.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n p {\n font-size: 1.1rem;\n margin-bottom: 0.3rem;\n span {\n color: ", ";\n font-size: 1.1rem;\n }\n }\n"])), function (props) {
6206
+ return props.primaryColor;
6207
+ });
6199
6208
 
6200
6209
  var StoreManager = function StoreManager(_ref) {
6201
6210
  var _storeData$managerDet;
@@ -6394,7 +6403,7 @@ var StoreTabs = function StoreTabs(_ref) {
6394
6403
  fontColor: fontColor
6395
6404
  })))));
6396
6405
  };
6397
- var TabsContainer = styled(material.Tabs)(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n button {\n color: ", " !important;\n }\n .Mui-selected {\n color: ", " !important;\n }\n .MuiTabs-indicator {\n background-color: ", " !important;\n }\n"])), function (props) {
6406
+ var TabsContainer = styled(material.Tabs)(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n button {\n color: ", " !important;\n font-size: 1.1rem;\n }\n .Mui-selected {\n color: ", " !important;\n }\n .MuiTabs-indicator {\n background-color: ", " !important;\n }\n"])), function (props) {
6398
6407
  return props.fontColor;
6399
6408
  }, function (props) {
6400
6409
  return props.primaryColor;
@@ -6465,11 +6474,12 @@ var StoreList = function StoreList(_ref) {
6465
6474
  setSelectedStore(null);
6466
6475
  },
6467
6476
  style: {
6468
- color: fontColor
6477
+ color: fontColor,
6478
+ marginRight: 6
6469
6479
  }
6470
6480
  }, /*#__PURE__*/React__default.createElement(md.MdKeyboardArrowLeft, {
6471
6481
  style: {
6472
- fontSize: 16,
6482
+ fontSize: 24,
6473
6483
  color: fontColor
6474
6484
  }
6475
6485
  }), "Back"), /*#__PURE__*/React__default.createElement(TypographyContainer$3, {