ingeniuscliq-core 0.2.23 → 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.
- package/dist/components/ui/pagination.d.ts +2 -1
- package/dist/components/ui/stepper.d.ts +15 -15
- package/dist/index.js +15 -13
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -5,13 +5,13 @@ interface StepProps extends BaseStyleProps {
|
|
|
5
5
|
isActive?: boolean;
|
|
6
6
|
firstStep?: boolean;
|
|
7
7
|
lastStep?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
classCompletedSteps?: string;
|
|
9
|
+
classActiveSteps?: string;
|
|
10
|
+
classInactiveSteps?: string;
|
|
11
|
+
classLabelCompletedSteps?: string;
|
|
12
|
+
classLabelActiveSteps?: string;
|
|
13
|
+
classLabelInactiveSteps?: string;
|
|
14
|
+
classDivider?: string;
|
|
15
15
|
}
|
|
16
16
|
interface Step {
|
|
17
17
|
title: string;
|
|
@@ -21,13 +21,13 @@ declare const Step: React.FC<StepProps>;
|
|
|
21
21
|
interface StepperProps {
|
|
22
22
|
steps: Step[];
|
|
23
23
|
currentStep: number;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
classCompletedSteps?: string;
|
|
25
|
+
classActiveSteps?: string;
|
|
26
|
+
classInactiveSteps?: string;
|
|
27
|
+
classLabelCompletedSteps?: string;
|
|
28
|
+
classLabelActiveSteps?: string;
|
|
29
|
+
classLabelInactiveSteps?: string;
|
|
30
|
+
classDivider?: string;
|
|
31
31
|
}
|
|
32
|
-
export declare function Stepper({ steps, currentStep,
|
|
32
|
+
export declare function Stepper({ steps, currentStep, classCompletedSteps, classActiveSteps, classInactiveSteps, classLabelCompletedSteps, classLabelActiveSteps, classLabelInactiveSteps, classDivider }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
export {};
|
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
|
-
|
|
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
|
-
...
|
|
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]) {
|
|
@@ -20091,7 +20093,7 @@ const pD = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
|
20091
20093
|
...e
|
|
20092
20094
|
}
|
|
20093
20095
|
);
|
|
20094
|
-
}, hD = ({ className: e = "",
|
|
20096
|
+
}, hD = ({ className: e = "", classCompletedSteps: t = "", classActiveSteps: n = "", classInactiveSteps: r = "", classLabelCompletedSteps: o = "", classLabelActiveSteps: a = "", classLabelInactiveSteps: s = "", classDivider: i = "", step: c, isCompleted: u, isActive: f, firstStep: l, lastStep: m }) => /* @__PURE__ */ I("div", { className: "flex flex-col justify-center w-full items-center gap-2 relative", children: [
|
|
20095
20097
|
!l && /* @__PURE__ */ d("div", { className: `absolute top-0 bottom-0 my-auto md:bottom-auto md:top-[calc(25%+4px)] left-0 w-1/2 h-0.25 ${i} -translate-x-full` }),
|
|
20096
20098
|
!m && /* @__PURE__ */ d("div", { className: `absolute top-0 bottom-0 my-auto md:bottom-auto md:top-[calc(25%+4px)] right-0 w-1/2 h-0.25 ${i} translate-x-full` }),
|
|
20097
20099
|
/* @__PURE__ */ d("div", { className: "relative flex items-center justify-center z-10 bg-white", children: /* @__PURE__ */ d(
|
|
@@ -20109,7 +20111,7 @@ const pD = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
|
20109
20111
|
}
|
|
20110
20112
|
)
|
|
20111
20113
|
] });
|
|
20112
|
-
function a6({ steps: e, currentStep: t,
|
|
20114
|
+
function a6({ steps: e, currentStep: t, classCompletedSteps: n = "", classActiveSteps: r = "", classInactiveSteps: o = "", classLabelCompletedSteps: a = "", classLabelActiveSteps: s = "", classLabelInactiveSteps: i = "", classDivider: c = "" }) {
|
|
20113
20115
|
return /* @__PURE__ */ d("div", { className: "w-full max-w-3xl mx-auto", children: /* @__PURE__ */ d("div", { className: "flex flex-row justify-between items-center gap-4 mb-8", children: e.map((u, f) => /* @__PURE__ */ d(Dv, { children: /* @__PURE__ */ d(
|
|
20114
20116
|
hD,
|
|
20115
20117
|
{
|
|
@@ -20118,13 +20120,13 @@ function a6({ steps: e, currentStep: t, colorCompletedSteps: n = "", colorActive
|
|
|
20118
20120
|
isActive: f === t,
|
|
20119
20121
|
firstStep: f === 0,
|
|
20120
20122
|
lastStep: f === e.length - 1,
|
|
20121
|
-
|
|
20122
|
-
|
|
20123
|
-
|
|
20124
|
-
|
|
20125
|
-
|
|
20126
|
-
|
|
20127
|
-
|
|
20123
|
+
classCompletedSteps: n,
|
|
20124
|
+
classActiveSteps: r,
|
|
20125
|
+
classInactiveSteps: o,
|
|
20126
|
+
classLabelCompletedSteps: a,
|
|
20127
|
+
classLabelActiveSteps: s,
|
|
20128
|
+
classLabelInactiveSteps: i,
|
|
20129
|
+
classDivider: c
|
|
20128
20130
|
}
|
|
20129
20131
|
) }, u.title)) }) });
|
|
20130
20132
|
}
|