@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.
@@ -1,3 +1,3 @@
1
1
  <svg width="1em" height="1em" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M2 5.5L8 9.39711L8 1.60289L2 5.5Z" fill="currentColor"/>
2
+ <path d="M0 6L9 0V12L0 6Z" fill="currentColor"/>
3
3
  </svg>
@@ -1,3 +1,3 @@
1
1
  <svg width="1em" height="1em" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M9 5.5L3 9.39711L3 1.60289L9 5.5Z" fill="currentColor"/>
2
+ <path d="M12 6L3 12V0L12 6Z" fill="currentColor"/>
3
3
  </svg>
@@ -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>;