ingeniuscliq-core 0.2.25 → 0.2.27

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,21 @@ 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(
5771
+ "li",
5772
+ {
5773
+ "data-slot": "pagination-item",
5774
+ className: D(`${e ? "!opacity-50 !cursor-not-allowed" : ""}`, t),
5775
+ ...n
5776
+ }
5777
+ );
5771
5778
  }
5772
5779
  function fr({
5773
5780
  className: e,
5774
5781
  isActive: t,
5775
5782
  size: n = "icon",
5776
- disabled: r = !1,
5777
- ...o
5783
+ ...r
5778
5784
  }) {
5779
5785
  return /* @__PURE__ */ d(
5780
5786
  "a",
@@ -5787,10 +5793,9 @@ function fr({
5787
5793
  variant: t ? "outline" : "ghost",
5788
5794
  size: n
5789
5795
  }),
5790
- r ? "opacity-50 cursor-not-allowed" : "",
5791
5796
  e
5792
5797
  ),
5793
- ...o
5798
+ ...r
5794
5799
  }
5795
5800
  );
5796
5801
  }
@@ -5858,13 +5863,13 @@ function R1({ currentPage: e, totalPages: t, onPageChange: n = () => {
5858
5863
  o(c), n(c);
5859
5864
  };
5860
5865
  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 }) }),
5866
+ /* @__PURE__ */ d(Ln, { className: "cursor-pointer", disabled: r <= 1, children: /* @__PURE__ */ d(_1, { onClick: a }) }),
5862
5867
  r > 1 && /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(fr, { onClick: () => i(r - 1), children: r - 1 }) }),
5863
5868
  /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(fr, { onClick: () => i(r), children: r }) }),
5864
5869
  r < t && /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(fr, { onClick: () => i(r + 1), children: r + 1 }) }),
5865
5870
  r + 2 < t && /* @__PURE__ */ d(Ln, { className: "cursor-pointer", children: /* @__PURE__ */ d(N1, {}) }),
5866
5871
  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 }) })
5872
+ /* @__PURE__ */ d(Ln, { className: "cursor-pointer", disabled: r >= t, children: /* @__PURE__ */ d(A1, { onClick: s }) })
5868
5873
  ] }) });
5869
5874
  }
5870
5875
  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.27",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",