@reapit/elements 3.9.2 → 3.9.4
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/assets/system-icons/backSystem.svg +1 -1
- package/assets/system-icons/nextSystem.svg +1 -1
- package/dist/cjs/components/pagination/__styles__/index.d.ts +3 -0
- package/dist/cjs/components/pagination/pagination.d.ts +7 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/pagination/__styles__/index.d.ts +3 -0
- package/dist/esm/components/pagination/pagination.d.ts +7 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.css +90 -89
- package/package.json +5 -5
|
@@ -5,6 +5,9 @@ export declare const ElPaginationWrap: import("@linaria/core").StyledMeta & impo
|
|
|
5
5
|
export declare const ElPaginationText: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|
|
7
7
|
}>;
|
|
8
|
+
export declare const ElPaginationInput: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
9
|
+
as?: import("react").ElementType<any> | undefined;
|
|
10
|
+
}>;
|
|
8
11
|
export declare const ElPaginationButton: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
9
12
|
as?: import("react").ElementType<any> | undefined;
|
|
10
13
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react';
|
|
1
|
+
import { ChangeEvent, Dispatch, FC, HTMLAttributes, InputHTMLAttributes, SetStateAction } from 'react';
|
|
2
2
|
export interface PaginationProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
callback: (nextPage: number) => void;
|
|
4
4
|
currentPage: number;
|
|
@@ -8,10 +8,15 @@ export interface PaginationWrapProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
}
|
|
9
9
|
export interface PaginationTextProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
10
|
}
|
|
11
|
+
export interface PaginationInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
12
|
+
}
|
|
11
13
|
export interface PaginationButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
12
14
|
}
|
|
13
|
-
export declare const handlePageChange: (nextPage: number | null, callback: (page: number) => void) => () => void;
|
|
15
|
+
export declare const handlePageChange: (nextPage: number | null, callback: (page: number) => void, setInputValue: Dispatch<SetStateAction<string>>) => () => void;
|
|
16
|
+
export declare const handlePageInputChange: (numberPages: number, currentPage: number, inputValue: string, callback: (page: number) => void) => () => void;
|
|
17
|
+
export declare const handlePageInput: (setInputValue: Dispatch<SetStateAction<string>>) => (event: ChangeEvent<HTMLInputElement>) => void;
|
|
14
18
|
export declare const PaginationWrap: FC<PaginationWrapProps>;
|
|
15
19
|
export declare const PaginationText: FC<PaginationTextProps>;
|
|
20
|
+
export declare const PaginationInput: FC<PaginationInputProps>;
|
|
16
21
|
export declare const PaginationButton: FC<PaginationButtonProps>;
|
|
17
22
|
export declare const Pagination: FC<PaginationProps>;
|