@salesgenterp/ui-components 0.4.103 → 0.4.105
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 +18 -13
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -13
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3978,6 +3978,7 @@ var APITable = React.forwardRef(function (_ref, ref) {
|
|
|
3978
3978
|
}),
|
|
3979
3979
|
tableData = _useState[0],
|
|
3980
3980
|
setTableData = _useState[1];
|
|
3981
|
+
console.log('tableData: ', tableData);
|
|
3981
3982
|
var handleChangePage = function handleChangePage(event, newPage) {
|
|
3982
3983
|
var pagination = _extends({}, tableData === null || tableData === void 0 ? void 0 : tableData.pagination, {
|
|
3983
3984
|
current: newPage + 1
|
|
@@ -4140,7 +4141,7 @@ var APITable = React.forwardRef(function (_ref, ref) {
|
|
|
4140
4141
|
}, props, {
|
|
4141
4142
|
titleHeader: true
|
|
4142
4143
|
}), column.label);
|
|
4143
|
-
}))), (tableData === null || tableData === void 0 ? void 0 : (_tableData$data = tableData.data) === null || _tableData$data === void 0 ? void 0 : _tableData$data.length) > 0 ? /*#__PURE__*/React__default.createElement(material.TableBody, null, tableData === null || tableData === void 0 ? void 0 : (_tableData$data2 = tableData.data) === null || _tableData$data2 === void 0 ? void 0 : _tableData$data2.map(function (row) {
|
|
4144
|
+
}))), (tableData.apiStatus !== API_STATUSES.PENDING || tableData.apiStatus !== API_STATUSES.LOADING) && (tableData === null || tableData === void 0 ? void 0 : (_tableData$data = tableData.data) === null || _tableData$data === void 0 ? void 0 : _tableData$data.length) > 0 ? /*#__PURE__*/React__default.createElement(material.TableBody, null, tableData === null || tableData === void 0 ? void 0 : (_tableData$data2 = tableData.data) === null || _tableData$data2 === void 0 ? void 0 : _tableData$data2.map(function (row) {
|
|
4144
4145
|
return /*#__PURE__*/React__default.createElement(material.TableRow, {
|
|
4145
4146
|
hover: true,
|
|
4146
4147
|
key: row === null || row === void 0 ? void 0 : row[(props === null || props === void 0 ? void 0 : props.rowKey) || 'id']
|
|
@@ -4151,7 +4152,7 @@ var APITable = React.forwardRef(function (_ref, ref) {
|
|
|
4151
4152
|
align: column.align
|
|
4152
4153
|
}, props), column.format ? column.format(value, row) : value);
|
|
4153
4154
|
}));
|
|
4154
|
-
})) : /*#__PURE__*/React__default.createElement("div", {
|
|
4155
|
+
})) : (tableData.apiStatus === API_STATUSES.PENDING || tableData.apiStatus === API_STATUSES.LOADING) && /*#__PURE__*/React__default.createElement("div", {
|
|
4155
4156
|
style: {
|
|
4156
4157
|
display: 'block'
|
|
4157
4158
|
}
|
|
@@ -4175,14 +4176,14 @@ var PaperContainer = styled(material.Paper)(_templateObject2$9 || (_templateObje
|
|
|
4175
4176
|
});
|
|
4176
4177
|
var TableStyledContainer = styled(material.TableContainer)(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n border-radius: 20px 20px 0 0 !important;\n"])));
|
|
4177
4178
|
var TableStyled = styled(material.Table)(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
|
|
4178
|
-
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"])), 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"])), function (props) {
|
|
4179
4180
|
return props.secondaryColor;
|
|
4180
4181
|
}, function (props) {
|
|
4181
4182
|
return props.fontColor;
|
|
4182
4183
|
}, function (props) {
|
|
4183
4184
|
return props.titleHeader && '600 !important';
|
|
4184
4185
|
});
|
|
4185
|
-
var TablePaginationContainer = styled(material.TablePagination)(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n background-color: ", " !important;\n color: ", " !important;\n border-radius: 0 0 20px 20px !important;\n .MuiSelect-select,\n p {\n font-family: Poppins !important;\n }\n"])), function (props) {
|
|
4186
|
+
var TablePaginationContainer = styled(material.TablePagination)(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n background-color: ", " !important;\n color: ", " !important;\n border-radius: 0 0 20px 20px !important;\n .MuiSelect-select,\n p {\n // font-family: Poppins !important;\n }\n"])), function (props) {
|
|
4186
4187
|
return props.secondaryColor;
|
|
4187
4188
|
}, function (props) {
|
|
4188
4189
|
return props.fontColor;
|
|
@@ -4274,7 +4275,11 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
4274
4275
|
id: 'status',
|
|
4275
4276
|
label: 'Status',
|
|
4276
4277
|
format: function format(value) {
|
|
4277
|
-
return /*#__PURE__*/React__default.createElement(
|
|
4278
|
+
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
4279
|
+
container: true
|
|
4280
|
+
}, /*#__PURE__*/React__default.createElement(StatusContainer, {
|
|
4281
|
+
item: true
|
|
4282
|
+
}, value));
|
|
4278
4283
|
}
|
|
4279
4284
|
}, {
|
|
4280
4285
|
id: 'trackingNumber',
|
|
@@ -4512,15 +4517,15 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
4512
4517
|
})));
|
|
4513
4518
|
};
|
|
4514
4519
|
var Root$1 = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose([""])));
|
|
4515
|
-
var TitleContainer = styled.h4(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n span,\n b {\n color: ", ";\n font-size: 2.5rem;\n font-family: Poppins;\n }\n"])), function (props) {
|
|
4520
|
+
var TitleContainer = styled.h4(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n span,\n b {\n color: ", ";\n font-size: 2.5rem;\n // font-family: Poppins;\n }\n"])), function (props) {
|
|
4516
4521
|
return props.primaryColor;
|
|
4517
4522
|
});
|
|
4518
|
-
var MeetContainer = styled.h4(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n margin-bottom: 1rem;\n font-family: Poppins;\n span > b {\n color: ", ";\n font-size: 2rem;\n }\n b {\n color: ", ";\n font-size: 2rem;\n }\n"])), function (props) {
|
|
4523
|
+
var MeetContainer = styled.h4(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n margin-bottom: 1rem;\n // font-family: Poppins;\n span > b {\n color: ", ";\n font-size: 2rem;\n }\n b {\n color: ", ";\n font-size: 2rem;\n }\n"])), function (props) {
|
|
4519
4524
|
return props.primaryColor;
|
|
4520
4525
|
}, function (props) {
|
|
4521
4526
|
return props.fontColor;
|
|
4522
4527
|
});
|
|
4523
|
-
var TypographyContainer = styled(material.Typography)(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n font-family: Poppins !important;\n"])), function (props) {
|
|
4528
|
+
var TypographyContainer = styled(material.Typography)(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n // font-family: Poppins !important;\n"])), function (props) {
|
|
4524
4529
|
return props.fontColor;
|
|
4525
4530
|
});
|
|
4526
4531
|
var CardMediaContainer = styled(material.CardMedia)(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n border-radius: 20px;\n max-width: 150px;\n"])));
|
|
@@ -4528,7 +4533,7 @@ var CardContainer = styled(material.Stack)(_templateObject6$8 || (_templateObjec
|
|
|
4528
4533
|
return props.secondaryColor;
|
|
4529
4534
|
});
|
|
4530
4535
|
var TotalRoot = styled.div(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteralLoose(["\n margin: 2rem 0;\n"])));
|
|
4531
|
-
var TotalContainer = styled(material.Stack)(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n border-radius: 20px;\n background-color: ", ";\n padding: 1.5rem 1rem;\n box-shadow: 0px 0px 4px 0px;\n font-family: Poppins !important;\n :hover {\n background-color: ", ";\n p,\n h3,\n svg {\n color: #fff;\n }\n }\n p {\n font-size: 1.2rem;\n font-weight: 600;\n color: ", ";\n margin-bottom: 1rem;\n }\n h3 {\n font-size: 1.5rem;\n font-weight: 600;\n color: #746e88;\n }\n svg {\n font-size: 2rem;\n color: ", ";\n }\n"])), function (props) {
|
|
4536
|
+
var TotalContainer = styled(material.Stack)(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n border-radius: 20px;\n background-color: ", ";\n padding: 1.5rem 1rem;\n box-shadow: 0px 0px 4px 0px;\n // font-family: Poppins !important;\n :hover {\n background-color: ", ";\n p,\n h3,\n svg {\n color: #fff;\n }\n }\n p {\n font-size: 1.2rem;\n font-weight: 600;\n color: ", ";\n margin-bottom: 1rem;\n }\n h3 {\n font-size: 1.5rem;\n font-weight: 600;\n color: #746e88;\n }\n svg {\n font-size: 2rem;\n color: ", ";\n }\n"])), function (props) {
|
|
4532
4537
|
return props.secondaryColor;
|
|
4533
4538
|
}, function (props) {
|
|
4534
4539
|
return props.primaryColor;
|
|
@@ -4537,7 +4542,7 @@ var TotalContainer = styled(material.Stack)(_templateObject8$2 || (_templateObje
|
|
|
4537
4542
|
}, function (props) {
|
|
4538
4543
|
return props.fontColor;
|
|
4539
4544
|
});
|
|
4540
|
-
var StatusContainer = styled.
|
|
4545
|
+
var StatusContainer = styled(material.Grid)(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n display: initial;\n box-shadow: 0px 0px 1px 0px;\n padding: 2px 4px;\n"])));
|
|
4541
4546
|
var TableContainer = styled.div(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n margin: 1.2rem 0;\n border-radius: 20px;\n"])));
|
|
4542
4547
|
var InvoiceDialog = styled(material.Dialog)(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n iframe {\n width: 900px;\n border: none;\n height: 600px;\n }\n"])));
|
|
4543
4548
|
|
|
@@ -4626,9 +4631,9 @@ var SideMenuItemComponentContainer = styles.styled(SideMenuItemComponent)(functi
|
|
|
4626
4631
|
background: list ? "transparent" : "rgba(" + hexToRgbA(primaryColor) + ")",
|
|
4627
4632
|
color: list ? fontColor : '#fff',
|
|
4628
4633
|
'& .MuiTypography-root': {
|
|
4629
|
-
fontWeight: '600 '
|
|
4630
|
-
fontFamily: 'Poppins'
|
|
4634
|
+
fontWeight: '600 '
|
|
4631
4635
|
},
|
|
4636
|
+
|
|
4632
4637
|
'&:hover': {
|
|
4633
4638
|
background: "rgba(" + hexToRgbA(primaryColor) + ",0.8)"
|
|
4634
4639
|
},
|
|
@@ -4882,7 +4887,7 @@ var Main = styles.styled('main', {
|
|
|
4882
4887
|
var ContainerDrawer = styled(material.Drawer)(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteralLoose(["\n height: 100%;\n margin-right: ", ";\n .MuiDrawer-paper {\n position: relative;\n width: 280px;\n z-index: 1;\n overflow: hidden;\n border-top-right-radius: 20px;\n background: transparent;\n }\n"])), function (props) {
|
|
4883
4888
|
return props.open && '2rem';
|
|
4884
4889
|
});
|
|
4885
|
-
var TypographyContainer$1 = styled(material.Typography)(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n font-family: Poppins !important;\n"])), function (props) {
|
|
4890
|
+
var TypographyContainer$1 = styled(material.Typography)(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n // font-family: Poppins !important;\n"])), function (props) {
|
|
4886
4891
|
return props.fontColor;
|
|
4887
4892
|
});
|
|
4888
4893
|
|