UNPKG

@xcritical/pagination

Version:
11 lines (10 loc) 1.09 kB
import { IThemeNamespace } from '@xcritical/theme'; import { ISelectBaseTheme } from '@xcritical/select'; import { ButtonGroupTheme, ButtonTheme } from '@xcritical/button'; import { IPaginationTheme, IPageSizeOption } from './interfaces'; export declare const getPaginationStyles: (theme?: IThemeNamespace<IPaginationTheme> | undefined, propertyPath?: string[] | undefined) => any; export declare const getPaginationButtonGroupTheme: (theme?: IThemeNamespace<IPaginationTheme> | undefined) => IThemeNamespace<ButtonGroupTheme>; export declare const getPaginationButtonTheme: (theme?: IThemeNamespace<IPaginationTheme> | undefined) => IThemeNamespace<ButtonTheme>; export declare const getPaginationSelectTheme: (theme?: IThemeNamespace<IPaginationTheme> | undefined) => IThemeNamespace<ISelectBaseTheme>; export declare const mapPageSizeOption: (pageSize: number) => IPageSizeOption; export declare const getVisiblePagesArray: (currentPage: number, totalPages: number, isAvailableVisibleRange: boolean, availableVisibleRange: number, availableVisibleRangeCenter: number) => number[];