@salesgenterp/ui-components 0.4.301 → 0.4.302

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
@@ -4454,7 +4454,7 @@ var CartTableContainer = styled__default(material.TableContainer)(_templateObjec
4454
4454
  return props.color;
4455
4455
  });
4456
4456
  var CartButtonsRow = styled__default.div(_templateObject8$3 || (_templateObject8$3 = _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) {
4457
- return props.bg || 'rgba(253, 0, 21, 1)';
4457
+ return props.bg || 'rgba(107, 106, 106, 1)';
4458
4458
  }, function (props) {
4459
4459
  return props.color || 'white';
4460
4460
  });
@@ -7531,7 +7531,7 @@ var CartTableContainer$1 = styled__default(material.TableContainer)(_templateObj
7531
7531
  return props.color || 'red';
7532
7532
  });
7533
7533
  var CartButtonsRow$1 = styled__default.div(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding-right: 1.85em;\n button {\n display: flex;\n align-items: center;\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 font-size: 1rem;\n font-weight: 600;\n svg {\n margin-right: 0.4rem;\n }\n &:hover {\n transform: scale(0.95);\n }\n }\n"])), function (props) {
7534
- return props.bg || 'rgba(253, 0, 21, 1)';
7534
+ return props.bg || 'rgba(107, 106, 106, 1)';
7535
7535
  }, function (props) {
7536
7536
  return props.color || 'white';
7537
7537
  });
@@ -8200,7 +8200,7 @@ var _templateObject$H, _templateObject2$u, _templateObject3$k, _templateObject4$
8200
8200
  var CheckoutRootContainer = styled__default.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 4rem;\n background-color: ", ";\n font-size: 16px;\n\n div,\n button,\n span {\n font-size: 16px;\n }\n @media only screen and (max-width: 1620px) {\n padding: 3em 0.5em;\n }\n @media screen and (max-width: 840px) {\n div,\n button,\n span {\n font-size: 12px;\n }\n padding: 2rem 0.5rem;\n }\n"])), function (props) {
8201
8201
  return props.bg;
8202
8202
  });
8203
- var CheckoutPageContainer = styled__default.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: ", ";\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n background-color: ", ";\n margin: 0 auto;\n padding: 2.375em 3.5em 2.5em 4.5em;\n padding-left: min(4.5em, 2.5vw);\n color: rgba(50, 50, 50, 1);\n /* max-height: 90vh; */\n overflow: hidden;\n /* background: gainsboro; */\n border-radius: 28px;\n /* background-color: #fff8f6; */\n @media only screen and (max-width: 1508px) {\n flex-direction: column;\n align-items: center;\n max-height: max-content;\n }\n @media only screen and (max-width: 788px) {\n padding: 1em 0.5em;\n }\n .icon {\n font-size: 12px;\n }\n ////////////checkout and cart fonts\n /////////////////\n /* /////remove arrows from number input */\n /* Chrome, Safari, Edge, Opera */\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n input[type='number'] {\n -moz-appearance: textfield;\n }\n\n /* //////mui inputs */\n\n .checkout .MuiOutlinedInput-notchedOutline,\n .checkout .css-1d3z3hw-MuiOutlinedInput-notchedOutline {\n border: none !important;\n outline: none !important;\n }\n /* ////checkbox */\n .checkout .Mui-checked {\n color: #060606 !important;\n }\n\n /* //////select inputs */\n // .checkout .MuiInputLabel-formControl,\n // .checkout .Mui-focused {\n // color: grey !important;\n // font-size: 0.875em;\n // }\n .checkout .MuiInputBase-root .checkout .MuiOutlinedInput-root,\n .checkout .MuiInputBase-colorPrimary,\n .checkout .MuiInputBase-fullWidth,\n .checkout .MuiInputBase-formControl,\n .checkout .css-md26zr-MuiInputBase-root-MuiOutlinedInput-root {\n border-radius: 10px;\n }\n // /* /////stepper length */\n .checkout .MuiStepConnector-line,\n .MuiStepConnector-lineVertical {\n min-height: 60px !important;\n }\n\n @media only screen and (max-width: 640px) {\n .checkout .MuiStepConnector-line,\n .MuiStepConnector-lineVertical {\n min-height: 40px !important;\n }\n }\n"])), function (props) {
8203
+ var CheckoutPageContainer = styled__default.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: ", ";\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n background-color: ", ";\n margin: 0 auto;\n padding: 2.375em 3.5em 2.5em 4.5em;\n padding-left: min(4.5em, 2.5vw);\n color: rgba(50, 50, 50, 1);\n /* max-height: 90vh; */\n overflow: hidden;\n /* background: gainsboro; */\n border-radius: 28px;\n /* background-color: #fff8f6; */\n @media only screen and (max-width: 1508px) {\n flex-direction: column;\n align-items: center;\n max-height: max-content;\n }\n @media only screen and (max-width: 788px) {\n padding: 1em 0.5em;\n }\n .icon {\n font-size: 12px;\n }\n ////////////checkout and cart fonts\n /////////////////\n /* /////remove arrows from number input */\n /* Chrome, Safari, Edge, Opera */\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n input[type='number'] {\n -moz-appearance: textfield;\n }\n\n /* //////mui inputs */\n\n .MuiOutlinedInput-notchedOutline {\n border: none;\n outline: none;\n }\n\n .MuiInputBase-root .MuiOutlinedInput-root,\n .MuiInputBase-colorPrimary,\n .MuiInputBase-fullWidth,\n .MuiInputBase-formControl {\n border-radius: 10px;\n }\n"])), function (props) {
8204
8204
  return props.maxWidth || '1605px';
8205
8205
  }, function (props) {
8206
8206
  return props.bg || '#fff8f6';
@@ -8347,7 +8347,7 @@ var CheckBoxRow = styled__default.div(_templateObject9$5 || (_templateObject9$5
8347
8347
  }, function (props) {
8348
8348
  return props.marginLeft;
8349
8349
  }, function (props) {
8350
- return props.bg || 'rgba(253, 0, 21, 1)';
8350
+ return props.bg || 'rgba(107, 106, 106, 1)';
8351
8351
  }, function (props) {
8352
8352
  return props.bg ? material.alpha(props.bg, 0.6) : 'rgba(107, 106, 106, 1)';
8353
8353
  }, function (prop) {
@@ -8390,7 +8390,7 @@ var StyledTableCell = styled__default(material.TableCell)(_templateObject17$1 ||
8390
8390
  return props.noSmall ? 'none' : '';
8391
8391
  });
8392
8392
  var BottomGrid = styled__default(material.Grid)(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n .bold {\n font-weight: 600;\n text-transform: capitalize;\n margin: 1em 0;\n font-size: 1em;\n }\n .icon {\n font-size: 1.6em;\n color: ", ";\n }\n textarea {\n width: 100%;\n resize: none;\n border: 1px solid\n ", ";\n border-radius: 4px;\n margin-bottom: 2em;\n padding: 1em;\n background: ", ";\n }\n p {\n font-size: 12px;\n .ul {\n text-decoration: underline;\n font-size: inherit;\n }\n }\n .bottom {\n margin-left: 3em;\n font-style: italic;\n span {\n font-weight: 600;\n color: ", ";\n\n cursor: pointer;\n &:hover {\n text-decoration: underline;\n }\n }\n }\n"])), function (prop) {
8393
- return prop.primaryColor || 'rgba(253, 0, 21, 1)';
8393
+ return prop.primaryColor || 'rgba(107, 106, 106, 1)';
8394
8394
  }, function (prop) {
8395
8395
  var _prop$bgTextArea;
8396
8396
  return ((_prop$bgTextArea = prop.bgTextArea) === null || _prop$bgTextArea === void 0 ? void 0 : _prop$bgTextArea.border) || 'rgba(253, 0, 21, 0.5)';
@@ -8398,7 +8398,7 @@ var BottomGrid = styled__default(material.Grid)(_templateObject18$1 || (_templat
8398
8398
  var _prop$bgTextArea2;
8399
8399
  return ((_prop$bgTextArea2 = prop.bgTextArea) === null || _prop$bgTextArea2 === void 0 ? void 0 : _prop$bgTextArea2.bg) || '#fff8f6';
8400
8400
  }, function (props) {
8401
- return props.primaryColor || 'rgba(253, 0, 21, 1)';
8401
+ return props.primaryColor || 'rgba(107, 106, 106, 1)';
8402
8402
  });
8403
8403
 
8404
8404
  var CheckoutInput = function CheckoutInput(_ref) {
@@ -8742,7 +8742,7 @@ var AddressForm = function AddressForm(_ref) {
8742
8742
  };
8743
8743
 
8744
8744
  var Step1 = function Step1(_ref) {
8745
- var _customer$customerDto, _addressList, _addressList$, _styles$input, _addressList4, _styles$input2, _addressList5, _styles$button, _styles$button2;
8745
+ var _customer$customerDto, _addressList, _addressList$, _styles$input, _addressList4, _styles$input2, _addressList5, _styles$button, _styles$button2, _styles$button3, _styles$button4;
8746
8746
  var handleNext = _ref.handleNext,
8747
8747
  setShipping = _ref.setShipping,
8748
8748
  setBilling = _ref.setBilling,
@@ -8842,7 +8842,8 @@ var Step1 = function Step1(_ref) {
8842
8842
  }, /*#__PURE__*/React__default.createElement(CheckBoxRow, {
8843
8843
  onClick: function onClick() {
8844
8844
  setShowShipping(false);
8845
- }
8845
+ },
8846
+ bg: styles === null || styles === void 0 ? void 0 : (_styles$button2 = styles.button) === null || _styles$button2 === void 0 ? void 0 : _styles$button2.bg
8846
8847
  }, /*#__PURE__*/React__default.createElement(material.Checkbox, {
8847
8848
  checked: !showShipping,
8848
8849
  icon: /*#__PURE__*/React__default.createElement(md.MdOutlineCircle, null),
@@ -8851,13 +8852,14 @@ var Step1 = function Step1(_ref) {
8851
8852
  padding: '0 0 1em 0',
8852
8853
  onClick: function onClick() {
8853
8854
  setShowShipping(true);
8854
- }
8855
+ },
8856
+ bg: styles === null || styles === void 0 ? void 0 : (_styles$button3 = styles.button) === null || _styles$button3 === void 0 ? void 0 : _styles$button3.bg
8855
8857
  }, /*#__PURE__*/React__default.createElement(material.Checkbox, {
8856
8858
  checked: showShipping,
8857
8859
  icon: /*#__PURE__*/React__default.createElement(md.MdOutlineCircle, null),
8858
8860
  checkedIcon: /*#__PURE__*/React__default.createElement(gr.GrRadialSelected, null)
8859
8861
  }), /*#__PURE__*/React__default.createElement("p", null, "Ship to a different address ")), /*#__PURE__*/React__default.createElement(ButtonRow, {
8860
- color: styles === null || styles === void 0 ? void 0 : (_styles$button2 = styles.button) === null || _styles$button2 === void 0 ? void 0 : _styles$button2.bg,
8862
+ color: styles === null || styles === void 0 ? void 0 : (_styles$button4 = styles.button) === null || _styles$button4 === void 0 ? void 0 : _styles$button4.bg,
8861
8863
  backDisabled: true,
8862
8864
  handleNext: function handleNext() {
8863
8865
  next();