@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.d.mts
CHANGED
|
@@ -513,6 +513,8 @@ interface PaginationProps {
|
|
|
513
513
|
current: number;
|
|
514
514
|
/** Total number of pages. */
|
|
515
515
|
total: number;
|
|
516
|
+
/** Maximum number of buttons to show. */
|
|
517
|
+
maxButtons?: number;
|
|
516
518
|
/**
|
|
517
519
|
* Callback to run when a page number is selected. You can use this to e.g.
|
|
518
520
|
* run setState on your component's page state.
|
package/dist/index.d.ts
CHANGED
|
@@ -513,6 +513,8 @@ interface PaginationProps {
|
|
|
513
513
|
current: number;
|
|
514
514
|
/** Total number of pages. */
|
|
515
515
|
total: number;
|
|
516
|
+
/** Maximum number of buttons to show. */
|
|
517
|
+
maxButtons?: number;
|
|
516
518
|
/**
|
|
517
519
|
* Callback to run when a page number is selected. You can use this to e.g.
|
|
518
520
|
* run setState on your component's page state.
|
package/dist/index.js
CHANGED
|
@@ -4394,7 +4394,7 @@ var pagination_button_trigger_default = PaginationButtonTrigger;
|
|
|
4394
4394
|
|
|
4395
4395
|
// src/components/pagination/components/pagination.tsx
|
|
4396
4396
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4397
|
-
var Pagination = ({ className, current, total, onSelect }) => {
|
|
4397
|
+
var Pagination = ({ className, current, total, maxButtons = 5, onSelect }) => {
|
|
4398
4398
|
const btnColorDisabled = (0, import_react65.useColorModeValue)("secondary.100", "primary.500");
|
|
4399
4399
|
const btnColor = (0, import_react65.useColorModeValue)("primary.500", "secondary.100");
|
|
4400
4400
|
const disabledPrevious = current === 1;
|
|
@@ -4407,7 +4407,6 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
4407
4407
|
}
|
|
4408
4408
|
};
|
|
4409
4409
|
const generatePages = () => {
|
|
4410
|
-
const maxButtons = 5;
|
|
4411
4410
|
const pageButtons = [];
|
|
4412
4411
|
let startPage;
|
|
4413
4412
|
let endPage;
|