lecom-ui 2.6.4 → 2.6.5
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.
|
@@ -27,7 +27,8 @@ PaginationItem.displayName = "PaginationItem";
|
|
|
27
27
|
const PaginationPrevious = ({
|
|
28
28
|
className,
|
|
29
29
|
disabled,
|
|
30
|
-
isActive
|
|
30
|
+
isActive,
|
|
31
|
+
onClick
|
|
31
32
|
}) => /* @__PURE__ */ React.createElement(
|
|
32
33
|
Button,
|
|
33
34
|
{
|
|
@@ -36,6 +37,7 @@ const PaginationPrevious = ({
|
|
|
36
37
|
variant: "ghost",
|
|
37
38
|
color: "grey",
|
|
38
39
|
size: "small",
|
|
40
|
+
onClick,
|
|
39
41
|
className: cn(isActive && "bg-white", className)
|
|
40
42
|
},
|
|
41
43
|
/* @__PURE__ */ React.createElement(ChevronLeft, { size: 20 })
|
|
@@ -44,7 +46,8 @@ PaginationPrevious.displayName = "PaginationPrevious";
|
|
|
44
46
|
const PaginationNext = ({
|
|
45
47
|
className,
|
|
46
48
|
disabled,
|
|
47
|
-
isActive
|
|
49
|
+
isActive,
|
|
50
|
+
onClick
|
|
48
51
|
}) => /* @__PURE__ */ React.createElement(
|
|
49
52
|
Button,
|
|
50
53
|
{
|
|
@@ -53,6 +56,7 @@ const PaginationNext = ({
|
|
|
53
56
|
variant: "ghost",
|
|
54
57
|
color: "grey",
|
|
55
58
|
size: "small",
|
|
59
|
+
onClick,
|
|
56
60
|
className: cn(isActive && "bg-white", className)
|
|
57
61
|
},
|
|
58
62
|
/* @__PURE__ */ React.createElement(ChevronRight, { size: 20 })
|
|
@@ -61,7 +65,8 @@ PaginationNext.displayName = "PaginationNext";
|
|
|
61
65
|
const PaginationEllipsis = ({
|
|
62
66
|
className,
|
|
63
67
|
disabled,
|
|
64
|
-
isActive
|
|
68
|
+
isActive,
|
|
69
|
+
onClick
|
|
65
70
|
}) => /* @__PURE__ */ React.createElement(
|
|
66
71
|
Button,
|
|
67
72
|
{
|
|
@@ -70,6 +75,7 @@ const PaginationEllipsis = ({
|
|
|
70
75
|
variant: "ghost",
|
|
71
76
|
color: "grey",
|
|
72
77
|
size: "small",
|
|
78
|
+
onClick,
|
|
73
79
|
className: cn(isActive && "bg-white", className)
|
|
74
80
|
},
|
|
75
81
|
/* @__PURE__ */ React.createElement(MoreHorizontal, { size: 20 })
|
|
@@ -79,6 +85,7 @@ const PaginationIndex = ({
|
|
|
79
85
|
className,
|
|
80
86
|
disabled,
|
|
81
87
|
isActive,
|
|
88
|
+
onClick,
|
|
82
89
|
children
|
|
83
90
|
}) => /* @__PURE__ */ React.createElement(
|
|
84
91
|
Button,
|
|
@@ -88,6 +95,7 @@ const PaginationIndex = ({
|
|
|
88
95
|
variant: "ghost",
|
|
89
96
|
color: "grey",
|
|
90
97
|
size: "small",
|
|
98
|
+
onClick,
|
|
91
99
|
className: cn(isActive && "bg-white", className)
|
|
92
100
|
},
|
|
93
101
|
children
|
package/dist/index.d.ts
CHANGED
|
@@ -500,6 +500,7 @@ type PaginationButtonProps = {
|
|
|
500
500
|
className?: string;
|
|
501
501
|
disabled?: boolean;
|
|
502
502
|
isActive?: boolean;
|
|
503
|
+
onClick?: () => void;
|
|
503
504
|
};
|
|
504
505
|
interface PaginationIndexProps extends PaginationButtonProps {
|
|
505
506
|
children: React.ReactNode;
|
|
@@ -511,19 +512,19 @@ declare const Pagination: {
|
|
|
511
512
|
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
512
513
|
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
513
514
|
declare const PaginationPrevious: {
|
|
514
|
-
({ className, disabled, isActive, }: PaginationButtonProps): React.JSX.Element;
|
|
515
|
+
({ className, disabled, isActive, onClick, }: PaginationButtonProps): React.JSX.Element;
|
|
515
516
|
displayName: string;
|
|
516
517
|
};
|
|
517
518
|
declare const PaginationNext: {
|
|
518
|
-
({ className, disabled, isActive, }: PaginationButtonProps): React.JSX.Element;
|
|
519
|
+
({ className, disabled, isActive, onClick, }: PaginationButtonProps): React.JSX.Element;
|
|
519
520
|
displayName: string;
|
|
520
521
|
};
|
|
521
522
|
declare const PaginationEllipsis: {
|
|
522
|
-
({ className, disabled, isActive, }: PaginationButtonProps): React.JSX.Element;
|
|
523
|
+
({ className, disabled, isActive, onClick, }: PaginationButtonProps): React.JSX.Element;
|
|
523
524
|
displayName: string;
|
|
524
525
|
};
|
|
525
526
|
declare const PaginationIndex: {
|
|
526
|
-
({ className, disabled, isActive, children, }: PaginationIndexProps): React.JSX.Element;
|
|
527
|
+
({ className, disabled, isActive, onClick, children, }: PaginationIndexProps): React.JSX.Element;
|
|
527
528
|
displayName: string;
|
|
528
529
|
};
|
|
529
530
|
|