@yeverlibs/ds 1.0.13 → 1.1.0
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/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6199,10 +6199,12 @@ var TableContent = ({
|
|
|
6199
6199
|
let shouldPaginate = false;
|
|
6200
6200
|
if (searchParams?.has("perPage")) {
|
|
6201
6201
|
setItemsPerPage(perPage);
|
|
6202
|
+
nextReplaceUrl("perPage", String(perPage), pathname);
|
|
6202
6203
|
shouldPaginate = true;
|
|
6203
6204
|
}
|
|
6204
6205
|
if (searchParams?.has("search")) {
|
|
6205
6206
|
setSearchQuery(searchParam);
|
|
6207
|
+
nextReplaceUrl("search", searchParam, pathname);
|
|
6206
6208
|
shouldPaginate = true;
|
|
6207
6209
|
}
|
|
6208
6210
|
if (shouldPaginate) {
|
|
@@ -6503,12 +6505,8 @@ var TableContent = ({
|
|
|
6503
6505
|
const newPerPage = Number(e.target.value);
|
|
6504
6506
|
setItemsPerPage(newPerPage);
|
|
6505
6507
|
setCurrentPage(RESET_PAGE);
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
nextReplaceUrl("perPage", String(newPerPage), pathname)
|
|
6509
|
-
]).then(() => {
|
|
6510
|
-
handlePagination();
|
|
6511
|
-
});
|
|
6508
|
+
nextReplaceUrl("page", "1", pathname);
|
|
6509
|
+
nextReplaceUrl("perPage", String(newPerPage), pathname);
|
|
6512
6510
|
},
|
|
6513
6511
|
className: "block h-8 w-full cursor-pointer appearance-none rounded border border-gray-300 bg-white p-2 text-sm leading-tight text-gray-700 focus:border-gray-500 focus:bg-white focus:outline-none",
|
|
6514
6512
|
children: [
|