@nimbus-ds/components 5.6.0 β†’ 5.7.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 CHANGED
@@ -2,6 +2,24 @@
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-07 `5.5.7`
6
+
7
+ #### πŸ’‘ Others
8
+
9
+ #### πŸ› Bug fixes
10
+
11
+ - Docgen process won't break if some of the builds fails in between ([#272](https://github.com/TiendaNube/nimbus-design-system/pull/272) by [@joacotornello](https://github.com/joacotornello))
12
+
13
+ #### πŸ’‘ Others
14
+
15
+ - Added docs. ([#272](https://github.com/TiendaNube/nimbus-design-system/pull/272) by [@joacotornello](https://github.com/joacotornello))
16
+
17
+ ## 2025-03-03 `5.5.7`
18
+
19
+ ### πŸŽ‰ New features
20
+
21
+ - 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))
22
+
5
23
  ## 2025-02-27 `5.5.6`
6
24
 
7
25
  #### πŸ› 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>;