@salesgenterp/ui-components 0.4.169 → 0.4.171

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
@@ -1399,7 +1399,7 @@ var CartTableCell$1 = styled__default(material.TableCell)(_templateObject4$2 ||
1399
1399
  var QuantityBox = styled__default.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"])));
1400
1400
  var DeleteBtn = styled__default.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"])));
1401
1401
  var CardRow = function CardRow(_ref) {
1402
- var _styles$price, _styles$Btn, _row$standardPrice, _row$subtotal;
1402
+ var _styles$price, _styles$Btn, _styles$cartSummary, _styles$cartSummary2, _row$standardPrice, _row$subtotal;
1403
1403
  var row = _ref.row,
1404
1404
  isItemSelected = _ref.isItemSelected,
1405
1405
  handleClick = _ref.handleClick,
@@ -1425,7 +1425,7 @@ var CardRow = function CardRow(_ref) {
1425
1425
  }, /*#__PURE__*/React__default.createElement("span", {
1426
1426
  className: "borderLeft",
1427
1427
  style: {
1428
- background: styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background
1428
+ background: (styles === null || styles === void 0 ? void 0 : styles.borderLeft) || (styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background)
1429
1429
  }
1430
1430
  }), /*#__PURE__*/React__default.createElement(material.Checkbox, {
1431
1431
  size: "small",
@@ -1434,7 +1434,14 @@ var CardRow = function CardRow(_ref) {
1434
1434
  inputProps: {
1435
1435
  'aria-labelledby': 'product'
1436
1436
  },
1437
- className: "cartCheckBox"
1437
+ className: "cartCheckBox",
1438
+ sx: _extends({}, (styles === null || styles === void 0 ? void 0 : (_styles$cartSummary = styles.cartSummary) === null || _styles$cartSummary === void 0 ? void 0 : _styles$cartSummary.bg) && {
1439
+ '&.Mui-checked': {
1440
+ svg: {
1441
+ color: styles === null || styles === void 0 ? void 0 : (_styles$cartSummary2 = styles.cartSummary) === null || _styles$cartSummary2 === void 0 ? void 0 : _styles$cartSummary2.bg
1442
+ }
1443
+ }
1444
+ })
1438
1445
  })), /*#__PURE__*/React__default.createElement(CartTableCell$1, {
1439
1446
  className: "CartnoPaddingSm"
1440
1447
  }, /*#__PURE__*/React__default.createElement(ProductImage, {
@@ -1542,6 +1549,7 @@ var headCells = [{
1542
1549
  }];
1543
1550
 
1544
1551
  function EnhancedTableHead(props) {
1552
+ var _styles$cartSummary, _styles$cartSummary2;
1545
1553
  var onSelectAllClick = props.onSelectAllClick,
1546
1554
  order = props.order,
1547
1555
  orderBy = props.orderBy,
@@ -1570,17 +1578,26 @@ function EnhancedTableHead(props) {
1570
1578
  onChange: onSelectAllClick,
1571
1579
  inputProps: {
1572
1580
  'aria-label': 'select all products'
1573
- }
1581
+ },
1582
+ sx: _extends({}, (styles === null || styles === void 0 ? void 0 : (_styles$cartSummary = styles.cartSummary) === null || _styles$cartSummary === void 0 ? void 0 : _styles$cartSummary.color) && {
1583
+ svg: {
1584
+ color: styles === null || styles === void 0 ? void 0 : (_styles$cartSummary2 = styles.cartSummary) === null || _styles$cartSummary2 === void 0 ? void 0 : _styles$cartSummary2.color
1585
+ }
1586
+ })
1574
1587
  })), headCells.map(function (headCell) {
1575
1588
  return /*#__PURE__*/React.createElement(CartTableCell, {
1576
1589
  key: headCell.id,
1577
1590
  align: headCell.numeric ? 'center' : 'left',
1578
1591
  padding: headCell.disablePadding ? 'none' : 'normal',
1579
1592
  sortDirection: orderBy === headCell.id ? order : false,
1580
- sx: {
1593
+ sx: _extends({
1581
1594
  textTransform: 'uppercase',
1582
1595
  zIndex: '3 !important'
1583
- },
1596
+ }, (styles === null || styles === void 0 ? void 0 : styles.headingColor) && {
1597
+ svg: {
1598
+ color: styles === null || styles === void 0 ? void 0 : styles.headingColor
1599
+ }
1600
+ }),
1584
1601
  className: (headCell === null || headCell === void 0 ? void 0 : headCell.noBelowSm) && 'CartnoBelowSm',
1585
1602
  bg: styles.bg,
1586
1603
  color: styles === null || styles === void 0 ? void 0 : styles.headingColor
@@ -3699,7 +3716,7 @@ var getRandomString = function getRandomString(length) {
3699
3716
  return text;
3700
3717
  };
3701
3718
  var currentTimeText = function currentTimeText() {
3702
- var data = [[0, 4, 'Good night'], [5, 11, 'Good morning'], [12, 16, 'Good afternoon'], [17, 19, 'Good evening'], [20, 24, 'Good night']];
3719
+ var data = [[0, 4, 'Good Night'], [5, 11, 'Good Morning'], [12, 16, 'Good Afternoon'], [17, 19, 'Good Evening'], [20, 24, 'Good Night']];
3703
3720
  var hr = new Date().getHours();
3704
3721
  var text = '';
3705
3722
  for (var i = 0; i < data.length; i++) {
@@ -7082,7 +7099,7 @@ var AccountDetails = function AccountDetails(_ref) {
7082
7099
  var _ref$apiEndPoint = _ref.apiEndPoint,
7083
7100
  apiEndPoint = _ref$apiEndPoint === void 0 ? 'https://dev.salesgent.xyz/api' : _ref$apiEndPoint,
7084
7101
  _ref$token = _ref.token,
7085
- token = _ref$token === void 0 ? 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJzYWxlc2dlbnRlcnBAZ21haWwuY29tIiwidGllciI6MiwidXNlclR5cGUiOiJDdXN0b21lciIsInRva2VuVHlwZSI6ImFjY2VzcyIsInN0b3JlSWQiOjIsImV4cCI6MTY2ODgwNDM2NywidXNlcklkIjoyNDU1LCJpYXQiOjE2Njg3NjgzNjcsInJlc2V0UGFzc3dvcmRSZXF1aXJlZCI6ZmFsc2V9.sTXu_hUvO4DVsqi1gt_INjqNLm3ZTgD4T4T9m9wQmuE' : _ref$token,
7102
+ token = _ref$token === void 0 ? 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJzYWxlc2dlbnRlcnBAZ21haWwuY29tIiwidGllciI6MiwidXNlclR5cGUiOiJDdXN0b21lciIsInRva2VuVHlwZSI6ImFjY2VzcyIsInN0b3JlSWQiOjIsImV4cCI6MTY2ODg4MzIzMCwidXNlcklkIjoyNDU1LCJpYXQiOjE2Njg4NDcyMzAsInJlc2V0UGFzc3dvcmRSZXF1aXJlZCI6ZmFsc2V9.bQgcmeiO6357iE5VSZ032bwIa3fDhgfYkHo5e6zmjWQ' : _ref$token,
7086
7103
  _ref$primaryColor = _ref.primaryColor,
7087
7104
  primaryColor = _ref$primaryColor === void 0 ? '#D2122E' : _ref$primaryColor,
7088
7105
  secondaryColor = _ref.secondaryColor,