@nimbus-ds/components 5.5.5 → 5.6.0-rc.1
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/CHANGELOG.md +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3245,6 +3245,10 @@ export interface ModalProperties extends ModalSprinkle {
|
|
|
3245
3245
|
}
|
|
3246
3246
|
export type ModalProps = ModalProperties & HTMLAttributes<HTMLDivElement>;
|
|
3247
3247
|
export declare const Modal: React.FC<ModalProps> & ModalComponents;
|
|
3248
|
+
export interface PaginationItemData {
|
|
3249
|
+
pageNumber: number | string;
|
|
3250
|
+
isCurrent: boolean;
|
|
3251
|
+
}
|
|
3248
3252
|
export interface PaginationProperties {
|
|
3249
3253
|
/**
|
|
3250
3254
|
* The currently selected page.
|
|
@@ -3264,6 +3268,10 @@ export interface PaginationProperties {
|
|
|
3264
3268
|
* @default true
|
|
3265
3269
|
*/
|
|
3266
3270
|
showNumbers?: boolean;
|
|
3271
|
+
/**
|
|
3272
|
+
* Custom render function for pagination items.
|
|
3273
|
+
*/
|
|
3274
|
+
renderItem?: (item: PaginationItemData) => React.ReactNode;
|
|
3267
3275
|
}
|
|
3268
3276
|
export type PaginationProps = PaginationProperties & HTMLAttributes<HTMLElement>;
|
|
3269
3277
|
export declare const Pagination: React.FC<PaginationProps>;
|