@soppiya/elementus 1.4.0 → 1.4.2
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/dist/components/cursorPagination/CursorPagination.d.ts +44 -4
- package/dist/index.cjs.js +22 -43
- package/dist/index.es.js +4881 -5165
- package/package.json +1 -1
|
@@ -1,14 +1,54 @@
|
|
|
1
1
|
type Sizes = "sm" | "md" | "lg";
|
|
2
|
+
export type Maybe<T> = T | null;
|
|
3
|
+
export type Scalars = {
|
|
4
|
+
ID: {
|
|
5
|
+
input: string;
|
|
6
|
+
output: string;
|
|
7
|
+
};
|
|
8
|
+
String: {
|
|
9
|
+
input: string;
|
|
10
|
+
output: string;
|
|
11
|
+
};
|
|
12
|
+
Boolean: {
|
|
13
|
+
input: boolean;
|
|
14
|
+
output: boolean;
|
|
15
|
+
};
|
|
16
|
+
Int: {
|
|
17
|
+
input: number;
|
|
18
|
+
output: number;
|
|
19
|
+
};
|
|
20
|
+
Float: {
|
|
21
|
+
input: number;
|
|
22
|
+
output: number;
|
|
23
|
+
};
|
|
24
|
+
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
25
|
+
JSON: {
|
|
26
|
+
input: unknown;
|
|
27
|
+
output: unknown;
|
|
28
|
+
};
|
|
29
|
+
/** The `Upload` scalar type represents a file upload. */
|
|
30
|
+
Upload: {
|
|
31
|
+
input: unknown;
|
|
32
|
+
output: unknown;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type PageInfo = {
|
|
36
|
+
__typename: "PageInfo";
|
|
37
|
+
endCursor?: Maybe<Scalars["String"]["output"]>;
|
|
38
|
+
hasNextPage?: Maybe<Scalars["Boolean"]["output"]>;
|
|
39
|
+
hasPreviousPage?: Maybe<Scalars["Boolean"]["output"]>;
|
|
40
|
+
startCursor?: Maybe<Scalars["String"]["output"]>;
|
|
41
|
+
};
|
|
2
42
|
export interface PaginationProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
|
|
4
|
-
|
|
43
|
+
direction?: "forward" | "backward";
|
|
44
|
+
pageInfo?: PageInfo;
|
|
5
45
|
size?: {
|
|
6
46
|
sm?: Sizes;
|
|
7
47
|
md?: Sizes;
|
|
8
48
|
lg?: Sizes;
|
|
9
49
|
} | Sizes;
|
|
10
|
-
onNextPage?: () => void;
|
|
11
|
-
onPrevPage?: () => void;
|
|
50
|
+
onNextPage?: (endCursor: string) => void;
|
|
51
|
+
onPrevPage?: (startCursor: string) => void;
|
|
12
52
|
}
|
|
13
53
|
declare const CursorPagination: import('react').ForwardRefExoticComponent<PaginationProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
54
|
export default CursorPagination;
|