ingeniuscliq-core 0.2.21 → 0.2.22
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 +7 -1
- package/dist/index.js +19 -16
- package/package.json +1 -1
|
@@ -8,6 +8,9 @@ interface StepProps extends BaseStyleProps {
|
|
|
8
8
|
colorCompletedSteps?: string;
|
|
9
9
|
colorActiveSteps?: string;
|
|
10
10
|
colorInactiveSteps?: string;
|
|
11
|
+
colorLabelCompletedSteps?: string;
|
|
12
|
+
colorLabelActiveSteps?: string;
|
|
13
|
+
colorLabelInactiveSteps?: string;
|
|
11
14
|
}
|
|
12
15
|
interface Step {
|
|
13
16
|
title: string;
|
|
@@ -20,6 +23,9 @@ interface StepperProps {
|
|
|
20
23
|
colorCompletedSteps?: string;
|
|
21
24
|
colorActiveSteps?: string;
|
|
22
25
|
colorInactiveSteps?: string;
|
|
26
|
+
colorLabelCompletedSteps?: string;
|
|
27
|
+
colorLabelActiveSteps?: string;
|
|
28
|
+
colorLabelInactiveSteps?: string;
|
|
23
29
|
}
|
|
24
|
-
export declare function Stepper({ steps, currentStep, colorCompletedSteps, colorActiveSteps, colorInactiveSteps }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function Stepper({ steps, currentStep, colorCompletedSteps, colorActiveSteps, colorInactiveSteps, colorLabelCompletedSteps, colorLabelActiveSteps, colorLabelInactiveSteps }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
25
31
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -20091,38 +20091,41 @@ const pD = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
|
20091
20091
|
...e
|
|
20092
20092
|
}
|
|
20093
20093
|
);
|
|
20094
|
-
}, hD = ({ className: e = "", colorCompletedSteps: t = "", colorActiveSteps: n = "", colorInactiveSteps: r = "",
|
|
20095
|
-
!
|
|
20096
|
-
!
|
|
20094
|
+
}, hD = ({ className: e = "", colorCompletedSteps: t = "", colorActiveSteps: n = "", colorInactiveSteps: r = "", colorLabelCompletedSteps: o = "", colorLabelActiveSteps: a = "", colorLabelInactiveSteps: s = "", step: i, isCompleted: c, isActive: u, firstStep: f, lastStep: l }) => /* @__PURE__ */ I("div", { className: "flex flex-col justify-center w-full items-center gap-2 relative", children: [
|
|
20095
|
+
!f && /* @__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 bg-customGray -translate-x-full" }),
|
|
20096
|
+
!l && /* @__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 bg-customGray 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} ${c ? `${t}` : u ? `${n}` : `${r}`}`,
|
|
20101
|
+
children: c ? /* @__PURE__ */ d(za, { className: "w-4 h-4" }) : i.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 ${c ? `${o}` : u ? `${a}` : `${s}`}`,
|
|
20108
|
+
children: i.title
|
|
20109
20109
|
}
|
|
20110
20110
|
)
|
|
20111
20111
|
] });
|
|
20112
|
-
function a6({ steps: e, currentStep: t, colorCompletedSteps: n = "", colorActiveSteps: r = "", colorInactiveSteps: o = "" }) {
|
|
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, colorCompletedSteps: n = "", colorActiveSteps: r = "", colorInactiveSteps: o = "", colorLabelCompletedSteps: a = "", colorLabelActiveSteps: s = "", colorLabelInactiveSteps: i = "" }) {
|
|
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((c, u) => /* @__PURE__ */ d(Dv, { children: /* @__PURE__ */ d(
|
|
20114
20114
|
hD,
|
|
20115
20115
|
{
|
|
20116
|
-
step:
|
|
20117
|
-
isCompleted:
|
|
20118
|
-
isActive:
|
|
20119
|
-
firstStep:
|
|
20120
|
-
lastStep:
|
|
20116
|
+
step: c,
|
|
20117
|
+
isCompleted: u < t,
|
|
20118
|
+
isActive: u === t,
|
|
20119
|
+
firstStep: u === 0,
|
|
20120
|
+
lastStep: u === e.length - 1,
|
|
20121
20121
|
colorCompletedSteps: n,
|
|
20122
20122
|
colorActiveSteps: r,
|
|
20123
|
-
colorInactiveSteps: o
|
|
20123
|
+
colorInactiveSteps: o,
|
|
20124
|
+
colorLabelCompletedSteps: a,
|
|
20125
|
+
colorLabelActiveSteps: s,
|
|
20126
|
+
colorLabelInactiveSteps: i
|
|
20124
20127
|
}
|
|
20125
|
-
) },
|
|
20128
|
+
) }, c.title)) }) });
|
|
20126
20129
|
}
|
|
20127
20130
|
var Es = "Switch", [gD, s6] = tt(Es), [vD, bD] = gD(Es), q0 = h.forwardRef(
|
|
20128
20131
|
(e, t) => {
|