ingeniuscliq-core 0.2.22 → 0.2.24
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/stepper.d.ts +15 -13
- package/dist/index.js +23 -22
- package/package.json +1 -1
|
@@ -5,12 +5,13 @@ interface StepProps extends BaseStyleProps {
|
|
|
5
5
|
isActive?: boolean;
|
|
6
6
|
firstStep?: boolean;
|
|
7
7
|
lastStep?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
classCompletedSteps?: string;
|
|
9
|
+
classActiveSteps?: string;
|
|
10
|
+
classInactiveSteps?: string;
|
|
11
|
+
classLabelCompletedSteps?: string;
|
|
12
|
+
classLabelActiveSteps?: string;
|
|
13
|
+
classLabelInactiveSteps?: string;
|
|
14
|
+
classDivider?: string;
|
|
14
15
|
}
|
|
15
16
|
interface Step {
|
|
16
17
|
title: string;
|
|
@@ -20,12 +21,13 @@ declare const Step: React.FC<StepProps>;
|
|
|
20
21
|
interface StepperProps {
|
|
21
22
|
steps: Step[];
|
|
22
23
|
currentStep: number;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
classCompletedSteps?: string;
|
|
25
|
+
classActiveSteps?: string;
|
|
26
|
+
classInactiveSteps?: string;
|
|
27
|
+
classLabelCompletedSteps?: string;
|
|
28
|
+
classLabelActiveSteps?: string;
|
|
29
|
+
classLabelInactiveSteps?: string;
|
|
30
|
+
classDivider?: string;
|
|
29
31
|
}
|
|
30
|
-
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;
|
|
31
33
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -20091,41 +20091,42 @@ const pD = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
|
20091
20091
|
...e
|
|
20092
20092
|
}
|
|
20093
20093
|
);
|
|
20094
|
-
}, hD = ({ className: e = "",
|
|
20095
|
-
!
|
|
20096
|
-
!
|
|
20094
|
+
}, 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
|
+
!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
|
+
!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
20097
|
/* @__PURE__ */ d("div", { className: "relative flex items-center justify-center z-10 bg-white", children: /* @__PURE__ */ d(
|
|
20098
20098
|
"div",
|
|
20099
20099
|
{
|
|
20100
|
-
className: `w-10 h-10 p-1 rounded-full border flex items-center justify-center ${e} ${
|
|
20101
|
-
children:
|
|
20100
|
+
className: `w-10 h-10 p-1 rounded-full border flex items-center justify-center ${e} ${u ? `${t}` : f ? `${n}` : `${r}`}`,
|
|
20101
|
+
children: u ? /* @__PURE__ */ d(za, { className: "w-4 h-4" }) : c.icon
|
|
20102
20102
|
}
|
|
20103
20103
|
) }),
|
|
20104
20104
|
/* @__PURE__ */ d(
|
|
20105
20105
|
"p",
|
|
20106
20106
|
{
|
|
20107
|
-
className: `hidden md:block text-sm font-medium ${
|
|
20108
|
-
children:
|
|
20107
|
+
className: `hidden md:block text-sm font-medium ${u ? `${o}` : f ? `${a}` : `${s}`}`,
|
|
20108
|
+
children: c.title
|
|
20109
20109
|
}
|
|
20110
20110
|
)
|
|
20111
20111
|
] });
|
|
20112
|
-
function a6({ steps: e, currentStep: t,
|
|
20113
|
-
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((
|
|
20112
|
+
function a6({ steps: e, currentStep: t, classCompletedSteps: n = "", classActiveSteps: r = "", classInactiveSteps: o = "", classLabelCompletedSteps: a = "", classLabelActiveSteps: s = "", classLabelInactiveSteps: i = "", classDivider: c = "" }) {
|
|
20113
|
+
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
20114
|
hD,
|
|
20115
20115
|
{
|
|
20116
|
-
step:
|
|
20117
|
-
isCompleted:
|
|
20118
|
-
isActive:
|
|
20119
|
-
firstStep:
|
|
20120
|
-
lastStep:
|
|
20121
|
-
|
|
20122
|
-
|
|
20123
|
-
|
|
20124
|
-
|
|
20125
|
-
|
|
20126
|
-
|
|
20127
|
-
|
|
20128
|
-
|
|
20116
|
+
step: u,
|
|
20117
|
+
isCompleted: f < t,
|
|
20118
|
+
isActive: f === t,
|
|
20119
|
+
firstStep: f === 0,
|
|
20120
|
+
lastStep: f === e.length - 1,
|
|
20121
|
+
classCompletedSteps: n,
|
|
20122
|
+
classActiveSteps: r,
|
|
20123
|
+
classInactiveSteps: o,
|
|
20124
|
+
classLabelCompletedSteps: a,
|
|
20125
|
+
classLabelActiveSteps: s,
|
|
20126
|
+
classLabelInactiveSteps: i,
|
|
20127
|
+
classDivider: c
|
|
20128
|
+
}
|
|
20129
|
+
) }, u.title)) }) });
|
|
20129
20130
|
}
|
|
20130
20131
|
var Es = "Switch", [gD, s6] = tt(Es), [vD, bD] = gD(Es), q0 = h.forwardRef(
|
|
20131
20132
|
(e, t) => {
|