ingeniuscliq-core 0.2.24 → 0.2.25

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.
@@ -5,8 +5,9 @@ declare function PaginationContent({ className, ...props }: React.ComponentProps
5
5
  declare function PaginationItem({ ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
6
6
  type PaginationLinkProps = {
7
7
  isActive?: boolean;
8
+ disabled?: boolean;
8
9
  } & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
9
- declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function PaginationLink({ className, isActive, size, disabled, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
10
11
  declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
11
12
  declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
12
13
  declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
package/dist/index.js CHANGED
@@ -5773,7 +5773,8 @@ function fr({
5773
5773
  className: e,
5774
5774
  isActive: t,
5775
5775
  size: n = "icon",
5776
- ...r
5776
+ disabled: r = !1,
5777
+ ...o
5777
5778
  }) {
5778
5779
  return /* @__PURE__ */ d(
5779
5780
  "a",
@@ -5786,9 +5787,10 @@ function fr({
5786
5787
  variant: t ? "outline" : "ghost",
5787
5788
  size: n
5788
5789
  }),
5790
+ r ? "opacity-50 cursor-not-allowed" : "",
5789
5791
  e
5790
5792
  ),
5791
- ...r
5793
+ ...o
5792
5794
  }
5793
5795
  );
5794
5796
  }
@@ -5856,13 +5858,13 @@ function R1({ currentPage: e, totalPages: t, onPageChange: n = () => {
5856
5858
  o(c), n(c);
5857
5859
  };
5858
5860
  return /* @__PURE__ */ d(S1, { children: /* @__PURE__ */ I(E1, { children: [
5859
- /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(_1, { onClick: a }) }),
5861
+ /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(_1, { onClick: a, disabled: r <= 1 }) }),
5860
5862
  r > 1 && /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(fr, { onClick: () => i(r - 1), children: r - 1 }) }),
5861
5863
  /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(fr, { onClick: () => i(r), children: r }) }),
5862
5864
  r < t && /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(fr, { onClick: () => i(r + 1), children: r + 1 }) }),
5863
5865
  r + 2 < t && /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(N1, {}) }),
5864
5866
  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 }) })
5867
+ /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(A1, { onClick: s, disabled: r >= t }) })
5866
5868
  ] }) });
5867
5869
  }
5868
5870
  function ba(e, [t, n]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",