ingeniuscliq-core 0.2.21 → 0.2.23

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.
@@ -8,6 +8,10 @@ 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;
14
+ colorDivider?: string;
11
15
  }
12
16
  interface Step {
13
17
  title: string;
@@ -20,6 +24,10 @@ interface StepperProps {
20
24
  colorCompletedSteps?: string;
21
25
  colorActiveSteps?: string;
22
26
  colorInactiveSteps?: string;
27
+ colorLabelCompletedSteps?: string;
28
+ colorLabelActiveSteps?: string;
29
+ colorLabelInactiveSteps?: string;
30
+ colorDivider?: string;
23
31
  }
24
- export declare function Stepper({ steps, currentStep, colorCompletedSteps, colorActiveSteps, colorInactiveSteps }: StepperProps): import("react/jsx-runtime").JSX.Element;
32
+ export declare function Stepper({ steps, currentStep, colorCompletedSteps, colorActiveSteps, colorInactiveSteps, colorLabelCompletedSteps, colorLabelActiveSteps, colorLabelInactiveSteps, colorDivider }: StepperProps): import("react/jsx-runtime").JSX.Element;
25
33
  export {};
package/dist/index.js CHANGED
@@ -20091,38 +20091,42 @@ 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 = "", step: o, isCompleted: a, isActive: s, firstStep: i, lastStep: c }) => /* @__PURE__ */ I("div", { className: "flex flex-col justify-center w-full items-center gap-2 relative", children: [
20095
- !i && /* @__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
- !c && /* @__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" }),
20094
+ }, hD = ({ className: e = "", colorCompletedSteps: t = "", colorActiveSteps: n = "", colorInactiveSteps: r = "", colorLabelCompletedSteps: o = "", colorLabelActiveSteps: a = "", colorLabelInactiveSteps: s = "", colorDivider: 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} ${a ? `${t}` : s ? `${n}` : `${r}`}`,
20101
- children: a ? /* @__PURE__ */ d(za, { className: "w-4 h-4" }) : o.icon
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 ${a ? `${t}` : s ? `${n}` : `${r}`}`,
20108
- children: o.title
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, 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((a, s) => /* @__PURE__ */ d(Dv, { children: /* @__PURE__ */ d(
20112
+ function a6({ steps: e, currentStep: t, colorCompletedSteps: n = "", colorActiveSteps: r = "", colorInactiveSteps: o = "", colorLabelCompletedSteps: a = "", colorLabelActiveSteps: s = "", colorLabelInactiveSteps: i = "", colorDivider: 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: a,
20117
- isCompleted: s < t,
20118
- isActive: s === t,
20119
- firstStep: s === 0,
20120
- lastStep: s === e.length - 1,
20116
+ step: u,
20117
+ isCompleted: f < t,
20118
+ isActive: f === t,
20119
+ firstStep: f === 0,
20120
+ lastStep: f === 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,
20127
+ colorDivider: c
20124
20128
  }
20125
- ) }, a.title)) }) });
20129
+ ) }, u.title)) }) });
20126
20130
  }
20127
20131
  var Es = "Switch", [gD, s6] = tt(Es), [vD, bD] = gD(Es), q0 = h.forwardRef(
20128
20132
  (e, t) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.2.21",
3
+ "version": "0.2.23",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",