UNPKG

@up-group-ui/react-controls

Version:
59 lines (58 loc) 2.96 kB
import * as React from 'react'; import { UpSelectOption } from '../../Inputs/Select'; import { WithThemeProps } from '../../../Common/theming/withTheme'; import { UpThemeInterface } from '../../../Common/theming'; export interface UpPaginationState { page: number; skip: number; take: number; } export interface UpPaginationProps extends WithThemeProps { total: number; skip?: number; take?: number; page?: number; nbByPageMessage?: string; takes?: Array<UpSelectOption>; isTakeChangeEnable?: boolean; isExtraInfoDisplay?: boolean; nextLabel?: string; previousLabel?: string; paginationNavigationSeparator?: string; generatePagesNavigation?: (page: any, total: any, take: any) => Array<number>; renderResultMessage?: (theme: UpThemeInterface, from: number, to: number, total: number) => JSX.Element; onPageChange: (page: number, take: number, skip: number) => void; } declare const _default: { new (props: any, context: any): { render(): JSX.Element; context: any; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<UpPaginationProps, "children" | "theme">>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly<Omit<UpPaginationProps, "children" | "theme">> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<Omit<UpPaginationProps, "children" | "theme">>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<UpPaginationProps, "children" | "theme">>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<Omit<UpPaginationProps, "children" | "theme">>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<Omit<UpPaginationProps, "children" | "theme">>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<UpPaginationProps, "children" | "theme">>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<Omit<UpPaginationProps, "children" | "theme">>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<UpPaginationProps, "children" | "theme">>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextTypes: { theme: import("prop-types").Requireable<object>; }; contextType?: React.Context<any>; }; export default _default;