buildgrid-ui 1.3.6 → 1.4.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.
@@ -0,0 +1,9 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ type EmptyItemsProps = {
3
+ notFoundText: string;
4
+ notFoundAction?: ReactElement;
5
+ icon?: ReactNode;
6
+ className?: string;
7
+ };
8
+ export declare const EmptyItems: (props: EmptyItemsProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export * from './empty-message';
@@ -1,3 +1,4 @@
1
+ export * from './empty-message';
1
2
  export * from './help-carousel';
2
3
  export * from './month-navigator';
3
4
  export * from './pagination-controls';
@@ -0,0 +1 @@
1
+ export * from './paginated-items';
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ interface PaginatedItemsProps<Entry> {
3
+ data: Entry[];
4
+ perPage?: number;
5
+ initialPage?: number;
6
+ itemsContainerClass?: string;
7
+ children: (item: Entry, index: number) => React.ReactNode;
8
+ emptyState?: ReactNode;
9
+ isLoading?: boolean;
10
+ loadingVariant?: 'loader' | 'skeleton';
11
+ showItemsCounter?: boolean;
12
+ }
13
+ export declare const PaginatedItems: <Entry extends {
14
+ id?: string;
15
+ }>(props: PaginatedItemsProps<Entry>) => import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -1,7 +1,9 @@
1
1
  interface PaginationControlsProps {
2
- currentPage: number;
2
+ current?: number;
3
3
  totalPages: number;
4
+ maxVisiblePages?: number;
5
+ mode?: 'full' | 'minimal';
4
6
  onPageChange: (page: number) => void;
5
7
  }
6
- export declare function PaginationControls({ currentPage, totalPages, onPageChange, }: PaginationControlsProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function PaginationControls({ totalPages, maxVisiblePages, mode, onPageChange, current, }: PaginationControlsProps): import("react/jsx-runtime").JSX.Element;
7
9
  export {};