@ctlyst.id/internal-ui 5.7.3 → 5.7.4
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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -4132,7 +4132,7 @@ var pagination_button_trigger_default = PaginationButtonTrigger;
|
|
|
4132
4132
|
|
|
4133
4133
|
// src/components/pagination/components/pagination.tsx
|
|
4134
4134
|
import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4135
|
-
var Pagination = ({ className, current, total, onSelect }) => {
|
|
4135
|
+
var Pagination = ({ className, current, total, maxButtons = 5, onSelect }) => {
|
|
4136
4136
|
const btnColorDisabled = useColorModeValue5("secondary.100", "primary.500");
|
|
4137
4137
|
const btnColor = useColorModeValue5("primary.500", "secondary.100");
|
|
4138
4138
|
const disabledPrevious = current === 1;
|
|
@@ -4145,7 +4145,6 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
4145
4145
|
}
|
|
4146
4146
|
};
|
|
4147
4147
|
const generatePages = () => {
|
|
4148
|
-
const maxButtons = 5;
|
|
4149
4148
|
const pageButtons = [];
|
|
4150
4149
|
let startPage;
|
|
4151
4150
|
let endPage;
|