@megha-ui/react 1.2.428 → 1.2.430

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.
@@ -27,14 +27,14 @@ const Pagination = ({ currentPage, totalPages, handleChangePage, rowsPerPage, ha
27
27
  }
28
28
  return pageNumbers;
29
29
  };
30
- return (_jsx("div", { className: "pagination text-sm px-2.5", children: _jsxs("div", { children: [_jsx("button", { onClick: () => handleChangePage(currentPage - 1), disabled: currentPage === 1, style: currentPage === 1
31
- ? { cursor: "not-allowed", color: "var(--muted, #ccc)" }
32
- : {}, children: "Prev" }), renderPageNumbers(), _jsx("button", { onClick: () => handleChangePage(currentPage + 1), disabled: currentPage >= totalPages, style: currentPage >= totalPages
33
- ? { cursor: "not-allowed", color: "var(--muted, #ccc)" }
34
- : {}, children: "Next" }), _jsx(Dropdown, { options: rowsPerPageOptions.map((num) => ({
35
- label: num.toString(),
36
- value: num.toString(),
37
- })), selectedValues: [rowsPerPage.toString()], onChange: (selected) => handleChangeRowsPerPage(selected[0]), width: 70, menuFrom: "bottom", searchEnabled: false, maxDropdownHeight: 350 })] }) }));
30
+ return (_jsxs("div", { className: "pagination text-sm px-2.5", children: [_jsx("button", { onClick: () => handleChangePage(currentPage - 1), disabled: currentPage === 1, style: currentPage === 1
31
+ ? { cursor: "not-allowed", color: "var(--muted, #ccc)" }
32
+ : {}, children: "Prev" }), renderPageNumbers(), _jsx("button", { onClick: () => handleChangePage(currentPage + 1), disabled: currentPage >= totalPages, style: currentPage >= totalPages
33
+ ? { cursor: "not-allowed", color: "var(--muted, #ccc)" }
34
+ : {}, children: "Next" }), _jsx(Dropdown, { options: rowsPerPageOptions.map((num) => ({
35
+ label: num.toString(),
36
+ value: num.toString(),
37
+ })), selectedValues: [rowsPerPage.toString()], onChange: (selected) => handleChangeRowsPerPage(selected[0]), width: 70, menuFrom: "bottom", searchEnabled: false, maxDropdownHeight: 350 })] }));
38
38
  };
39
39
  export default Pagination;
40
40
  export { getPaginatedData, getTotalPages };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.428",
3
+ "version": "1.2.430",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",