@popmenu/common-ui 0.18.4-alpha.0 → 0.18.4-alpha.1
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/build/index.es.js +3 -3
- package/build/index.es.js.map +1 -1
- package/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -45,9 +45,7 @@ var MenuList = require('@material-ui/core/MenuList');
|
|
|
45
45
|
var MuiRadio = require('@material-ui/core/Radio');
|
|
46
46
|
var TextField = require('@material-ui/core/TextField');
|
|
47
47
|
var MuiSwitch = require('@material-ui/core/Switch');
|
|
48
|
-
var
|
|
49
|
-
var usePagination_js = require('react-table/src/plugin-hooks/usePagination.js');
|
|
50
|
-
var useSortBy_js = require('react-table/src/plugin-hooks/useSortBy.js');
|
|
48
|
+
var reactTable = require('react-table');
|
|
51
49
|
var lab = require('@material-ui/lab');
|
|
52
50
|
var Tab = require('@material-ui/core/Tab');
|
|
53
51
|
var Tabs = require('@material-ui/core/Tabs');
|
|
@@ -1293,7 +1291,9 @@ var Table = function (props) {
|
|
|
1293
1291
|
var rawColumns = props.columns, data = props.data, actions = props.actions, sortable = props.sortable, emptyMessage = props.emptyMessage, EmptyImage = props.EmptyImage, isLoading = props.loading, enableMinHeight = props.enableMinHeight;
|
|
1294
1292
|
var classes = useTableStyles(props);
|
|
1295
1293
|
var columns = React.useMemo(function () { return makeColumns({ columns: rawColumns, actions: actions, actionColumnId: actionColumnId }); }, [rawColumns, actions]);
|
|
1296
|
-
|
|
1294
|
+
// @ts-expect-error @types/react-table issue
|
|
1295
|
+
var instance = reactTable.useTable({ columns: columns, data: data, disableSortBy: !sortable }, reactTable.useSortBy, reactTable.usePagination);
|
|
1296
|
+
// @ts-expect-error @types/react-table issue
|
|
1297
1297
|
var getTableProps = instance.getTableProps, getTableBodyProps = instance.getTableBodyProps, headerGroups = instance.headerGroups, page = instance.page, prepareRow = instance.prepareRow, pageCount = instance.pageCount, gotoPage = instance.gotoPage, state = instance.state, rows = instance.rows;
|
|
1298
1298
|
var isPaginated = pageCount > 1;
|
|
1299
1299
|
var isEmpty = rows.length === 0;
|