@salesgenterp/ui-components 0.4.83 → 0.4.85
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 +287 -157
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +291 -161
- package/dist/index.modern.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -23,9 +23,10 @@ var reactHookForm = require('react-hook-form');
|
|
|
23
23
|
var hi = require('react-icons/hi');
|
|
24
24
|
var Cards = _interopDefault(require('react-credit-cards'));
|
|
25
25
|
var fi = require('react-icons/fi');
|
|
26
|
-
var
|
|
26
|
+
var moment = _interopDefault(require('moment'));
|
|
27
27
|
var lodash = require('lodash');
|
|
28
28
|
var axios = _interopDefault(require('axios'));
|
|
29
|
+
var styles = require('@mui/styles');
|
|
29
30
|
|
|
30
31
|
function _extends() {
|
|
31
32
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -59,10 +60,6 @@ function _setPrototypeOf(o, p) {
|
|
|
59
60
|
return _setPrototypeOf(o, p);
|
|
60
61
|
}
|
|
61
62
|
|
|
62
|
-
function _objectDestructuringEmpty(obj) {
|
|
63
|
-
if (obj == null) throw new TypeError("Cannot destructure undefined");
|
|
64
|
-
}
|
|
65
|
-
|
|
66
63
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
67
64
|
if (source == null) return {};
|
|
68
65
|
var target = {};
|
|
@@ -289,7 +286,7 @@ function createCommonjsModule(fn, module) {
|
|
|
289
286
|
*/
|
|
290
287
|
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
291
288
|
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
292
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
|
|
289
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment$1=e;var Lazy=t;var Memo=r;var Portal=d;
|
|
293
290
|
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
294
291
|
var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
295
292
|
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
@@ -301,7 +298,7 @@ var reactIs_production_min = {
|
|
|
301
298
|
ContextProvider: ContextProvider,
|
|
302
299
|
Element: Element,
|
|
303
300
|
ForwardRef: ForwardRef,
|
|
304
|
-
Fragment: Fragment,
|
|
301
|
+
Fragment: Fragment$1,
|
|
305
302
|
Lazy: Lazy,
|
|
306
303
|
Memo: Memo,
|
|
307
304
|
Portal: Portal,
|
|
@@ -3461,6 +3458,27 @@ var CheckoutPageComponent = function CheckoutPageComponent(_ref) {
|
|
|
3461
3458
|
}));
|
|
3462
3459
|
};
|
|
3463
3460
|
|
|
3461
|
+
var API_END_POINT = 'https://dev.salesgent.xyz/api';
|
|
3462
|
+
var STORAGE_KEYS = {
|
|
3463
|
+
ACCESS_TOKEN: 'accessToken',
|
|
3464
|
+
REFRESH_TOKEN: 'refreshToken',
|
|
3465
|
+
TABLE_STATE: 'TABLE_STATE',
|
|
3466
|
+
TABLE_DATA: 'TABLE_DATA'
|
|
3467
|
+
};
|
|
3468
|
+
var API_STATUSES = Object.freeze({
|
|
3469
|
+
PENDING: 'PENDING',
|
|
3470
|
+
LOADING: 'LOADING',
|
|
3471
|
+
SUCCESS: 'SUCCESS',
|
|
3472
|
+
ERROR: 'ERROR'
|
|
3473
|
+
});
|
|
3474
|
+
var DATE_FORMATS = {
|
|
3475
|
+
DEFAULT_DATE_TIME_FORMAT: 'YYYY-MM-DD HH:mm:ss',
|
|
3476
|
+
TIMESTAMP_FORMAT: 'MM-DD-YY hh:mm A',
|
|
3477
|
+
LIST_DATE_TIME_FORMAT: 'YYYY-MM-DD hh:mm A',
|
|
3478
|
+
DEFAULT_DATE_FORMAT: 'YYYY-MM-DD',
|
|
3479
|
+
TIME: 'hh:mm:ss A'
|
|
3480
|
+
};
|
|
3481
|
+
|
|
3464
3482
|
var convertCamCaseToSnake = function convertCamCaseToSnake(child) {
|
|
3465
3483
|
var data = [];
|
|
3466
3484
|
var i = 1;
|
|
@@ -3476,6 +3494,37 @@ var convertCamCaseToSnake = function convertCamCaseToSnake(child) {
|
|
|
3476
3494
|
});
|
|
3477
3495
|
return data;
|
|
3478
3496
|
};
|
|
3497
|
+
var renderMoney = function renderMoney(value) {
|
|
3498
|
+
var returnValue = '$0.00';
|
|
3499
|
+
|
|
3500
|
+
try {
|
|
3501
|
+
if (value) {
|
|
3502
|
+
var _Math$abs, _Math$abs$toFixed, _value$toFixed;
|
|
3503
|
+
|
|
3504
|
+
returnValue = value < 0 ? "-$" + ((_Math$abs = Math.abs(value)) === null || _Math$abs === void 0 ? void 0 : (_Math$abs$toFixed = _Math$abs.toFixed(2)) === null || _Math$abs$toFixed === void 0 ? void 0 : _Math$abs$toFixed.replace(/\B(?=(\d{3})+(?!\d))/g, ',')) : "$" + ((_value$toFixed = value.toFixed(2)) === null || _value$toFixed === void 0 ? void 0 : _value$toFixed.replace(/\B(?=(\d{3})+(?!\d))/g, ','));
|
|
3505
|
+
}
|
|
3506
|
+
} catch (e) {}
|
|
3507
|
+
|
|
3508
|
+
return returnValue;
|
|
3509
|
+
};
|
|
3510
|
+
var getLocalTime = function getLocalTime(_ref) {
|
|
3511
|
+
var time = _ref.time,
|
|
3512
|
+
_ref$format = _ref.format,
|
|
3513
|
+
format = _ref$format === void 0 ? DATE_FORMATS.TIMESTAMP_FORMAT : _ref$format,
|
|
3514
|
+
isMoment = _ref.isMoment;
|
|
3515
|
+
|
|
3516
|
+
if (!time) {
|
|
3517
|
+
return time;
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
var convertedTime = moment.utc(time).clone().local();
|
|
3521
|
+
|
|
3522
|
+
if (!isMoment) {
|
|
3523
|
+
convertedTime = convertedTime.format(format);
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
return convertedTime;
|
|
3527
|
+
};
|
|
3479
3528
|
|
|
3480
3529
|
// A type of promise-like that resolves synchronously and supports only one observer
|
|
3481
3530
|
|
|
@@ -3536,20 +3585,6 @@ var erLocalStorage = {
|
|
|
3536
3585
|
}
|
|
3537
3586
|
};
|
|
3538
3587
|
|
|
3539
|
-
var API_END_POINT = 'https://dev.salesgent.xyz/api';
|
|
3540
|
-
var STORAGE_KEYS = {
|
|
3541
|
-
ACCESS_TOKEN: 'accessToken',
|
|
3542
|
-
REFRESH_TOKEN: 'refreshToken',
|
|
3543
|
-
TABLE_STATE: 'TABLE_STATE',
|
|
3544
|
-
TABLE_DATA: 'TABLE_DATA'
|
|
3545
|
-
};
|
|
3546
|
-
var API_STATUSES = Object.freeze({
|
|
3547
|
-
PENDING: 'PENDING',
|
|
3548
|
-
LOADING: 'LOADING',
|
|
3549
|
-
SUCCESS: 'SUCCESS',
|
|
3550
|
-
ERROR: 'ERROR'
|
|
3551
|
-
});
|
|
3552
|
-
|
|
3553
3588
|
var getJSONItem = erLocalStorage.getJSONItem;
|
|
3554
3589
|
var loadCachedTableState = function loadCachedTableState(_ref2) {
|
|
3555
3590
|
var tableId = _ref2.tableId;
|
|
@@ -3560,7 +3595,7 @@ var loadCachedTableState = function loadCachedTableState(_ref2) {
|
|
|
3560
3595
|
|
|
3561
3596
|
var ErCache = /*#__PURE__*/function () {
|
|
3562
3597
|
function ErCache() {
|
|
3563
|
-
this.sessionStorage = window.sessionStorage;
|
|
3598
|
+
this.sessionStorage = typeof window !== 'undefined' ? window.sessionStorage : {};
|
|
3564
3599
|
}
|
|
3565
3600
|
|
|
3566
3601
|
var _proto = ErCache.prototype;
|
|
@@ -3673,7 +3708,7 @@ var API = function API(apiData) {
|
|
|
3673
3708
|
}
|
|
3674
3709
|
|
|
3675
3710
|
var apiUrl = ("/" + url).replace(/\/\//g, '/');
|
|
3676
|
-
var accessToken = getItem(ACCESS_TOKEN) || 'eyJhbGciOiJIUzI1NiJ9.
|
|
3711
|
+
var accessToken = getItem(ACCESS_TOKEN) || 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJzYWxlc2dlbnRlcnBAZ21haWwuY29tIiwidGllciI6MiwidXNlclR5cGUiOiJDdXN0b21lciIsInRva2VuVHlwZSI6ImFjY2VzcyIsInN0b3JlSWQiOjIsImV4cCI6MTY2NDk5MzU2OCwidXNlcklkIjoyNDU1LCJpYXQiOjE2NjQ5NTc1NjgsInJlc2V0UGFzc3dvcmRSZXF1aXJlZCI6ZmFsc2V9.AZ9BKlpRSQwQtTztiPu8VEYjd3N0zCa6lmKFEtXr8JU';
|
|
3677
3712
|
var requestHeaders = headers;
|
|
3678
3713
|
|
|
3679
3714
|
if (byPassAuthAPIs.indexOf(url) === -1) {
|
|
@@ -3915,8 +3950,12 @@ var handleError = function handleError(_ref6) {
|
|
|
3915
3950
|
}
|
|
3916
3951
|
};
|
|
3917
3952
|
|
|
3953
|
+
var _templateObject$9, _templateObject2$9, _templateObject3$9, _templateObject4$7, _templateObject5$7;
|
|
3954
|
+
|
|
3918
3955
|
var _excluded = ["apiData", "columns", "listUpdate", "onDataLoad", "expandedRowRender", "onDataLoadError", "pagination", "extraFilterParams", "setExtraFilterParams", "cacheFilters", "tableId", "asyncService", "tableDataList", "filterData"];
|
|
3919
3956
|
var APITable = React.forwardRef(function (_ref, ref) {
|
|
3957
|
+
var _tableData$pagination, _tableData$pagination2, _tableData$pagination3;
|
|
3958
|
+
|
|
3920
3959
|
var apiData = _ref.apiData,
|
|
3921
3960
|
columns = _ref.columns,
|
|
3922
3961
|
listUpdate = _ref.listUpdate,
|
|
@@ -3931,25 +3970,6 @@ var APITable = React.forwardRef(function (_ref, ref) {
|
|
|
3931
3970
|
tableDataList = _ref.tableDataList,
|
|
3932
3971
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
3933
3972
|
|
|
3934
|
-
console.log('columns: ', columns);
|
|
3935
|
-
|
|
3936
|
-
var _React$useState = React__default.useState(0),
|
|
3937
|
-
page = _React$useState[0],
|
|
3938
|
-
setPage = _React$useState[1];
|
|
3939
|
-
|
|
3940
|
-
var _React$useState2 = React__default.useState(10),
|
|
3941
|
-
rowsPerPage = _React$useState2[0],
|
|
3942
|
-
setRowsPerPage = _React$useState2[1];
|
|
3943
|
-
|
|
3944
|
-
var handleChangePage = function handleChangePage(event, newPage) {
|
|
3945
|
-
setPage(newPage);
|
|
3946
|
-
};
|
|
3947
|
-
|
|
3948
|
-
var handleChangeRowsPerPage = function handleChangeRowsPerPage(event) {
|
|
3949
|
-
setRowsPerPage(+event.target.value);
|
|
3950
|
-
setPage(0);
|
|
3951
|
-
};
|
|
3952
|
-
|
|
3953
3973
|
var getJSONItem = erLocalStorage.getJSONItem;
|
|
3954
3974
|
var tableCache = getJSONItem(STORAGE_KEYS.TABLE_DATA);
|
|
3955
3975
|
|
|
@@ -3966,7 +3986,28 @@ var APITable = React.forwardRef(function (_ref, ref) {
|
|
|
3966
3986
|
tableData = _useState[0],
|
|
3967
3987
|
setTableData = _useState[1];
|
|
3968
3988
|
|
|
3969
|
-
|
|
3989
|
+
var handleChangePage = function handleChangePage(event, newPage) {
|
|
3990
|
+
var pagination = _extends({}, tableData === null || tableData === void 0 ? void 0 : tableData.pagination, {
|
|
3991
|
+
current: newPage + 1
|
|
3992
|
+
});
|
|
3993
|
+
|
|
3994
|
+
setTableData(_extends({}, tableData, {
|
|
3995
|
+
pagination: pagination
|
|
3996
|
+
}));
|
|
3997
|
+
handleTableChange(pagination);
|
|
3998
|
+
};
|
|
3999
|
+
|
|
4000
|
+
var handleChangeRowsPerPage = function handleChangeRowsPerPage(event) {
|
|
4001
|
+
var pagination = _extends({}, tableData === null || tableData === void 0 ? void 0 : tableData.pagination, {
|
|
4002
|
+
pageSize: +event.target.value,
|
|
4003
|
+
current: 1
|
|
4004
|
+
});
|
|
4005
|
+
|
|
4006
|
+
setTableData(_extends({}, tableData, {
|
|
4007
|
+
pagination: pagination
|
|
4008
|
+
}));
|
|
4009
|
+
handleTableChange(pagination);
|
|
4010
|
+
};
|
|
3970
4011
|
|
|
3971
4012
|
var setTableDataOnRef = function setTableDataOnRef() {
|
|
3972
4013
|
if (ref) {
|
|
@@ -4077,7 +4118,11 @@ var APITable = React.forwardRef(function (_ref, ref) {
|
|
|
4077
4118
|
|
|
4078
4119
|
var _temp2 = function () {
|
|
4079
4120
|
if (asyncService) {
|
|
4080
|
-
|
|
4121
|
+
return Promise.resolve(asyncService({
|
|
4122
|
+
queryParams: queryParams
|
|
4123
|
+
})).then(function (_asyncService) {
|
|
4124
|
+
apiResponse = _asyncService;
|
|
4125
|
+
});
|
|
4081
4126
|
} else {
|
|
4082
4127
|
return Promise.resolve(API(_extends({}, apiData, {
|
|
4083
4128
|
queryParams: queryParams
|
|
@@ -4102,19 +4147,26 @@ var APITable = React.forwardRef(function (_ref, ref) {
|
|
|
4102
4147
|
})();
|
|
4103
4148
|
};
|
|
4104
4149
|
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4150
|
+
var handleTableChange = function handleTableChange(pagination, filters, sorter) {
|
|
4151
|
+
var sortDirection;
|
|
4152
|
+
var sort;
|
|
4153
|
+
loadDataSource({
|
|
4154
|
+
sort: sort,
|
|
4155
|
+
sortDirection: sortDirection,
|
|
4156
|
+
pagination: pagination,
|
|
4157
|
+
filters: filters
|
|
4158
|
+
});
|
|
4159
|
+
};
|
|
4160
|
+
|
|
4161
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(PaperContainer, null, /*#__PURE__*/React__default.createElement(TableStyledContainer, {
|
|
4110
4162
|
sx: {
|
|
4111
4163
|
maxHeight: 440
|
|
4112
4164
|
}
|
|
4113
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
4165
|
+
}, /*#__PURE__*/React__default.createElement(TableStyled, {
|
|
4114
4166
|
stickyHeader: true,
|
|
4115
4167
|
"aria-label": "sticky table"
|
|
4116
4168
|
}, /*#__PURE__*/React__default.createElement(material.TableHead, null, /*#__PURE__*/React__default.createElement(material.TableRow, null, columns.map(function (column) {
|
|
4117
|
-
return /*#__PURE__*/React__default.createElement(
|
|
4169
|
+
return /*#__PURE__*/React__default.createElement(TableCellContainer, {
|
|
4118
4170
|
key: column.id,
|
|
4119
4171
|
align: column.align
|
|
4120
4172
|
}, column.label);
|
|
@@ -4124,72 +4176,145 @@ var APITable = React.forwardRef(function (_ref, ref) {
|
|
|
4124
4176
|
key: row === null || row === void 0 ? void 0 : row[(props === null || props === void 0 ? void 0 : props.rowKey) || 'id']
|
|
4125
4177
|
}, columns.map(function (column) {
|
|
4126
4178
|
var value = row[column.id];
|
|
4127
|
-
return /*#__PURE__*/React__default.createElement(
|
|
4179
|
+
return /*#__PURE__*/React__default.createElement(TableCellContainer, {
|
|
4128
4180
|
key: column.id,
|
|
4129
4181
|
align: column.align
|
|
4130
|
-
}, value);
|
|
4182
|
+
}, column.format ? column.format(value, row) : value);
|
|
4131
4183
|
}));
|
|
4132
|
-
})))), /*#__PURE__*/React__default.createElement(
|
|
4184
|
+
})))), /*#__PURE__*/React__default.createElement(TablePaginationContainer, {
|
|
4133
4185
|
rowsPerPageOptions: [10, 20, 50, 100],
|
|
4134
4186
|
component: "div",
|
|
4135
|
-
count: tableData === null || tableData === void 0 ? void 0 : tableData.
|
|
4136
|
-
rowsPerPage:
|
|
4137
|
-
page:
|
|
4187
|
+
count: tableData === null || tableData === void 0 ? void 0 : (_tableData$pagination = tableData.pagination) === null || _tableData$pagination === void 0 ? void 0 : _tableData$pagination.total,
|
|
4188
|
+
rowsPerPage: tableData === null || tableData === void 0 ? void 0 : (_tableData$pagination2 = tableData.pagination) === null || _tableData$pagination2 === void 0 ? void 0 : _tableData$pagination2.pageSize,
|
|
4189
|
+
page: (tableData === null || tableData === void 0 ? void 0 : (_tableData$pagination3 = tableData.pagination) === null || _tableData$pagination3 === void 0 ? void 0 : _tableData$pagination3.current) - 1,
|
|
4138
4190
|
onPageChange: handleChangePage,
|
|
4139
4191
|
onRowsPerPageChange: handleChangeRowsPerPage
|
|
4140
4192
|
})));
|
|
4141
4193
|
});
|
|
4194
|
+
var PaperContainer = styled(material.Paper)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n margin: 1.2rem 0;\n border-radius: 20px;\n background-color: ", " !important;\n color: ", " !important;\n border-radius: 20px !important;\n"])), function (props) {
|
|
4195
|
+
return props.secondaryColor || '#2B2B4048';
|
|
4196
|
+
}, function (props) {
|
|
4197
|
+
return props.primaryColor || '#fff';
|
|
4198
|
+
});
|
|
4199
|
+
var TableStyledContainer = styled(material.TableContainer)(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n border-radius: 20px !important;\n"])));
|
|
4200
|
+
var TableStyled = styled(material.Table)(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n border-radius: 20px !important;\n"])));
|
|
4201
|
+
var TableCellContainer = styled(material.TableCell)(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n background-color: ", " !important;\n color: ", " !important;\n"])), function (props) {
|
|
4202
|
+
return props.secondaryColor || '#2B2B4048';
|
|
4203
|
+
}, function (props) {
|
|
4204
|
+
return props.primaryColor || '#fff';
|
|
4205
|
+
});
|
|
4206
|
+
var TablePaginationContainer = styled(material.TablePagination)(_templateObject5$7 || (_templateObject5$7 = _taggedTemplateLiteralLoose(["\n background-color: ", " !important;\n color: ", " !important;\n"])), function (props) {
|
|
4207
|
+
return props.secondaryColor || '#2B2B4048';
|
|
4208
|
+
}, function (props) {
|
|
4209
|
+
return props.primaryColor || '#fff';
|
|
4210
|
+
});
|
|
4211
|
+
|
|
4212
|
+
var _templateObject$a, _templateObject2$a, _templateObject3$a, _templateObject4$8, _templateObject5$8, _templateObject6$7, _templateObject7$5, _templateObject8$2, _templateObject9$2;
|
|
4142
4213
|
|
|
4143
|
-
var
|
|
4144
|
-
|
|
4145
|
-
var
|
|
4146
|
-
|
|
4147
|
-
totalOrder: '622',
|
|
4148
|
-
totalReturnAmount: '622',
|
|
4149
|
-
totalReturn: '622',
|
|
4150
|
-
availableStoreCredit: '622',
|
|
4151
|
-
totalCreditReceived: '622',
|
|
4152
|
-
totalItemOrder: '622',
|
|
4153
|
-
avgOrderTotal: '622'
|
|
4214
|
+
var openInvoiceData = function openInvoiceData(orderId) {};
|
|
4215
|
+
|
|
4216
|
+
var downloadInvoice = function downloadInvoice(orderId) {
|
|
4217
|
+
return Promise.resolve();
|
|
4154
4218
|
};
|
|
4219
|
+
|
|
4155
4220
|
var columns = [{
|
|
4156
4221
|
id: 'orderId',
|
|
4157
4222
|
label: 'Order'
|
|
4158
4223
|
}, {
|
|
4159
4224
|
id: 'insertedTimestamp',
|
|
4160
|
-
label: 'Date'
|
|
4225
|
+
label: 'Date',
|
|
4226
|
+
format: function format(value) {
|
|
4227
|
+
return getLocalTime({
|
|
4228
|
+
time: value
|
|
4229
|
+
});
|
|
4230
|
+
}
|
|
4161
4231
|
}, {
|
|
4162
4232
|
id: 'customerName',
|
|
4163
4233
|
label: 'Ship To'
|
|
4164
4234
|
}, {
|
|
4165
4235
|
id: 'totalAmount',
|
|
4166
|
-
label: 'Total Amount'
|
|
4236
|
+
label: 'Total Amount',
|
|
4237
|
+
format: function format(value) {
|
|
4238
|
+
return renderMoney(value);
|
|
4239
|
+
}
|
|
4167
4240
|
}, {
|
|
4168
4241
|
id: 'dueBalance',
|
|
4169
|
-
label: 'Total Due'
|
|
4242
|
+
label: 'Total Due',
|
|
4243
|
+
format: function format(value) {
|
|
4244
|
+
return renderMoney(value);
|
|
4245
|
+
}
|
|
4170
4246
|
}, {
|
|
4171
4247
|
id: 'status',
|
|
4172
|
-
label: 'Status'
|
|
4248
|
+
label: 'Status',
|
|
4249
|
+
format: function format(value) {
|
|
4250
|
+
return /*#__PURE__*/React__default.createElement(Fragment, null, value);
|
|
4251
|
+
}
|
|
4173
4252
|
}, {
|
|
4174
4253
|
id: 'trackingNumber',
|
|
4175
|
-
label: 'Tracking Number'
|
|
4176
|
-
|
|
4177
|
-
|
|
4254
|
+
label: 'Tracking Number',
|
|
4255
|
+
format: function format(value, _ref) {
|
|
4256
|
+
var trackingNumber = _ref.trackingNumber,
|
|
4257
|
+
trackingNumberUrl = _ref.trackingNumberUrl;
|
|
4258
|
+
return /*#__PURE__*/React__default.createElement("a", {
|
|
4259
|
+
href: trackingNumberUrl,
|
|
4260
|
+
target: '_blank'
|
|
4261
|
+
}, trackingNumber);
|
|
4262
|
+
}
|
|
4178
4263
|
}, {
|
|
4179
|
-
id: 'orderId'
|
|
4264
|
+
id: 'orderId',
|
|
4265
|
+
label: 'Action',
|
|
4266
|
+
align: 'center',
|
|
4267
|
+
format: function format(value) {
|
|
4268
|
+
return /*#__PURE__*/React__default.createElement(Fragment, null, /*#__PURE__*/React__default.createElement(material.Button, {
|
|
4269
|
+
onClick: function onClick() {
|
|
4270
|
+
return openInvoiceData();
|
|
4271
|
+
}
|
|
4272
|
+
}, /*#__PURE__*/React__default.createElement(md.MdRemoveRedEye, null)), /*#__PURE__*/React__default.createElement(material.Button, {
|
|
4273
|
+
onClick: function onClick() {
|
|
4274
|
+
return downloadInvoice();
|
|
4275
|
+
}
|
|
4276
|
+
}, /*#__PURE__*/React__default.createElement(md.MdOutlineFileDownload, null)));
|
|
4277
|
+
}
|
|
4180
4278
|
}];
|
|
4181
4279
|
|
|
4182
|
-
var Dashboard = function Dashboard(
|
|
4183
|
-
|
|
4280
|
+
var Dashboard = function Dashboard(_ref2) {
|
|
4281
|
+
var _customerData$custome, _customerData$custome2, _customerData$custome3, _customerData$custome4;
|
|
4184
4282
|
|
|
4185
|
-
var
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4283
|
+
var primaryColor = _ref2.primaryColor;
|
|
4284
|
+
|
|
4285
|
+
var _useState = React.useState({}),
|
|
4286
|
+
customerData = _useState[0],
|
|
4287
|
+
setCustomerData = _useState[1];
|
|
4288
|
+
|
|
4289
|
+
var _useState2 = React.useState({}),
|
|
4290
|
+
dashboardData = _useState2[0],
|
|
4291
|
+
setDashboardData = _useState2[1];
|
|
4292
|
+
|
|
4293
|
+
React.useEffect(function () {
|
|
4294
|
+
try {
|
|
4295
|
+
try {
|
|
4296
|
+
API.get('/ecommerce/customer').then(function (response) {
|
|
4297
|
+
setCustomerData(response);
|
|
4298
|
+
});
|
|
4299
|
+
API.get('/ecommerce/dashboard').then(function (response) {
|
|
4300
|
+
setDashboardData(response);
|
|
4301
|
+
});
|
|
4302
|
+
} catch (error) {}
|
|
4303
|
+
} catch (e) {
|
|
4304
|
+
Promise.reject(e);
|
|
4305
|
+
}
|
|
4306
|
+
}, []);
|
|
4307
|
+
var totalDataSource = convertCamCaseToSnake(dashboardData);
|
|
4308
|
+
return /*#__PURE__*/React__default.createElement(Root, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TitleContainer, {
|
|
4309
|
+
primaryColor: primaryColor
|
|
4310
|
+
}, /*#__PURE__*/React__default.createElement("span", null, "Hello!"), " ", /*#__PURE__*/React__default.createElement("strong", null, customerData === null || customerData === void 0 ? void 0 : (_customerData$custome = customerData.customerDto) === null || _customerData$custome === void 0 ? void 0 : _customerData$custome.name)), /*#__PURE__*/React__default.createElement(TypographyContainer, {
|
|
4311
|
+
variant: "h4",
|
|
4191
4312
|
gutterBottom: true
|
|
4192
|
-
}, "Welcome Back To Your Dashboard")), /*#__PURE__*/React__default.createElement(
|
|
4313
|
+
}, "Welcome Back To Your Dashboard")), /*#__PURE__*/React__default.createElement(CardContainer, null, /*#__PURE__*/React__default.createElement(material.CardContent, {
|
|
4314
|
+
style: {
|
|
4315
|
+
padding: '2rem'
|
|
4316
|
+
}
|
|
4317
|
+
}, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
4193
4318
|
container: true,
|
|
4194
4319
|
spacing: 4
|
|
4195
4320
|
}, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
@@ -4197,7 +4322,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
4197
4322
|
xs: 12,
|
|
4198
4323
|
md: 4,
|
|
4199
4324
|
lg: 2
|
|
4200
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
4325
|
+
}, /*#__PURE__*/React__default.createElement(CardMediaContainer, {
|
|
4201
4326
|
component: "img",
|
|
4202
4327
|
image: "/images/imgnotfound.jpeg",
|
|
4203
4328
|
alt: "image"
|
|
@@ -4206,10 +4331,9 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
4206
4331
|
xs: 12,
|
|
4207
4332
|
md: 8,
|
|
4208
4333
|
lg: 10
|
|
4209
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
}, "Meet Your Account Representative"), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
4334
|
+
}, /*#__PURE__*/React__default.createElement(MeetContainer, {
|
|
4335
|
+
primaryColor: primaryColor
|
|
4336
|
+
}, /*#__PURE__*/React__default.createElement("strong", null, /*#__PURE__*/React__default.createElement("span", null, "Meet Your "), "Account Representative")), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
4213
4337
|
container: true,
|
|
4214
4338
|
spacing: 4
|
|
4215
4339
|
}, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
@@ -4217,26 +4341,44 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
4217
4341
|
xs: 12,
|
|
4218
4342
|
md: 6,
|
|
4219
4343
|
lg: 4
|
|
4220
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
4344
|
+
}, /*#__PURE__*/React__default.createElement(TypographyContainer, {
|
|
4221
4345
|
variant: "h5",
|
|
4222
4346
|
gutterBottom: true
|
|
4223
|
-
}, /*#__PURE__*/React__default.createElement(md.MdPersonOutline,
|
|
4347
|
+
}, /*#__PURE__*/React__default.createElement(md.MdPersonOutline, {
|
|
4348
|
+
style: {
|
|
4349
|
+
fontSize: '3rem',
|
|
4350
|
+
color: primaryColor,
|
|
4351
|
+
marginRight: '1rem'
|
|
4352
|
+
}
|
|
4353
|
+
}), (customerData === null || customerData === void 0 ? void 0 : (_customerData$custome2 = customerData.customerDto) === null || _customerData$custome2 === void 0 ? void 0 : _customerData$custome2.salesRepresentativeName) || 'N/A')), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
4224
4354
|
item: true,
|
|
4225
4355
|
xs: 12,
|
|
4226
4356
|
md: 6,
|
|
4227
4357
|
lg: 4
|
|
4228
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
4358
|
+
}, /*#__PURE__*/React__default.createElement(TypographyContainer, {
|
|
4229
4359
|
variant: "h5",
|
|
4230
4360
|
gutterBottom: true
|
|
4231
|
-
}, /*#__PURE__*/React__default.createElement(md.
|
|
4361
|
+
}, /*#__PURE__*/React__default.createElement(md.MdOutlineCall, {
|
|
4362
|
+
style: {
|
|
4363
|
+
fontSize: '3rem',
|
|
4364
|
+
color: primaryColor,
|
|
4365
|
+
marginRight: '1rem'
|
|
4366
|
+
}
|
|
4367
|
+
}), (customerData === null || customerData === void 0 ? void 0 : (_customerData$custome3 = customerData.customerDto) === null || _customerData$custome3 === void 0 ? void 0 : _customerData$custome3.salesRepresentativePhone) || 'N/A')), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
4232
4368
|
item: true,
|
|
4233
4369
|
xs: 12,
|
|
4234
4370
|
md: 6,
|
|
4235
4371
|
lg: 4
|
|
4236
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
4372
|
+
}, /*#__PURE__*/React__default.createElement(TypographyContainer, {
|
|
4237
4373
|
variant: "h5",
|
|
4238
4374
|
gutterBottom: true
|
|
4239
|
-
}, /*#__PURE__*/React__default.createElement(md.
|
|
4375
|
+
}, /*#__PURE__*/React__default.createElement(md.MdMailOutline, {
|
|
4376
|
+
style: {
|
|
4377
|
+
fontSize: '3rem',
|
|
4378
|
+
color: primaryColor,
|
|
4379
|
+
marginRight: '1rem'
|
|
4380
|
+
}
|
|
4381
|
+
}), (customerData === null || customerData === void 0 ? void 0 : (_customerData$custome4 = customerData.customerDto) === null || _customerData$custome4 === void 0 ? void 0 : _customerData$custome4.salesRepresentativeEmail) || 'N/A'))))))), /*#__PURE__*/React__default.createElement(TotalRoot, null, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
4240
4382
|
container: true,
|
|
4241
4383
|
spacing: 4
|
|
4242
4384
|
}, totalDataSource === null || totalDataSource === void 0 ? void 0 : totalDataSource.map(function (data) {
|
|
@@ -4253,8 +4395,11 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
4253
4395
|
}, /*#__PURE__*/React__default.createElement(TotalContainer, {
|
|
4254
4396
|
flexDirection: "row",
|
|
4255
4397
|
justifyContent: "space-between"
|
|
4256
|
-
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", null, data === null || data === void 0 ? void 0 : data.name), /*#__PURE__*/React__default.createElement("h3", null, "" + (isAmount ?
|
|
4257
|
-
}))), /*#__PURE__*/React__default.createElement(
|
|
4398
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", null, data === null || data === void 0 ? void 0 : data.name), /*#__PURE__*/React__default.createElement("h3", null, "" + (isAmount ? renderMoney(data === null || data === void 0 ? void 0 : data.value) : data === null || data === void 0 ? void 0 : data.value))), /*#__PURE__*/React__default.createElement("div", null, isAmount ? /*#__PURE__*/React__default.createElement(md.MdMonetizationOn, null) : /*#__PURE__*/React__default.createElement(gr.GrStackOverflow, null))));
|
|
4399
|
+
}))), /*#__PURE__*/React__default.createElement(TableContainer, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TypographyContainer, {
|
|
4400
|
+
variant: "h5",
|
|
4401
|
+
gutterBottom: true
|
|
4402
|
+
}, "Recent Orders")), /*#__PURE__*/React__default.createElement(APITable, {
|
|
4258
4403
|
cacheFilters: true,
|
|
4259
4404
|
pagination: false,
|
|
4260
4405
|
scroll: {
|
|
@@ -4266,8 +4411,31 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
4266
4411
|
url: "/ecommerce/dashboard/orderTable"
|
|
4267
4412
|
},
|
|
4268
4413
|
rowKey: 'masterProductId'
|
|
4269
|
-
}));
|
|
4414
|
+
})));
|
|
4270
4415
|
};
|
|
4416
|
+
var Root = styled.div(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: 2rem;\n"])), function (props) {
|
|
4417
|
+
return props.backgroundColor || '#1F1B1B';
|
|
4418
|
+
});
|
|
4419
|
+
var TitleContainer = styled.h4(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n span,\n strong {\n color: ", ";\n font-size: 2.5rem;\n }\n"])), function (props) {
|
|
4420
|
+
return props.primaryColor || '#fff';
|
|
4421
|
+
});
|
|
4422
|
+
var MeetContainer = styled.h4(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n span {\n color: ", ";\n font-size: 2rem;\n }\n strong {\n color: #fff;\n font-size: 2rem;\n }\n"])), function (props) {
|
|
4423
|
+
return props.primaryColor;
|
|
4424
|
+
});
|
|
4425
|
+
var TypographyContainer = styled(material.Typography)(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
|
|
4426
|
+
return props.primaryColor || '#fff';
|
|
4427
|
+
});
|
|
4428
|
+
var CardMediaContainer = styled(material.CardMedia)(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n border-radius: 20px;\n"])));
|
|
4429
|
+
var CardContainer = styled(material.Card)(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n background-color: ", " !important;\n border-radius: 20px !important;\n margin: 1.2rem 0;\n box-shadow: 0px 0px 4px 0px;\n"])), function (props) {
|
|
4430
|
+
return props.secondaryColor || '#2B2B4048';
|
|
4431
|
+
});
|
|
4432
|
+
var TotalRoot = styled.div(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteralLoose(["\n margin: 1.2rem 0;\n"])));
|
|
4433
|
+
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 p {\n font-size: 18px;\n font-weight: 600;\n color: #fff;\n margin-bottom: 1rem;\n }\n h3 {\n font-size: 27px;\n font-weight: 600;\n color: #746e88;\n }\n svg {\n font-size: 38px;\n color: #fff;\n }\n"])), function (props) {
|
|
4434
|
+
return props.secondaryColor || '#2B2B4048';
|
|
4435
|
+
});
|
|
4436
|
+
var TableContainer = styled.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n margin: 1.2rem 0;\n border-radius: 20px;\n"])));
|
|
4437
|
+
|
|
4438
|
+
var _templateObject$b;
|
|
4271
4439
|
|
|
4272
4440
|
var SideMenuItemComponent = function SideMenuItemComponent(props) {
|
|
4273
4441
|
var className = props.className,
|
|
@@ -4320,9 +4488,7 @@ var SideMenuItem = function SideMenuItem(props) {
|
|
|
4320
4488
|
className: classes.menuItem,
|
|
4321
4489
|
link: link,
|
|
4322
4490
|
onClick: handleClick
|
|
4323
|
-
}, !!Icon && /*#__PURE__*/React__default.createElement(material.
|
|
4324
|
-
className: classes.menuItemIcon
|
|
4325
|
-
}, /*#__PURE__*/React__default.createElement(Icon, null)), /*#__PURE__*/React__default.createElement(material.ListItemText, {
|
|
4491
|
+
}, !!Icon && /*#__PURE__*/React__default.createElement(ListItemIconContainer, null, /*#__PURE__*/React__default.createElement(Icon, null)), /*#__PURE__*/React__default.createElement(material.ListItemText, {
|
|
4326
4492
|
primary: name,
|
|
4327
4493
|
inset: !Icon
|
|
4328
4494
|
}), isExpandable && !open && /*#__PURE__*/React__default.createElement(md.MdExpandMore, null), isExpandable && open && /*#__PURE__*/React__default.createElement(md.MdExpandLess, null));
|
|
@@ -4350,12 +4516,10 @@ var useStyles = styles.makeStyles(function (theme) {
|
|
|
4350
4516
|
color: '#fff'
|
|
4351
4517
|
}
|
|
4352
4518
|
}
|
|
4353
|
-
},
|
|
4354
|
-
menuItemIcon: {
|
|
4355
|
-
color: '#97c05c'
|
|
4356
4519
|
}
|
|
4357
4520
|
});
|
|
4358
4521
|
});
|
|
4522
|
+
var ListItemIconContainer = styled(material.ListItemIcon)(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n color: #fff !important;\n"])));
|
|
4359
4523
|
|
|
4360
4524
|
var sideMenuItems = [{
|
|
4361
4525
|
name: 'Dashboard',
|
|
@@ -4363,10 +4527,8 @@ var sideMenuItems = [{
|
|
|
4363
4527
|
}];
|
|
4364
4528
|
|
|
4365
4529
|
var SideMenu = function SideMenu() {
|
|
4366
|
-
var classes = useStyles$1();
|
|
4367
4530
|
return /*#__PURE__*/React__default.createElement(material.List, {
|
|
4368
4531
|
component: "nav",
|
|
4369
|
-
className: classes.appMenu,
|
|
4370
4532
|
disablePadding: true
|
|
4371
4533
|
}, sideMenuItems.map(function (item, index) {
|
|
4372
4534
|
return /*#__PURE__*/React__default.createElement(SideMenuItem, _extends({}, item, {
|
|
@@ -4375,60 +4537,28 @@ var SideMenu = function SideMenu() {
|
|
|
4375
4537
|
}));
|
|
4376
4538
|
};
|
|
4377
4539
|
|
|
4378
|
-
var
|
|
4379
|
-
var useStyles$1 = styles.makeStyles(function (theme) {
|
|
4380
|
-
return styles.createStyles({
|
|
4381
|
-
appMenu: {
|
|
4382
|
-
width: '100%'
|
|
4383
|
-
},
|
|
4384
|
-
navList: {
|
|
4385
|
-
width: drawerWidth
|
|
4386
|
-
},
|
|
4387
|
-
menuItem: {
|
|
4388
|
-
width: drawerWidth
|
|
4389
|
-
},
|
|
4390
|
-
menuItemIcon: {
|
|
4391
|
-
color: '#97c05c'
|
|
4392
|
-
}
|
|
4393
|
-
});
|
|
4394
|
-
});
|
|
4540
|
+
var _templateObject$c, _templateObject2$b, _templateObject3$b;
|
|
4395
4541
|
|
|
4396
4542
|
var AccountDetails = function AccountDetails(_ref) {
|
|
4397
|
-
var
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4543
|
+
var _ref$primaryColor = _ref.primaryColor,
|
|
4544
|
+
primaryColor = _ref$primaryColor === void 0 ? '#BF262D' : _ref$primaryColor;
|
|
4545
|
+
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(material.CssBaseline, null), /*#__PURE__*/React__default.createElement(Root$1, {
|
|
4546
|
+
primaryColor: primaryColor
|
|
4547
|
+
}, /*#__PURE__*/React__default.createElement(ContainerDrawer, {
|
|
4401
4548
|
variant: "permanent",
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
4406
|
-
|
|
4407
|
-
}
|
|
4408
|
-
maxWidth: "lg",
|
|
4409
|
-
className: classes.container
|
|
4410
|
-
}, /*#__PURE__*/React__default.createElement(Dashboard, null)))));
|
|
4549
|
+
primaryColor: primaryColor
|
|
4550
|
+
}, /*#__PURE__*/React__default.createElement(SideMenu, {
|
|
4551
|
+
primaryColor: primaryColor
|
|
4552
|
+
})), /*#__PURE__*/React__default.createElement(Main, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Dashboard, {
|
|
4553
|
+
primaryColor: primaryColor
|
|
4554
|
+
})))));
|
|
4411
4555
|
};
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
},
|
|
4419
|
-
drawerPaper: {
|
|
4420
|
-
position: 'relative',
|
|
4421
|
-
whiteSpace: 'nowrap',
|
|
4422
|
-
width: drawerWidth$1,
|
|
4423
|
-
background: '#535454',
|
|
4424
|
-
color: '#fff'
|
|
4425
|
-
},
|
|
4426
|
-
content: {
|
|
4427
|
-
flexGrow: 1,
|
|
4428
|
-
overflow: 'auto'
|
|
4429
|
-
},
|
|
4430
|
-
container: {}
|
|
4431
|
-
};
|
|
4556
|
+
var Root$1 = styled.div(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: ", "30;\n"])), function (props) {
|
|
4557
|
+
return props.primaryColor || '#535454';
|
|
4558
|
+
});
|
|
4559
|
+
var Main = styled.main(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteralLoose(["\n flex-grow: 1;\n overflow: auto;\n"])));
|
|
4560
|
+
var ContainerDrawer = styled(material.Drawer)(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n height: 100%;\n .MuiDrawer-paper {\n position: relative;\n white-space: nowrap;\n width: 240px;\n background-color: ", ";\n color: #fff;\n z-index: 9;\n }\n"])), function (props) {
|
|
4561
|
+
return props.primaryColor || '#535454';
|
|
4432
4562
|
});
|
|
4433
4563
|
|
|
4434
4564
|
var Breakpoint = function Breakpoint() {};
|