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