@banyan_cloud/roots 1.0.31 → 1.0.32
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/cjs/index.js +8 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +8 -3
- package/package.json +1 -1
- package/styles/main.css.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -35496,7 +35496,8 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
35496
35496
|
var className = props.className,
|
|
35497
35497
|
floating = props.floating,
|
|
35498
35498
|
paginationState = props.paginationState,
|
|
35499
|
-
paginationDispatch = props.paginationDispatch
|
|
35499
|
+
paginationDispatch = props.paginationDispatch,
|
|
35500
|
+
loading = props.loading;
|
|
35500
35501
|
var totalPages = paginationState.totalPages,
|
|
35501
35502
|
currentPage = paginationState.currentPage,
|
|
35502
35503
|
step = paginationState.step;
|
|
@@ -35515,6 +35516,9 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
35515
35516
|
totalPages: totalPages
|
|
35516
35517
|
});
|
|
35517
35518
|
}, [currentPage, step]);
|
|
35519
|
+
if (loading) {
|
|
35520
|
+
return null;
|
|
35521
|
+
}
|
|
35518
35522
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
35519
35523
|
ref: ref,
|
|
35520
35524
|
className: classes(modules_a3d40e77.root, className, floating ? modules_a3d40e77.floating : ''),
|
|
@@ -36750,11 +36754,12 @@ var Table = function Table(props) {
|
|
|
36750
36754
|
customCells: customCells,
|
|
36751
36755
|
className: modules_2e8406c7.table,
|
|
36752
36756
|
loading: loading
|
|
36753
|
-
}), paginationData != null &&
|
|
36757
|
+
}), paginationData != null && /*#__PURE__*/jsxRuntime.jsx(Pagination, _objectSpread2(_objectSpread2({
|
|
36754
36758
|
className: classes(modules_2e8406c7.pagination, floating ? modules_2e8406c7.floating : ''),
|
|
36755
36759
|
ref: paginationRef
|
|
36756
36760
|
}, paginationData), {}, {
|
|
36757
|
-
floating: floating
|
|
36761
|
+
floating: floating,
|
|
36762
|
+
loading: loading
|
|
36758
36763
|
}))]
|
|
36759
36764
|
});
|
|
36760
36765
|
};
|