@worldresources/wri-design-systems 2.126.2 → 2.127.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/dist/index.d.ts CHANGED
@@ -452,11 +452,11 @@ type PaginationProps = {
452
452
  currentPage: number;
453
453
  totalItems: number;
454
454
  pageSize: number;
455
- compact?: boolean;
455
+ variant?: 'default' | 'compact' | 'compact-with-buttons';
456
456
  onPageChange?: (page: number) => void;
457
457
  };
458
458
 
459
- declare const Pagination: ({ totalItems, pageSize, currentPage, compact, onPageChange, }: PaginationProps) => _emotion_react_jsx_runtime.JSX.Element;
459
+ declare const Pagination: ({ totalItems, pageSize, currentPage, variant, onPageChange, }: PaginationProps) => _emotion_react_jsx_runtime.JSX.Element;
460
460
 
461
461
  type TableProps = {
462
462
  columns: {
@@ -477,12 +477,12 @@ type TableProps = {
477
477
  showItemCount?: boolean;
478
478
  showItemCountText?: boolean;
479
479
  };
480
- onSortColumn: (sortColumn: {
480
+ onSortColumn?: (sortColumn: {
481
481
  key: string;
482
482
  order: string;
483
483
  }) => void;
484
- onPageSizeChange: (pageSize: number) => void;
485
- onPageChange: (page: number) => void;
484
+ onPageSizeChange?: (pageSize: number) => void;
485
+ onPageChange?: (page: number) => void;
486
486
  onAllItemsSelected?: (checked: boolean) => void;
487
487
  };
488
488