@salesgenterp/ui-components 0.4.131 → 0.4.132

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
@@ -4053,7 +4053,7 @@ var LoaderContainer = styled.div(_templateObject$9 || (_templateObject$9 = _tagg
4053
4053
  var _templateObject$a, _templateObject2$9, _templateObject3$9, _templateObject4$7, _templateObject5$7, _templateObject6$7;
4054
4054
  var _excluded = ["apiData", "columns", "listUpdate", "onDataLoad", "expandedRowRender", "onDataLoadError", "pagination", "extraFilterParams", "setExtraFilterParams", "cacheFilters", "tableId", "asyncService", "tableDataList", "filterData"];
4055
4055
  var APITable = React.forwardRef(function (_ref, ref) {
4056
- var _tableData$data, _tableData$data2, _tableData$pagination, _tableData$pagination2, _tableData$pagination3;
4056
+ var _tableData$data, _tableData$data2, _tableData$pagination, _tableData$data3, _tableData$pagination2, _tableData$pagination3;
4057
4057
  var apiData = _ref.apiData,
4058
4058
  columns = _ref.columns,
4059
4059
  listUpdate = _ref.listUpdate,
@@ -4261,7 +4261,7 @@ var APITable = React.forwardRef(function (_ref, ref) {
4261
4261
  }, /*#__PURE__*/React__default.createElement(Loader$1, null)))), /*#__PURE__*/React__default.createElement(TablePaginationContainer, _extends({
4262
4262
  rowsPerPageOptions: [10, 20, 50, 100],
4263
4263
  component: "div",
4264
- count: tableData === null || tableData === void 0 ? void 0 : (_tableData$pagination = tableData.pagination) === null || _tableData$pagination === void 0 ? void 0 : _tableData$pagination.total,
4264
+ count: (tableData === null || tableData === void 0 ? void 0 : (_tableData$pagination = tableData.pagination) === null || _tableData$pagination === void 0 ? void 0 : _tableData$pagination.total) || (tableData === null || tableData === void 0 ? void 0 : (_tableData$data3 = tableData.data) === null || _tableData$data3 === void 0 ? void 0 : _tableData$data3.length),
4265
4265
  rowsPerPage: tableData === null || tableData === void 0 ? void 0 : (_tableData$pagination2 = tableData.pagination) === null || _tableData$pagination2 === void 0 ? void 0 : _tableData$pagination2.pageSize,
4266
4266
  page: (tableData === null || tableData === void 0 ? void 0 : (_tableData$pagination3 = tableData.pagination) === null || _tableData$pagination3 === void 0 ? void 0 : _tableData$pagination3.current) - 1,
4267
4267
  onPageChange: handleChangePage,
@@ -4278,7 +4278,7 @@ var PaperContainer = styled(material.Paper)(_templateObject2$9 || (_templateObje
4278
4278
  });
4279
4279
  var TableStyledContainer = styled(material.TableContainer)(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n border-radius: 12px 12px 0 0 !important;\n"])));
4280
4280
  var TableStyled = styled(material.Table)(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
4281
- var TableCellContainer = styled(material.TableCell)(_templateObject5$7 || (_templateObject5$7 = _taggedTemplateLiteralLoose(["\n // font-family: Poppins !important;\n background-color: ", " !important;\n color: ", " !important;\n font-weight: ", ";\n padding: 12px !important;\n border-bottom: 1px solid #000000D9 !important;\n font-size: 1.1rem;\n"])), function (props) {
4281
+ var TableCellContainer = styled(material.TableCell)(_templateObject5$7 || (_templateObject5$7 = _taggedTemplateLiteralLoose(["\n // font-family: Poppins !important;\n background-color: ", " !important;\n color: ", " !important;\n font-weight: ", ";\n padding: 12px !important;\n border-bottom: 1px solid #000000d9 !important;\n font-size: 1.1rem;\n"])), function (props) {
4282
4282
  return props.secondaryColor;
4283
4283
  }, function (props) {
4284
4284
  return props.fontColor;
@@ -4849,7 +4849,7 @@ var SideMenuItemComponentContainer = styles.styled(SideMenuItemComponent)(functi
4849
4849
  active = _ref.active;
4850
4850
  return {
4851
4851
  background: list ? active ? "rgba(" + hexToRgbA(primaryColor) + ",0.8)" : "transparent" : "rgba(" + hexToRgbA(primaryColor) + ")",
4852
- color: list ? fontColor : '#fff',
4852
+ color: list ? active ? "#fff" : fontColor : '#fff',
4853
4853
  '& .MuiTypography-root': {
4854
4854
  fontWeight: '600 '
4855
4855
  },
@@ -4859,7 +4859,7 @@ var SideMenuItemComponentContainer = styles.styled(SideMenuItemComponent)(functi
4859
4859
  },
4860
4860
  '& svg': {
4861
4861
  fontSize: 22,
4862
- color: list ? fontColor : '#fff'
4862
+ color: list ? active ? "#fff" : fontColor : '#fff'
4863
4863
  }
4864
4864
  };
4865
4865
  });