@salesgenterp/ui-components 0.4.109 → 0.4.111
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 +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/userImage~bfyiezcF.png +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ var hi = require('react-icons/hi');
|
|
|
24
24
|
var Cards = _interopDefault(require('react-credit-cards'));
|
|
25
25
|
var fi = require('react-icons/fi');
|
|
26
26
|
var styles = require('@mui/material/styles');
|
|
27
|
+
var useMediaQuery = _interopDefault(require('@mui/material/useMediaQuery'));
|
|
27
28
|
var moment = _interopDefault(require('moment'));
|
|
28
29
|
var lodash = require('lodash');
|
|
29
30
|
var axios = _interopDefault(require('axios'));
|
|
@@ -3497,6 +3498,8 @@ function _finallyRethrows(body, finalizer) {
|
|
|
3497
3498
|
return finalizer(false, result);
|
|
3498
3499
|
}
|
|
3499
3500
|
|
|
3501
|
+
var UserImage = "userImage~bfyiezcF.png";
|
|
3502
|
+
|
|
3500
3503
|
var API_END_POINT = '';
|
|
3501
3504
|
var STORAGE_KEYS = {
|
|
3502
3505
|
ACCESS_TOKEN: 'token',
|
|
@@ -3943,7 +3946,7 @@ var Loader$1 = function Loader(_ref) {
|
|
|
3943
3946
|
_objectDestructuringEmpty(_ref);
|
|
3944
3947
|
return /*#__PURE__*/React__default.createElement(LoaderContainer, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(material.CircularProgress, {
|
|
3945
3948
|
color: "inherit"
|
|
3946
|
-
})
|
|
3949
|
+
})));
|
|
3947
3950
|
};
|
|
3948
3951
|
var LoaderContainer = styled.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n & > div {\n margin: auto;\n width: 50px;\n height: 50px;\n }\n"])));
|
|
3949
3952
|
|
|
@@ -3978,7 +3981,6 @@ var APITable = React.forwardRef(function (_ref, ref) {
|
|
|
3978
3981
|
}),
|
|
3979
3982
|
tableData = _useState[0],
|
|
3980
3983
|
setTableData = _useState[1];
|
|
3981
|
-
console.log('tableData: ', tableData);
|
|
3982
3984
|
var handleChangePage = function handleChangePage(event, newPage) {
|
|
3983
3985
|
var pagination = _extends({}, tableData === null || tableData === void 0 ? void 0 : tableData.pagination, {
|
|
3984
3986
|
current: newPage + 1
|
|
@@ -4176,7 +4178,7 @@ var PaperContainer = styled(material.Paper)(_templateObject2$9 || (_templateObje
|
|
|
4176
4178
|
});
|
|
4177
4179
|
var TableStyledContainer = styled(material.TableContainer)(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n border-radius: 20px 20px 0 0 !important;\n"])));
|
|
4178
4180
|
var TableStyled = styled(material.Table)(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
4179
|
-
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 font-size: 1rem;\n"])), function (props) {
|
|
4181
|
+
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 font-size: 1.1rem;\n"])), function (props) {
|
|
4180
4182
|
return props.secondaryColor;
|
|
4181
4183
|
}, function (props) {
|
|
4182
4184
|
return props.fontColor;
|
|
@@ -4381,7 +4383,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
4381
4383
|
lg: 2
|
|
4382
4384
|
}, /*#__PURE__*/React__default.createElement(CardMediaContainer, {
|
|
4383
4385
|
component: "img",
|
|
4384
|
-
image:
|
|
4386
|
+
image: UserImage,
|
|
4385
4387
|
alt: "image"
|
|
4386
4388
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
4387
4389
|
item: true,
|
|
@@ -4740,6 +4742,7 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4740
4742
|
_ref$darkMode = _ref.darkMode,
|
|
4741
4743
|
darkMode = _ref$darkMode === void 0 ? true : _ref$darkMode;
|
|
4742
4744
|
var serviceApiEndPoint = 'https://dev.salesgent.xyz/api'.replace('/api', '/services/pdf');
|
|
4745
|
+
var isMobile = useMediaQuery('(max-width:800px)');
|
|
4743
4746
|
var _useState = React.useState(true),
|
|
4744
4747
|
open = _useState[0],
|
|
4745
4748
|
setOpen = _useState[1];
|
|
@@ -4778,6 +4781,9 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4778
4781
|
backgroundImage: backgroundImage || '/images/backgroundDark.png'
|
|
4779
4782
|
});
|
|
4780
4783
|
};
|
|
4784
|
+
React.useEffect(function () {
|
|
4785
|
+
isMobile ? setOpen(false) : setOpen(true);
|
|
4786
|
+
}, [isMobile]);
|
|
4781
4787
|
React.useEffect(function () {
|
|
4782
4788
|
handleNightMode();
|
|
4783
4789
|
}, []);
|