ingeniuscliq-core 0.2.20 → 0.2.21

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,18 +1,13 @@
1
1
  import { BaseStyleProps } from '../../types';
2
- interface ColorStep {
3
- border: string;
4
- background: string;
5
- color: string;
6
- }
7
2
  interface StepProps extends BaseStyleProps {
8
3
  step: Step;
9
4
  isCompleted?: boolean;
10
5
  isActive?: boolean;
11
6
  firstStep?: boolean;
12
7
  lastStep?: boolean;
13
- colorCompletedSteps: ColorStep;
14
- colorActiveSteps: ColorStep;
15
- colorInactiveSteps: ColorStep;
8
+ colorCompletedSteps?: string;
9
+ colorActiveSteps?: string;
10
+ colorInactiveSteps?: string;
16
11
  }
17
12
  interface Step {
18
13
  title: string;
@@ -22,9 +17,9 @@ declare const Step: React.FC<StepProps>;
22
17
  interface StepperProps {
23
18
  steps: Step[];
24
19
  currentStep: number;
25
- colorCompletedSteps: ColorStep;
26
- colorActiveSteps: ColorStep;
27
- colorInactiveSteps: ColorStep;
20
+ colorCompletedSteps?: string;
21
+ colorActiveSteps?: string;
22
+ colorInactiveSteps?: string;
28
23
  }
29
24
  export declare function Stepper({ steps, currentStep, colorCompletedSteps, colorActiveSteps, colorInactiveSteps }: StepperProps): import("react/jsx-runtime").JSX.Element;
30
25
  export {};
package/dist/index.js CHANGED
@@ -20091,25 +20091,25 @@ 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: [
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
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
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" }),
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.background} ${t.border} ${t.color}` : s ? `${n.background} ${n.border} ${n.color}` : `${r.background} ${r.border} ${r.color}`}`,
20100
+ className: `w-10 h-10 p-1 rounded-full border flex items-center justify-center ${e} ${a ? `${t}` : s ? `${n}` : `${r}`}`,
20101
20101
  children: a ? /* @__PURE__ */ d(za, { className: "w-4 h-4" }) : o.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.color}` : s ? `${n.color}` : `${r.color}`}`,
20107
+ className: `hidden md:block text-sm font-medium ${a ? `${t}` : s ? `${n}` : `${r}`}`,
20108
20108
  children: o.title
20109
20109
  }
20110
20110
  )
20111
20111
  ] });
20112
- function a6({ steps: e, currentStep: t, colorCompletedSteps: n, colorActiveSteps: r, colorInactiveSteps: o }) {
20112
+ function a6({ steps: e, currentStep: t, colorCompletedSteps: n = "", colorActiveSteps: r = "", colorInactiveSteps: o = "" }) {
20113
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(
20114
20114
  hD,
20115
20115
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",