@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.es.js
CHANGED
|
@@ -49,9 +49,7 @@ import MuiRadio from '@material-ui/core/Radio';
|
|
|
49
49
|
import TextField from '@material-ui/core/TextField';
|
|
50
50
|
export { default as TextField } from '@material-ui/core/TextField';
|
|
51
51
|
import MuiSwitch from '@material-ui/core/Switch';
|
|
52
|
-
import { useTable } from 'react-table
|
|
53
|
-
import { usePagination } from 'react-table/src/plugin-hooks/usePagination.js';
|
|
54
|
-
import { useSortBy } from 'react-table/src/plugin-hooks/useSortBy.js';
|
|
52
|
+
import { useTable, useSortBy, usePagination } from 'react-table';
|
|
55
53
|
import { Pagination } from '@material-ui/lab';
|
|
56
54
|
export { default as Tab } from '@material-ui/core/Tab';
|
|
57
55
|
export { default as Tabs } from '@material-ui/core/Tabs';
|
|
@@ -1227,7 +1225,9 @@ var Table = function (props) {
|
|
|
1227
1225
|
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;
|
|
1228
1226
|
var classes = useTableStyles(props);
|
|
1229
1227
|
var columns = useMemo(function () { return makeColumns({ columns: rawColumns, actions: actions, actionColumnId: actionColumnId }); }, [rawColumns, actions]);
|
|
1228
|
+
// @ts-expect-error @types/react-table issue
|
|
1230
1229
|
var instance = useTable({ columns: columns, data: data, disableSortBy: !sortable }, useSortBy, usePagination);
|
|
1230
|
+
// @ts-expect-error @types/react-table issue
|
|
1231
1231
|
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;
|
|
1232
1232
|
var isPaginated = pageCount > 1;
|
|
1233
1233
|
var isEmpty = rows.length === 0;
|