@popmenu/admin-ui 0.18.4-alpha.2 → 0.18.4-alpha.3
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.es.js
CHANGED
|
@@ -49,8 +49,10 @@ import MuiToggleButtonGroup from '@material-ui/lab/ToggleButtonGroup';
|
|
|
49
49
|
import MuiTooltip from '@material-ui/core/Tooltip';
|
|
50
50
|
import MuiAlertTitle from '@material-ui/lab/AlertTitle';
|
|
51
51
|
import Box$1 from '@material-ui/core/Box';
|
|
52
|
+
import { useTable } from 'react-table/src/hooks/useTable.js';
|
|
53
|
+
import { usePagination } from 'react-table/src/plugin-hooks/usePagination.js';
|
|
54
|
+
import { useSortBy } from 'react-table/src/plugin-hooks/useSortBy.js';
|
|
52
55
|
import { Pagination } from '@material-ui/lab';
|
|
53
|
-
import { useTable, useSortBy, usePagination } from 'react-table';
|
|
54
56
|
import MuiSnackbar from '@material-ui/core/Snackbar';
|
|
55
57
|
import createTheme from '@material-ui/core/styles/createTheme';
|
|
56
58
|
|
|
@@ -1779,9 +1781,7 @@ var Table = function (props) {
|
|
|
1779
1781
|
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;
|
|
1780
1782
|
var classes = useTableStyles(props);
|
|
1781
1783
|
var columns = useMemo(function () { return makeColumns({ columns: rawColumns, actions: actions, actionColumnId: actionColumnId }); }, [rawColumns, actions]);
|
|
1782
|
-
// @ts-expect-error @types/react-table issue
|
|
1783
1784
|
var instance = useTable({ columns: columns, data: data, disableSortBy: !sortable }, useSortBy, usePagination);
|
|
1784
|
-
// @ts-expect-error @types/react-table issue
|
|
1785
1785
|
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;
|
|
1786
1786
|
var isPaginated = pageCount > 1;
|
|
1787
1787
|
var isEmpty = rows.length === 0;
|