freemium-ui 1.0.132 → 1.0.136
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/lib/index.cjs.js +5 -6
- package/lib/index.esm.js +6 -7
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -18196,16 +18196,15 @@ var BoxedRadioGroup$1 = withDefaults(BoxedRadioGroup, defaultProps$6);
|
|
|
18196
18196
|
BoxedRadio$1.Group = BoxedRadioGroup$1;
|
|
18197
18197
|
|
|
18198
18198
|
const Table = (props) => {
|
|
18199
|
-
const { columns = [], data = [], count = 0, offset = 0, limit = 0, next = false, previous = false,
|
|
18199
|
+
const { columns = [], data = [], count = 0, offset = 0, limit = 0, next = false, previous = false, showPagination = true, showSelectAllInTable = false, showActions = true, showSelections = true, showFilters = true, showOptions = true, rowMenuOptions = () => [], onRowSelect, onRowClick, onPrevious, onSelectAll, onNext, onMenuOptionSelect, headerComponent, initialState, state, filterComponent, } = props;
|
|
18200
18200
|
const [showFilterPane, toggleFilterPane] = React__default.useState(showFilters);
|
|
18201
18201
|
const [anchorEl, setAnchorEl] = React__default.useState(null);
|
|
18202
18202
|
const tableInstance = reactTable.useTable({
|
|
18203
18203
|
columns,
|
|
18204
18204
|
data,
|
|
18205
|
-
initialState
|
|
18206
|
-
|
|
18207
|
-
|
|
18208
|
-
}, reactTable.useRowSelect, (hooks) => {
|
|
18205
|
+
initialState,
|
|
18206
|
+
state,
|
|
18207
|
+
}, reactTable.useRowSelect, reactTable.useColumnOrder, (hooks) => {
|
|
18209
18208
|
hooks.visibleColumns.push((c) => showSelections
|
|
18210
18209
|
? [
|
|
18211
18210
|
{
|
|
@@ -18296,7 +18295,7 @@ const Table = (props) => {
|
|
|
18296
18295
|
setAnchorEl(null);
|
|
18297
18296
|
}, closeMenuCallback: () => setAnchorEl(null) }))))))));
|
|
18298
18297
|
})))),
|
|
18299
|
-
showFilters && showFilterPane && (React__default.createElement(TableFilters, { className: "table-filters" }, filterComponent
|
|
18298
|
+
showFilters && showFilterPane && filterComponent && (React__default.createElement(TableFilters, { className: "table-filters" }, filterComponent)))));
|
|
18300
18299
|
};
|
|
18301
18300
|
const TableContainer = Ye.div `
|
|
18302
18301
|
flex: 1;
|
package/lib/index.esm.js
CHANGED
|
@@ -8,7 +8,7 @@ import 'react-dates/initialize';
|
|
|
8
8
|
import { DayPickerSingleDateController } from 'react-dates';
|
|
9
9
|
import { END_DATE, START_DATE } from 'react-dates/constants';
|
|
10
10
|
import { Tooltip as Tooltip$1 } from 'react-tippy';
|
|
11
|
-
import { useTable, useRowSelect,
|
|
11
|
+
import { useTable, useRowSelect, useColumnOrder, useMountedLayoutEffect, useBlockLayout, useResizeColumns, useSortBy, usePagination } from 'react-table';
|
|
12
12
|
|
|
13
13
|
function stylis_min (W) {
|
|
14
14
|
function M(d, c, e, h, a) {
|
|
@@ -18187,16 +18187,15 @@ var BoxedRadioGroup$1 = withDefaults(BoxedRadioGroup, defaultProps$6);
|
|
|
18187
18187
|
BoxedRadio$1.Group = BoxedRadioGroup$1;
|
|
18188
18188
|
|
|
18189
18189
|
const Table = (props) => {
|
|
18190
|
-
const { columns = [], data = [], count = 0, offset = 0, limit = 0, next = false, previous = false,
|
|
18190
|
+
const { columns = [], data = [], count = 0, offset = 0, limit = 0, next = false, previous = false, showPagination = true, showSelectAllInTable = false, showActions = true, showSelections = true, showFilters = true, showOptions = true, rowMenuOptions = () => [], onRowSelect, onRowClick, onPrevious, onSelectAll, onNext, onMenuOptionSelect, headerComponent, initialState, state, filterComponent, } = props;
|
|
18191
18191
|
const [showFilterPane, toggleFilterPane] = React__default.useState(showFilters);
|
|
18192
18192
|
const [anchorEl, setAnchorEl] = React__default.useState(null);
|
|
18193
18193
|
const tableInstance = useTable({
|
|
18194
18194
|
columns,
|
|
18195
18195
|
data,
|
|
18196
|
-
initialState
|
|
18197
|
-
|
|
18198
|
-
|
|
18199
|
-
}, useRowSelect, (hooks) => {
|
|
18196
|
+
initialState,
|
|
18197
|
+
state,
|
|
18198
|
+
}, useRowSelect, useColumnOrder, (hooks) => {
|
|
18200
18199
|
hooks.visibleColumns.push((c) => showSelections
|
|
18201
18200
|
? [
|
|
18202
18201
|
{
|
|
@@ -18287,7 +18286,7 @@ const Table = (props) => {
|
|
|
18287
18286
|
setAnchorEl(null);
|
|
18288
18287
|
}, closeMenuCallback: () => setAnchorEl(null) }))))))));
|
|
18289
18288
|
})))),
|
|
18290
|
-
showFilters && showFilterPane && (React__default.createElement(TableFilters, { className: "table-filters" }, filterComponent
|
|
18289
|
+
showFilters && showFilterPane && filterComponent && (React__default.createElement(TableFilters, { className: "table-filters" }, filterComponent)))));
|
|
18291
18290
|
};
|
|
18292
18291
|
const TableContainer = Ye.div `
|
|
18293
18292
|
flex: 1;
|