ingeniuscliq-core 0.2.24 → 0.2.26
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,8 +1,11 @@
|
|
|
1
1
|
import { Button } from './button';
|
|
2
|
+
import { BaseStyleProps } from '../../types';
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function PaginationItem({ ...props }: React.ComponentProps<"li">
|
|
6
|
+
declare function PaginationItem({ disabled, className, ...props }: React.ComponentProps<"li"> & {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
} & BaseStyleProps): import("react/jsx-runtime").JSX.Element;
|
|
6
9
|
type PaginationLinkProps = {
|
|
7
10
|
isActive?: boolean;
|
|
8
11
|
} & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
|
package/dist/index.js
CHANGED
|
@@ -5766,8 +5766,8 @@ function E1({
|
|
|
5766
5766
|
}
|
|
5767
5767
|
);
|
|
5768
5768
|
}
|
|
5769
|
-
function Ln({
|
|
5770
|
-
return /* @__PURE__ */ d("li", { "data-slot": "pagination-item",
|
|
5769
|
+
function Ln({ disabled: e = !1, className: t = "", ...n }) {
|
|
5770
|
+
return /* @__PURE__ */ d("li", { "data-slot": "pagination-item", className: `${t} ${e ? "!opacity-50 !cursor-not-allowed" : ""}`, ...n });
|
|
5771
5771
|
}
|
|
5772
5772
|
function fr({
|
|
5773
5773
|
className: e,
|
|
@@ -5856,13 +5856,13 @@ function R1({ currentPage: e, totalPages: t, onPageChange: n = () => {
|
|
|
5856
5856
|
o(c), n(c);
|
|
5857
5857
|
};
|
|
5858
5858
|
return /* @__PURE__ */ d(S1, { children: /* @__PURE__ */ I(E1, { children: [
|
|
5859
|
-
/* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(_1, { onClick: a }) }),
|
|
5859
|
+
/* @__PURE__ */ d(Ln, { className: "cursor-pointer", disabled: r <= 1, children: /* @__PURE__ */ d(_1, { onClick: a }) }),
|
|
5860
5860
|
r > 1 && /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(fr, { onClick: () => i(r - 1), children: r - 1 }) }),
|
|
5861
5861
|
/* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(fr, { onClick: () => i(r), children: r }) }),
|
|
5862
5862
|
r < t && /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(fr, { onClick: () => i(r + 1), children: r + 1 }) }),
|
|
5863
5863
|
r + 2 < t && /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(N1, {}) }),
|
|
5864
5864
|
r + 2 < t && /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(fr, { onClick: () => i(r + 2), children: r + 2 }) }),
|
|
5865
|
-
/* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(A1, { onClick: s }) })
|
|
5865
|
+
/* @__PURE__ */ d(Ln, { className: "cursor-pointer", disabled: r >= t, children: /* @__PURE__ */ d(A1, { onClick: s }) })
|
|
5866
5866
|
] }) });
|
|
5867
5867
|
}
|
|
5868
5868
|
function ba(e, [t, n]) {
|