@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 CHANGED
@@ -2,6 +2,8 @@
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
+ ## 2024-12-18 `5.6.0`
6
+
5
7
  ## 2024-12-18 `5.5.5`
6
8
 
7
9
  #### 🐛 Bug fixes
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>;