@salesgenterp/ui-components 0.4.108 → 0.4.110
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 +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -4
- package/dist/index.modern.js.map +1 -1
- 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'));
|
|
@@ -3943,7 +3944,7 @@ var Loader$1 = function Loader(_ref) {
|
|
|
3943
3944
|
_objectDestructuringEmpty(_ref);
|
|
3944
3945
|
return /*#__PURE__*/React__default.createElement(LoaderContainer, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(material.CircularProgress, {
|
|
3945
3946
|
color: "inherit"
|
|
3946
|
-
})
|
|
3947
|
+
})));
|
|
3947
3948
|
};
|
|
3948
3949
|
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
3950
|
|
|
@@ -3978,7 +3979,6 @@ var APITable = React.forwardRef(function (_ref, ref) {
|
|
|
3978
3979
|
}),
|
|
3979
3980
|
tableData = _useState[0],
|
|
3980
3981
|
setTableData = _useState[1];
|
|
3981
|
-
console.log('tableData: ', tableData);
|
|
3982
3982
|
var handleChangePage = function handleChangePage(event, newPage) {
|
|
3983
3983
|
var pagination = _extends({}, tableData === null || tableData === void 0 ? void 0 : tableData.pagination, {
|
|
3984
3984
|
current: newPage + 1
|
|
@@ -4176,7 +4176,7 @@ var PaperContainer = styled(material.Paper)(_templateObject2$9 || (_templateObje
|
|
|
4176
4176
|
});
|
|
4177
4177
|
var TableStyledContainer = styled(material.TableContainer)(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n border-radius: 20px 20px 0 0 !important;\n"])));
|
|
4178
4178
|
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) {
|
|
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: 1.1rem;\n"])), function (props) {
|
|
4180
4180
|
return props.secondaryColor;
|
|
4181
4181
|
}, function (props) {
|
|
4182
4182
|
return props.fontColor;
|
|
@@ -4589,7 +4589,7 @@ var SideMenuItem = function SideMenuItem(props) {
|
|
|
4589
4589
|
fontColor = props.fontColor,
|
|
4590
4590
|
list = props.list;
|
|
4591
4591
|
var isExpandable = items && items.length > 0;
|
|
4592
|
-
var _React$useState = React__default.useState(
|
|
4592
|
+
var _React$useState = React__default.useState(true),
|
|
4593
4593
|
open = _React$useState[0],
|
|
4594
4594
|
setOpen = _React$useState[1];
|
|
4595
4595
|
function handleClick() {
|
|
@@ -4740,6 +4740,7 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4740
4740
|
_ref$darkMode = _ref.darkMode,
|
|
4741
4741
|
darkMode = _ref$darkMode === void 0 ? true : _ref$darkMode;
|
|
4742
4742
|
var serviceApiEndPoint = 'https://dev.salesgent.xyz/api'.replace('/api', '/services/pdf');
|
|
4743
|
+
var isMobile = useMediaQuery('(max-width:800px)');
|
|
4743
4744
|
var _useState = React.useState(true),
|
|
4744
4745
|
open = _useState[0],
|
|
4745
4746
|
setOpen = _useState[1];
|
|
@@ -4778,6 +4779,9 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4778
4779
|
backgroundImage: backgroundImage || '/images/backgroundDark.png'
|
|
4779
4780
|
});
|
|
4780
4781
|
};
|
|
4782
|
+
React.useEffect(function () {
|
|
4783
|
+
isMobile ? setOpen(false) : setOpen(true);
|
|
4784
|
+
}, [isMobile]);
|
|
4781
4785
|
React.useEffect(function () {
|
|
4782
4786
|
handleNightMode();
|
|
4783
4787
|
}, []);
|