@nimbus-ds/components 5.6.0 → 5.7.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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Nimbus is an open-source Design System created by Tiendanube / Nuvesmhop’s team to empower and enhance more stories every day, with simplicity, accessibility, consistency and performance.
|
|
4
4
|
|
|
5
|
+
## 2025-03-03 `5.5.7`
|
|
6
|
+
|
|
7
|
+
### 🎉 New features
|
|
8
|
+
|
|
9
|
+
- The `renderItem` property is added to the `Pagination` component, to be able to have the link functionality in the buttons. ([#269](https://github.com/TiendaNube/nimbus-design-system/pull/269) by [@hrchioest](https://github.com/hrchioest))
|
|
10
|
+
|
|
5
11
|
## 2025-02-27 `5.5.6`
|
|
6
12
|
|
|
7
13
|
#### 🐛 Bug fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -3251,6 +3251,10 @@ export interface ModalProperties extends ModalSprinkle {
|
|
|
3251
3251
|
}
|
|
3252
3252
|
export type ModalProps = ModalProperties & HTMLAttributes<HTMLDivElement>;
|
|
3253
3253
|
export declare const Modal: React.FC<ModalProps> & ModalComponents;
|
|
3254
|
+
export interface PaginationItemData {
|
|
3255
|
+
pageNumber: number | string;
|
|
3256
|
+
isCurrent: boolean;
|
|
3257
|
+
}
|
|
3254
3258
|
export interface PaginationProperties {
|
|
3255
3259
|
/**
|
|
3256
3260
|
* The currently selected page.
|
|
@@ -3270,6 +3274,10 @@ export interface PaginationProperties {
|
|
|
3270
3274
|
* @default true
|
|
3271
3275
|
*/
|
|
3272
3276
|
showNumbers?: boolean;
|
|
3277
|
+
/**
|
|
3278
|
+
* Custom render function for pagination items.
|
|
3279
|
+
*/
|
|
3280
|
+
renderItem?: (item: PaginationItemData) => React.ReactNode;
|
|
3273
3281
|
}
|
|
3274
3282
|
export type PaginationProps = PaginationProperties & HTMLAttributes<HTMLElement>;
|
|
3275
3283
|
export declare const Pagination: React.FC<PaginationProps>;
|