reactjs-multi-stepper 1.1.2 → 1.1.3

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/index.css CHANGED
@@ -1 +1 @@
1
- .app-container{padding:1.5rem}.stepper-header{display:flex;width:100%;justify-content:space-between}.step-item{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%}.step-item:not(:first-child):before{content:"";background-color:#e2e8f0;position:absolute;width:calc(100% - 2.5rem);height:3px;right:calc(50% + 1.25rem);top:1.125rem;transition:all .2s}.step{width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;z-index:10;position:relative;border-radius:9999px;font-weight:600;color:#000;transition:all .2s}.step-active{border:1px solid #0284c7;background-color:#0284c7}.step-complete{background-color:#16a34a;color:#fff}.step-error{background-color:#ef4444}.step-finished{background-color:#16a34a}.step-active h2,.step-complete h2,.step-error span,.step-finished h2{color:#fff}.step-default{border:1px solid #d1d5db}.active .step{background-color:#0284c7}.complete .step{background-color:#16a34a}.complete:not(:first-child):before,.active:not(:first-child):before{background-color:#16a34a}.step-text{text-align:center;margin-top:1rem;color:#fff}.step-title{font-size:1rem;color:#111827;font-weight:500;margin-bottom:.25rem}.step-description{font-size:.875rem;color:#4b5563;font-weight:300}.stepper-content{width:100%;padding-block:1.5rem;display:flex;justify-content:center;align-items:center}.stepper-footer{width:100%;display:flex;justify-content:space-around;align-items:center;padding:1.5rem}.stepper-button{padding:.375rem 2rem;font-size:1rem;border-radius:.375rem;border:1px solid #9ca3af;background-color:transparent;color:inherit;cursor:pointer}.stepper-button-fill{border-color:#3b82f6;background-color:#3b82f6;color:#fff}
1
+ body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}h1,h2,h3,h4,h5,h6,p{margin:0%;padding:0%}.app-container{padding:1.5rem}.stepper-header{display:flex;width:100%;justify-content:space-between}.step-item{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%}.step-item:not(:first-child):before{content:"";background-color:#e2e8f0;position:absolute;width:calc(100% - 2.5rem);height:3px;right:calc(50% + 1.25rem);top:1.125rem;transition:all .2s}.step{width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;z-index:10;position:relative;border-radius:9999px;font-weight:600;color:#000;transition:all .2s}.step-active{border:1px solid #0284c7;background-color:#0284c7}.step-complete{background-color:#16a34a;color:#fff}.step-error{background-color:#ef4444}.step-finished{background-color:#16a34a}.step-active h2,.step-complete h2,.step-error span,.step-finished h2{color:#fff}.step-default{border:1px solid #d1d5db}.active .step{background-color:#0284c7}.complete .step{background-color:#16a34a}.complete:not(:first-child):before,.active:not(:first-child):before{background-color:#16a34a}.step-text{text-align:center;color:#fff}.step-title{font-size:1rem;color:#111827;font-weight:500;margin-top:1rem}.step-description{font-size:.85rem;color:#4b5563;font-weight:300;margin-top:.5rem}.stepper-content{width:100%;display:flex;justify-content:center;align-items:center}.stepper-footer{display:flex;justify-content:space-around;align-items:center;padding:1.5rem;padding-block:2rem}.stepper-button{padding:.375rem 2rem;font-size:1rem;border-radius:.375rem;border:1px solid #9ca3af;background-color:transparent;color:inherit;cursor:pointer}.stepper-button-fill{border-color:#3b82f6;background-color:#3b82f6;color:#fff}
@@ -1,5 +1,5 @@
1
1
  import V, { createContext as le, useContext as ie, useState as W, useEffect as ue, useCallback as C, useMemo as z, Fragment as G } from "react";
2
- import './index.css';var S = { exports: {} }, j = {};
2
+ import './index.css';var S = { exports: {} }, R = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.js
@@ -11,27 +11,27 @@ import './index.css';var S = { exports: {} }, j = {};
11
11
  */
12
12
  var U;
13
13
  function fe() {
14
- if (U) return j;
14
+ if (U) return R;
15
15
  U = 1;
16
- var t = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
17
- function s(x, c, l) {
16
+ var t = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
17
+ function o(h, c, l) {
18
18
  var m = null;
19
19
  if (l !== void 0 && (m = "" + l), c.key !== void 0 && (m = "" + c.key), "key" in c) {
20
20
  l = {};
21
- for (var b in c)
22
- b !== "key" && (l[b] = c[b]);
21
+ for (var p in c)
22
+ p !== "key" && (l[p] = c[p]);
23
23
  } else l = c;
24
24
  return c = l.ref, {
25
25
  $$typeof: t,
26
- type: x,
26
+ type: h,
27
27
  key: m,
28
28
  ref: c !== void 0 ? c : null,
29
29
  props: l
30
30
  };
31
31
  }
32
- return j.Fragment = o, j.jsx = s, j.jsxs = s, j;
32
+ return R.Fragment = s, R.jsx = o, R.jsxs = o, R;
33
33
  }
34
- var R = {};
34
+ var j = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.development.js
@@ -87,12 +87,12 @@ function de() {
87
87
  }
88
88
  return null;
89
89
  }
90
- function o(e) {
90
+ function s(e) {
91
91
  return "" + e;
92
92
  }
93
- function s(e) {
93
+ function o(e) {
94
94
  try {
95
- o(e);
95
+ s(e);
96
96
  var r = !1;
97
97
  } catch {
98
98
  r = !0;
@@ -104,10 +104,10 @@ function de() {
104
104
  r,
105
105
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
106
  u
107
- ), o(e);
107
+ ), s(e);
108
108
  }
109
109
  }
110
- function x(e) {
110
+ function h(e) {
111
111
  if (e === g) return "<>";
112
112
  if (typeof e == "object" && e !== null && e.$$typeof === $)
113
113
  return "<...>";
@@ -132,7 +132,7 @@ function de() {
132
132
  }
133
133
  return e.key !== void 0;
134
134
  }
135
- function b(e, r) {
135
+ function p(e, r) {
136
136
  function a() {
137
137
  Y || (Y = !0, console.error(
138
138
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
@@ -150,12 +150,12 @@ function de() {
150
150
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
151
151
  )), e = this.props.ref, e !== void 0 ? e : null;
152
152
  }
153
- function k(e, r, a, u, E, h, A, w) {
154
- return a = h.ref, e = {
155
- $$typeof: p,
153
+ function k(e, r, a, u, E, b, A, w) {
154
+ return a = b.ref, e = {
155
+ $$typeof: v,
156
156
  type: e,
157
157
  key: r,
158
- props: h,
158
+ props: b,
159
159
  _owner: E
160
160
  }, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
161
161
  enumerable: !1,
@@ -182,19 +182,19 @@ function de() {
182
182
  value: w
183
183
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
184
184
  }
185
- function d(e, r, a, u, E, h, A, w) {
185
+ function d(e, r, a, u, E, b, A, w) {
186
186
  var f = r.children;
187
187
  if (f !== void 0)
188
188
  if (u)
189
189
  if (ae(f)) {
190
190
  for (u = 0; u < f.length; u++)
191
- v(f[u]);
191
+ x(f[u]);
192
192
  Object.freeze && Object.freeze(f);
193
193
  } else
194
194
  console.error(
195
195
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
196
196
  );
197
- else v(f);
197
+ else x(f);
198
198
  if (F.call(r, "key")) {
199
199
  f = t(e);
200
200
  var _ = Object.keys(r).filter(function(ce) {
@@ -213,18 +213,18 @@ React keys must be passed directly to JSX without using spread:
213
213
  f
214
214
  ), L[f + u] = !0);
215
215
  }
216
- if (f = null, a !== void 0 && (s(a), f = "" + a), m(r) && (s(r.key), f = "" + r.key), "key" in r) {
216
+ if (f = null, a !== void 0 && (o(a), f = "" + a), m(r) && (o(r.key), f = "" + r.key), "key" in r) {
217
217
  a = {};
218
218
  for (var y in r)
219
219
  y !== "key" && (a[y] = r[y]);
220
220
  } else a = r;
221
- return f && b(
221
+ return f && p(
222
222
  a,
223
223
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
224
224
  ), k(
225
225
  e,
226
226
  f,
227
- h,
227
+ b,
228
228
  E,
229
229
  c(),
230
230
  a,
@@ -232,10 +232,10 @@ React keys must be passed directly to JSX without using spread:
232
232
  w
233
233
  );
234
234
  }
235
- function v(e) {
236
- typeof e == "object" && e !== null && e.$$typeof === p && e._store && (e._store.validated = 1);
235
+ function x(e) {
236
+ typeof e == "object" && e !== null && e.$$typeof === v && e._store && (e._store.validated = 1);
237
237
  }
238
- var i = V, p = Symbol.for("react.transitional.element"), H = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), B = Symbol.for("react.strict_mode"), Z = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), K = Symbol.for("react.context"), ee = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), se = Symbol.for("react.activity"), oe = Symbol.for("react.client.reference"), P = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, ae = Array.isArray, O = console.createTask ? console.createTask : function() {
238
+ var i = V, v = Symbol.for("react.transitional.element"), H = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), B = Symbol.for("react.strict_mode"), Z = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), K = Symbol.for("react.context"), ee = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), se = Symbol.for("react.activity"), oe = Symbol.for("react.client.reference"), P = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, ae = Array.isArray, O = console.createTask ? console.createTask : function() {
239
239
  return null;
240
240
  };
241
241
  i = {
@@ -246,9 +246,9 @@ React keys must be passed directly to JSX without using spread:
246
246
  var Y, M = {}, I = i.react_stack_bottom_frame.bind(
247
247
  i,
248
248
  l
249
- )(), D = O(x(l)), L = {};
250
- R.Fragment = g, R.jsx = function(e, r, a, u, E) {
251
- var h = 1e4 > P.recentlyCreatedOwnerStacks++;
249
+ )(), D = O(h(l)), L = {};
250
+ j.Fragment = g, j.jsx = function(e, r, a, u, E) {
251
+ var b = 1e4 > P.recentlyCreatedOwnerStacks++;
252
252
  return d(
253
253
  e,
254
254
  r,
@@ -256,11 +256,11 @@ React keys must be passed directly to JSX without using spread:
256
256
  !1,
257
257
  u,
258
258
  E,
259
- h ? Error("react-stack-top-frame") : I,
260
- h ? O(x(e)) : D
259
+ b ? Error("react-stack-top-frame") : I,
260
+ b ? O(h(e)) : D
261
261
  );
262
- }, R.jsxs = function(e, r, a, u, E) {
263
- var h = 1e4 > P.recentlyCreatedOwnerStacks++;
262
+ }, j.jsxs = function(e, r, a, u, E) {
263
+ var b = 1e4 > P.recentlyCreatedOwnerStacks++;
264
264
  return d(
265
265
  e,
266
266
  r,
@@ -268,11 +268,11 @@ React keys must be passed directly to JSX without using spread:
268
268
  !0,
269
269
  u,
270
270
  E,
271
- h ? Error("react-stack-top-frame") : I,
272
- h ? O(x(e)) : D
271
+ b ? Error("react-stack-top-frame") : I,
272
+ b ? O(h(e)) : D
273
273
  );
274
274
  };
275
- }()), R;
275
+ }()), j;
276
276
  }
277
277
  var J;
278
278
  function me() {
@@ -288,101 +288,105 @@ const X = le(
288
288
  "useMultiStepperForm must be used within a MultiStepperProvider"
289
289
  );
290
290
  return t;
291
- }, pe = ({ children: t, steppers: o }) => {
292
- const [s, x] = W(0), [c, l] = W([]);
291
+ }, pe = ({ children: t, steppers: s }) => {
292
+ const [o, h] = W(0), [c, l] = W([]);
293
293
  ue(() => {
294
- if (o.length) {
295
- const d = [...o];
294
+ if (s.length) {
295
+ const d = [...s];
296
296
  d[0].active = !0, l(d);
297
297
  }
298
- }, [o.length]);
298
+ }, [s.length]);
299
299
  const m = C((d) => {
300
- l((v) => {
301
- const i = [...v];
302
- if (d > v.length - 1) return v;
303
- i[s] && (i[s] = { ...i[s], active: !1 }), i[d] && (i[d] = { ...i[d], active: !0 });
304
- for (let p = 0; p < d; p++)
305
- i[p] = { ...i[p], completed: !0 };
306
- for (let p = d; p < i.length; p++)
307
- i[p] = { ...i[p], completed: !1 };
300
+ l((x) => {
301
+ const i = [...x];
302
+ if (d > x.length - 1) return x;
303
+ i[o] && (i[o] = { ...i[o], active: !1 }), i[d] && (i[d] = { ...i[d], active: !0 });
304
+ for (let v = 0; v < d; v++)
305
+ i[v] = { ...i[v], completed: !0 };
306
+ for (let v = d; v < i.length; v++)
307
+ i[v] = { ...i[v], completed: !1 };
308
308
  return i;
309
- }), x(d);
310
- }, [s]), b = C(() => {
311
- s < c.length - 1 ? m(s + 1) : l((d) => {
312
- const v = [...d];
313
- return v[s] = { ...v[s], completed: !0 }, v;
309
+ }), h(d);
310
+ }, [o]), p = C(() => {
311
+ o < c.length - 1 ? m(o + 1) : l((d) => {
312
+ const x = [...d];
313
+ return x[o] = { ...x[o], completed: !0 }, x;
314
314
  });
315
- }, [s, c.length, m]), T = C(() => {
316
- s > 0 && m(s - 1);
317
- }, [s, m]), k = z(
315
+ }, [o, c.length, m]), T = C(() => {
316
+ o > 0 && m(o - 1);
317
+ }, [o, m]), k = z(
318
318
  () => ({
319
- currentStep: s,
319
+ currentStep: o,
320
320
  steps: c,
321
- handleNextStep: b,
321
+ handleNextStep: p,
322
322
  handlePrevStep: T,
323
323
  updateSteps: m
324
324
  }),
325
- [s, c, b, T, m]
325
+ [o, c, p, T, m]
326
326
  );
327
327
  return /* @__PURE__ */ n.jsx(X.Provider, { value: k, children: t });
328
328
  }, ve = () => /* @__PURE__ */ n.jsx("div", { children: "Loading.." }), he = V.memo(ve), xe = ({
329
329
  step: t,
330
- index: o
330
+ index: s
331
331
  }) => {
332
- const { steps: s } = N();
333
- return s.length ? t.loading ? /* @__PURE__ */ n.jsx("div", { className: "step step-loading", children: /* @__PURE__ */ n.jsx(he, {}) }) : t.error ? /* @__PURE__ */ n.jsx("div", { className: "step step-error", children: /* @__PURE__ */ n.jsx("span", { className: "text-white", children: "✗" }) }) : t.completed ? /* @__PURE__ */ n.jsx("div", { className: "step step-complete", children: /* @__PURE__ */ n.jsx("span", { className: "text-white", children: "✓" }) }) : t.finshed ? /* @__PURE__ */ n.jsx("div", { className: "step step-complete", children: t.icon }) : t.active ? /* @__PURE__ */ n.jsx("div", { className: "step step-active", children: t.icon ?? /* @__PURE__ */ n.jsx("h2", { className: "text-white", children: o }) }) : /* @__PURE__ */ n.jsx("div", { className: "step step-default", children: t.icon ?? /* @__PURE__ */ n.jsx("h2", { children: o }) }) : /* @__PURE__ */ n.jsx(G, {});
332
+ const { steps: o } = N();
333
+ return o.length ? t.loading ? /* @__PURE__ */ n.jsx("div", { className: "step step-loading", children: /* @__PURE__ */ n.jsx(he, {}) }) : t.error ? /* @__PURE__ */ n.jsx("div", { className: "step step-error", children: /* @__PURE__ */ n.jsx("span", { className: "text-white", children: "✗" }) }) : t.completed ? /* @__PURE__ */ n.jsx("div", { className: "step step-complete", children: /* @__PURE__ */ n.jsx("span", { className: "text-white", children: "✓" }) }) : t.finshed ? /* @__PURE__ */ n.jsx("div", { className: "step step-complete", children: t.icon }) : t.active ? /* @__PURE__ */ n.jsx("div", { className: "step step-active", children: t.icon ?? /* @__PURE__ */ n.jsx("h2", { className: "text-white", children: s }) }) : /* @__PURE__ */ n.jsx("div", { className: "step step-default", children: t.icon ?? /* @__PURE__ */ n.jsx("h2", { children: s }) }) : /* @__PURE__ */ n.jsx(G, {});
334
334
  }, be = () => {
335
335
  const { steps: t } = N();
336
- return t.length ? /* @__PURE__ */ n.jsx("div", { className: "app-container", children: /* @__PURE__ */ n.jsx("ol", { className: "stepper-header", children: t.map((o, s) => /* @__PURE__ */ n.jsxs(
336
+ return t.length ? /* @__PURE__ */ n.jsx("div", { className: "app-container", children: /* @__PURE__ */ n.jsx("ol", { className: "stepper-header", children: t.map((s, o) => /* @__PURE__ */ n.jsxs(
337
337
  "div",
338
338
  {
339
- className: `step-item ${o.active && "active"} ${o.completed && "complete"} `,
339
+ className: `step-item ${s.active && "active"} ${s.completed && "complete"} `,
340
340
  children: [
341
- /* @__PURE__ */ n.jsx(xe, { index: s + 1, step: o }),
341
+ /* @__PURE__ */ n.jsx(xe, { index: o + 1, step: s }),
342
342
  /* @__PURE__ */ n.jsxs("div", { className: "step-text", children: [
343
- o.title && /* @__PURE__ */ n.jsx("h3", { className: "step-title", children: o.title }),
344
- o.description && /* @__PURE__ */ n.jsx("h3", { className: "step-description", children: o.description })
343
+ s.title && /* @__PURE__ */ n.jsx("h3", { className: "step-title", children: s.title }),
344
+ s.description && /* @__PURE__ */ n.jsx("h3", { className: "step-description", children: s.description })
345
345
  ] })
346
346
  ]
347
347
  },
348
- s
348
+ o
349
349
  )) }) }) : /* @__PURE__ */ n.jsx(G, {});
350
- }, Ee = () => {
351
- const { handleNextStep: t, handlePrevStep: o, currentStep: s, steps: x } = N(), c = s === x.length - 1, l = z(() => ({
350
+ }, Ee = ({ onClickNext: t }) => {
351
+ const { handleNextStep: s, handlePrevStep: o, currentStep: h, steps: c } = N(), l = h === c.length - 1, m = () => {
352
+ c[h].completed || (s(), t());
353
+ }, p = z(() => ({
352
354
  button: "stepper-button",
353
355
  fill: "stepper-button-fill"
354
356
  }), []);
355
357
  return /* @__PURE__ */ n.jsxs("div", { className: "stepper-footer", children: [
356
- s > 0 ? /* @__PURE__ */ n.jsx(
358
+ /* @__PURE__ */ n.jsx(
357
359
  "button",
358
360
  {
359
361
  type: "button",
360
- className: l.button,
362
+ className: p.button,
361
363
  onClick: o,
364
+ disabled: h < 0,
362
365
  children: "Prev"
363
366
  }
364
- ) : /* @__PURE__ */ n.jsx("div", {}),
367
+ ),
365
368
  /* @__PURE__ */ n.jsx(
366
369
  "button",
367
370
  {
368
371
  type: "button",
369
- className: `${c ? `${l.button} ${l.fill}` : l.button}`,
370
- onClick: t,
371
- children: c ? "Finish" : "Next"
372
+ className: `${l ? `${p.button} ${p.fill}` : p.button}`,
373
+ onClick: m,
374
+ children: l ? "Finish" : "Next"
372
375
  }
373
376
  )
374
377
  ] });
375
378
  }, _e = () => {
376
- const { steps: t, currentStep: o } = N();
377
- return /* @__PURE__ */ n.jsx("div", { className: "stepper-content", children: t[o] && t[o].children && t[o].children });
378
- }, Re = ({
379
- steps: t
379
+ const { steps: t, currentStep: s } = N();
380
+ return /* @__PURE__ */ n.jsx("div", { className: "stepper-content", children: t[s] && t[s].children && t[s].children });
381
+ }, je = ({
382
+ steps: t,
383
+ onClickNext: s
380
384
  }) => t ? /* @__PURE__ */ n.jsxs(pe, { steppers: t, children: [
381
385
  /* @__PURE__ */ n.jsx(be, {}),
382
386
  /* @__PURE__ */ n.jsx(_e, {}),
383
- /* @__PURE__ */ n.jsx(Ee, {})
387
+ /* @__PURE__ */ n.jsx(Ee, { onClickNext: s })
384
388
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {});
385
389
  export {
386
- Re as MultiStepper
390
+ je as MultiStepper
387
391
  };
388
392
  //# sourceMappingURL=multi-stepper.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"multi-stepper.es.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/hooks/index.ts","../src/contexts/index.tsx","../src/components/spinner.tsx","../src/components/StepperIcon.tsx","../src/components/StepperHeader.tsx","../src/components/StepperFooter.tsx","../src/components/StepperContent.tsx","../src/MultiStepper.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { createContext, useContext } from \"react\";\nimport type { MultiStepperType } from \"../types\";\n\n// Multi stepper context\nexport const MultiStepperContext = createContext<MultiStepperType | undefined>(\n undefined\n);\n\n// context consumer hook\nexport const useMultiStepper = () => {\n const context = useContext(MultiStepperContext);\n if (!context)\n throw new Error(\n \"useMultiStepperForm must be used within a MultiStepperProvider\"\n );\n return context;\n};\n","import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport type { MultiStepperProviderType, StepType } from '../types';\nimport { MultiStepperContext } from \"../hooks\";\n\nexport const MultiStepperProvider: React.FC<MultiStepperProviderType> = ({ children, steppers }) => {\n\n const [currentStep, setCurrentStep] = useState(0)\n const [steps, setSteps] = useState<StepType[]>([])\n\n useEffect(() => {\n if(steppers.length){\n const temp = [...steppers]\n temp[0].active = true\n setSteps(temp)\n }\n }, [steppers.length])\n\n const updateSteps = useCallback((newStep: number) => {\n setSteps((prev) => {\n const updated = [...prev]\n\n // if more than length of steps array return steps array as its\n if (newStep > prev.length - 1) return prev\n\n // deactivate current step\n if (updated[currentStep])\n updated[currentStep] = { ...updated[currentStep], active: false }\n\n // activate new step\n if (updated[newStep])\n updated[newStep] = { ...updated[newStep], active: true }\n\n // mark prev steps as completed\n for (let i = 0; i < newStep; i++) {\n updated[i] = { ...updated[i], completed: true }\n }\n\n // mark future steps as incompleted\n for (let i = newStep; i < updated.length; i++) {\n updated[i] = { ...updated[i], completed: false }\n }\n\n return updated\n })\n setCurrentStep(newStep)\n }, [currentStep])\n\n const handleNextStep = useCallback(() => {\n if (currentStep < steps.length -1) updateSteps(currentStep + 1)\n else setSteps((prev) => {\n const updated = [...prev]\n updated[currentStep] = { ...updated[currentStep], completed: true }\n return updated\n })\n }, [currentStep, steps.length, updateSteps])\n\n\n\n const handlePrevStep = useCallback(() => {\n if (currentStep > 0) updateSteps(currentStep-1)\n }, [currentStep, updateSteps])\n\n // ⚡️ Memoize the entire context value\n const contextValue = useMemo(\n () => ({\n currentStep,\n steps,\n handleNextStep,\n handlePrevStep,\n updateSteps,\n }),\n [currentStep, steps, handleNextStep, handlePrevStep, updateSteps]\n );\n\n return <MultiStepperContext.Provider value={contextValue}>\n {children}\n </MultiStepperContext.Provider>\n}","import React from \"react\";\n// import { cn } from \"@/lib/utils\"; // or use 'clsx' if you prefer\n\ntype SpinnerProps = {\n size?: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | number;\n className?: string;\n};\n\n// const sizeMap: Record<string, string> = {\n// xs: \"w-2 h-2\",\n// sm: \"w-4 h-4\",\n// md: \"w-6 h-6\",\n// lg: \"w-8 h-8\",\n// xl: \"w-10 h-10\",\n// };\n// size = \"md\", className\nconst Spinner: React.FC<SpinnerProps> = () => {\n // const sizeClass = useMemo(() => {\n // return typeof size === \"number\"\n // ? `w-[${size}px] h-[${size}px]`\n // : sizeMap[size] || sizeMap[\"md\"];\n // }, [size]);\n\n return (\n <div>Loading..</div>\n );\n};\n\nexport default React.memo(Spinner);\n","import React, { Fragment } from 'react';\nimport { useMultiStepper } from '../hooks';\nimport type { StepType } from '../types';\nimport Spinner from './spinner';\n\ntype StepItemType = {\n step: StepType,\n index: number\n}\n\nexport const Step: React.FC<StepItemType> = ({\n step, index\n}) => {\n const { steps } = useMultiStepper()\n if (!steps.length) return <Fragment />\n\n if (step.loading) return <div className='step step-loading'>\n <Spinner />\n </div>\n\n if (step.error) return <div className='step step-error'>\n {/* <Icon name={\"X\"} className='text-white' /> */}\n <span className='text-white'>&#x2717;</span> \n </div>\n\n if (step.completed) return <div className='step step-complete'>\n {/* <Icon name={\"Check\"} className='text-white' /> */}\n <span className='text-white'>&#x2713;</span> \n </div>\n\n if (step.finshed) return <div className='step step-complete'>\n {/* <Icon name={\"Check\"} className='text-white' /> */}\n {step.icon}\n </div>\n\n if (step.active) return <div className='step step-active'>\n {\n step.icon ??\n <h2 className='text-white'>{index}</h2>\n }\n\n </div>\n\n return (\n <div className={`step step-default`}>\n {step.icon ?? <h2>{index}</h2>}\n </div>\n );\n};\n","import React, { Fragment } from 'react';\nimport { useMultiStepper } from '../hooks';\nimport { Step } from './StepperIcon';\n\n\nexport const StepperHeader: React.FC = () => {\n const { steps } = useMultiStepper()\n\n if (!steps.length) return <Fragment />\n return (\n <div className='app-container'>\n <ol className='stepper-header'>\n {\n steps.map((step, i) => (\n <div\n key={i}\n className={`step-item ${step.active && \"active\"} ${step.completed && \"complete\"\n } `}\n >\n\n <Step index={i + 1} step={step} />\n\n <div className=\"step-text\">\n {step.title && <h3 className=\"step-title\">{step.title}</h3>}\n {step.description && <h3 className=\"step-description\">{step.description}</h3>}\n </div>\n\n </div>\n ))\n }\n\n </ol>\n </div>\n );\n};\n","import React, { useMemo } from 'react';\nimport { useMultiStepper } from '../hooks';\n\nexport const StepperFooter: React.FC = () => {\n const { handleNextStep, handlePrevStep, currentStep, steps } = useMultiStepper();\n const isFinished = currentStep === steps.length - 1;\n\n const buttonClass = useMemo(() => ({\n button: 'stepper-button',\n fill: 'stepper-button-fill'\n }), []);\n\n return (\n <div className=\"stepper-footer\">\n {currentStep > 0 ? (\n <button\n type=\"button\"\n className={buttonClass.button}\n onClick={handlePrevStep}\n >\n Prev\n </button>\n ) : (\n <div />\n )}\n\n <button\n type=\"button\"\n className={`${isFinished ? `${buttonClass.button} ${buttonClass.fill}` : buttonClass.button}`}\n onClick={handleNextStep}\n >\n {isFinished ? 'Finish' : 'Next'}\n </button>\n </div>\n );\n};\n","import React from 'react';\nimport { useMultiStepper } from '../hooks';\n\n\nexport const StepperContent: React.FC = () => {\n const { steps, currentStep } = useMultiStepper()\n return (\n <div className='stepper-content'>\n {\n steps[currentStep] && \n steps[currentStep].children && \n steps[currentStep].children\n }\n </div>\n );\n};\n","import React from 'react';\nimport type { StepType } from './types';\nimport { MultiStepperProvider } from './contexts';\nimport { StepperHeader } from './components/StepperHeader';\nimport { StepperFooter } from './components/StepperFooter';\nimport { StepperContent } from './components/StepperContent';\n\ntype StepperProps = {\n steps?: StepType[];\n}\n\nexport const MultiStepper: React.FC<StepperProps> = ({\n steps,\n}) => {\n if (!steps) return <></>\n return (\n <MultiStepperProvider steppers={steps}>\n <StepperHeader />\n <StepperContent />\n <StepperFooter />\n </MultiStepperProvider>\n );\n};\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","self","source","owner","debugStack","debugTask","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","MultiStepperContext","createContext","useMultiStepper","context","useContext","MultiStepperProvider","steppers","currentStep","setCurrentStep","useState","steps","setSteps","useEffect","temp","updateSteps","useCallback","newStep","prev","updated","i","handleNextStep","handlePrevStep","contextValue","useMemo","Spinner","jsx","Spinner$1","Step","step","index","Fragment","StepperHeader","jsxs","StepperFooter","isFinished","buttonClass","StepperContent","MultiStepper"],"mappings":";;;;;;;;;;;;;;;AAWA,MAAIA,IAAqB,OAAO,IAAI,4BAA4B,GAC9DC,IAAsB,OAAO,IAAI,gBAAgB;AACnD,WAASC,EAAQC,GAAMC,GAAQC,GAAU;AACvC,QAAIC,IAAM;AAGV,QAFWD,MAAX,WAAwBC,IAAM,KAAKD,IACxBD,EAAO,QAAlB,WAA0BE,IAAM,KAAKF,EAAO,MACxC,SAASA,GAAQ;AACnB,MAAAC,IAAW,CAAA;AACX,eAASE,KAAYH;AACnB,QAAUG,MAAV,UAAuBF,EAASE,CAAQ,IAAIH,EAAOG,CAAQ;AAAA,IACjE,MAAS,CAAAF,IAAWD;AAClB,WAAAA,IAASC,EAAS,KACX;AAAA,MACL,UAAUL;AAAA,MACV,MAAMG;AAAA,MACN,KAAKG;AAAA,MACL,KAAgBF,MAAX,SAAoBA,IAAS;AAAA,MAClC,OAAOC;AAAA;EAEX;AACA,SAAAG,EAAA,WAAmBP,GACnBO,EAAA,MAAcN,GACdM,EAAA,OAAeN;;;;;;;;;;;;;;sBCtBE,QAAQ,IAAI,aAA7B,gBACG,WAAY;AACX,aAASO,EAAyBN,GAAM;AACtC,UAAYA,KAAR,KAAc,QAAO;AACzB,UAAmB,OAAOA,KAAtB;AACF,eAAOA,EAAK,aAAaO,KACrB,OACAP,EAAK,eAAeA,EAAK,QAAQ;AACvC,UAAiB,OAAOA,KAApB,SAA0B,QAAOA;AACrC,cAAQA,GAAI;AAAA,QACV,KAAKF;AACH,iBAAO;AAAA,QACT,KAAKU;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,QACT,KAAKC;AACH,iBAAO;AAAA,MACjB;AACM,UAAiB,OAAOZ,KAApB;AACF,gBACgB,OAAOA,EAAK,OAAzB,YACC,QAAQ;AAAA,UACN;AAAA,WAEJA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W,KACjBG,EAAMH,CAAW,EAAE,YACnBG,EAAMH,CAAW,EAAE,UAEvB;AAEJ,GCJa8B,KAAuC,CAAC;AAAA,EACnD,OAAA3B;AACF,MACOA,IAEHsB,gBAAAA,EAAAA,KAAC3B,IAAA,EAAqB,UAAUK,GAC9B,UAAA;AAAA,EAAAe,gBAAAA,EAAAA,IAACM,IAAA,EAAc;AAAA,wBACdK,IAAA,EAAe;AAAA,wBACfH,IAAA,CAAA,CAAc;AAAA,GACjB,IANiBR,gBAAAA,MAAAK,EAAAA,UAAA,CAAA,CAAE;","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"multi-stepper.es.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/hooks/index.ts","../src/contexts/index.tsx","../src/components/spinner.tsx","../src/components/StepperIcon.tsx","../src/components/StepperHeader.tsx","../src/components/StepperFooter.tsx","../src/components/StepperContent.tsx","../src/MultiStepper.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { createContext, useContext } from \"react\";\nimport type { MultiStepperType } from \"../types\";\n\n// Multi stepper context\nexport const MultiStepperContext = createContext<MultiStepperType | undefined>(\n undefined\n);\n\n// context consumer hook\nexport const useMultiStepper = () => {\n const context = useContext(MultiStepperContext);\n if (!context)\n throw new Error(\n \"useMultiStepperForm must be used within a MultiStepperProvider\"\n );\n return context;\n};\n","import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport type { MultiStepperProviderType, StepType } from '../types';\nimport { MultiStepperContext } from \"../hooks\";\n\nexport const MultiStepperProvider: React.FC<MultiStepperProviderType> = ({ children, steppers }) => {\n\n const [currentStep, setCurrentStep] = useState(0)\n const [steps, setSteps] = useState<StepType[]>([])\n\n useEffect(() => {\n if(steppers.length){\n const temp = [...steppers]\n temp[0].active = true\n setSteps(temp)\n }\n }, [steppers.length])\n\n const updateSteps = useCallback((newStep: number) => {\n setSteps((prev) => {\n const updated = [...prev]\n\n // if more than length of steps array return steps array as its\n if (newStep > prev.length - 1) return prev\n\n // deactivate current step\n if (updated[currentStep])\n updated[currentStep] = { ...updated[currentStep], active: false }\n\n // activate new step\n if (updated[newStep])\n updated[newStep] = { ...updated[newStep], active: true }\n\n // mark prev steps as completed\n for (let i = 0; i < newStep; i++) {\n updated[i] = { ...updated[i], completed: true }\n }\n\n // mark future steps as incompleted\n for (let i = newStep; i < updated.length; i++) {\n updated[i] = { ...updated[i], completed: false }\n }\n\n return updated\n })\n setCurrentStep(newStep)\n }, [currentStep])\n\n const handleNextStep = useCallback(() => {\n if (currentStep < steps.length -1) updateSteps(currentStep + 1)\n else setSteps((prev) => {\n const updated = [...prev]\n updated[currentStep] = { ...updated[currentStep], completed: true }\n return updated\n })\n }, [currentStep, steps.length, updateSteps])\n\n\n\n const handlePrevStep = useCallback(() => {\n if (currentStep > 0) updateSteps(currentStep-1)\n }, [currentStep, updateSteps])\n\n // ⚡️ Memoize the entire context value\n const contextValue = useMemo(\n () => ({\n currentStep,\n steps,\n handleNextStep,\n handlePrevStep,\n updateSteps,\n }),\n [currentStep, steps, handleNextStep, handlePrevStep, updateSteps]\n );\n\n return <MultiStepperContext.Provider value={contextValue}>\n {children}\n </MultiStepperContext.Provider>\n}","import React from \"react\";\n// import { cn } from \"@/lib/utils\"; // or use 'clsx' if you prefer\n\ntype SpinnerProps = {\n size?: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | number;\n className?: string;\n};\n\n// const sizeMap: Record<string, string> = {\n// xs: \"w-2 h-2\",\n// sm: \"w-4 h-4\",\n// md: \"w-6 h-6\",\n// lg: \"w-8 h-8\",\n// xl: \"w-10 h-10\",\n// };\n// size = \"md\", className\nconst Spinner: React.FC<SpinnerProps> = () => {\n // const sizeClass = useMemo(() => {\n // return typeof size === \"number\"\n // ? `w-[${size}px] h-[${size}px]`\n // : sizeMap[size] || sizeMap[\"md\"];\n // }, [size]);\n\n return (\n <div>Loading..</div>\n );\n};\n\nexport default React.memo(Spinner);\n","import React, { Fragment } from 'react';\nimport { useMultiStepper } from '../hooks';\nimport type { StepType } from '../types';\nimport Spinner from './spinner';\n\ntype StepItemType = {\n step: StepType,\n index: number\n}\n\nexport const Step: React.FC<StepItemType> = ({\n step, index\n}) => {\n const { steps } = useMultiStepper()\n if (!steps.length) return <Fragment />\n\n if (step.loading) return <div className='step step-loading'>\n <Spinner />\n </div>\n\n if (step.error) return <div className='step step-error'>\n {/* <Icon name={\"X\"} className='text-white' /> */}\n <span className='text-white'>&#x2717;</span> \n </div>\n\n if (step.completed) return <div className='step step-complete'>\n {/* <Icon name={\"Check\"} className='text-white' /> */}\n <span className='text-white'>&#x2713;</span> \n </div>\n\n if (step.finshed) return <div className='step step-complete'>\n {/* <Icon name={\"Check\"} className='text-white' /> */}\n {step.icon}\n </div>\n\n if (step.active) return <div className='step step-active'>\n {\n step.icon ??\n <h2 className='text-white'>{index}</h2>\n }\n\n </div>\n\n return (\n <div className={`step step-default`}>\n {step.icon ?? <h2>{index}</h2>}\n </div>\n );\n};\n","import React, { Fragment } from 'react';\nimport { useMultiStepper } from '../hooks';\nimport { Step } from './StepperIcon';\n\n\nexport const StepperHeader: React.FC = () => {\n const { steps } = useMultiStepper()\n\n if (!steps.length) return <Fragment />\n return (\n <div className='app-container'>\n <ol className='stepper-header'>\n {\n steps.map((step, i) => (\n <div\n key={i}\n className={`step-item ${step.active && \"active\"} ${step.completed && \"complete\"\n } `}\n >\n\n <Step index={i + 1} step={step} />\n\n <div className=\"step-text\">\n {step.title && <h3 className=\"step-title\">{step.title}</h3>}\n {step.description && <h3 className=\"step-description\">{step.description}</h3>}\n </div>\n\n </div>\n ))\n }\n\n </ol>\n </div>\n );\n};\n","import React, { useMemo } from 'react';\nimport { useMultiStepper } from '../hooks';\n\ntype StepperFooterProps = {\n onClickNext: () => void\n}\n\nexport const StepperFooter: React.FC<StepperFooterProps> = ({ onClickNext }) => {\n const { handleNextStep, handlePrevStep, currentStep, steps } = useMultiStepper();\n const isFinished = currentStep === steps.length - 1;\n\n const handleNext = () => {\n\n if (!steps[currentStep].completed) {\n handleNextStep()\n onClickNext()\n }\n\n }\n\n const buttonClass = useMemo(() => ({\n button: 'stepper-button',\n fill: 'stepper-button-fill'\n }), []);\n\n return (\n <div className=\"stepper-footer\">\n <button\n type=\"button\"\n className={buttonClass.button}\n onClick={handlePrevStep}\n disabled={currentStep < 0}\n >\n Prev\n </button>\n\n <button\n type=\"button\"\n className={`${isFinished ? `${buttonClass.button} ${buttonClass.fill}` : buttonClass.button}`}\n onClick={handleNext}\n >\n {isFinished ? 'Finish' : 'Next'}\n </button>\n </div>\n );\n};\n","import React from 'react';\nimport { useMultiStepper } from '../hooks';\n\n\nexport const StepperContent: React.FC = () => {\n const { steps, currentStep } = useMultiStepper()\n return (\n <div className='stepper-content'>\n {\n steps[currentStep] && \n steps[currentStep].children && \n steps[currentStep].children\n }\n </div>\n );\n};\n","import React from 'react';\nimport type { StepType } from './types';\nimport { MultiStepperProvider } from './contexts';\nimport { StepperHeader } from './components/StepperHeader';\nimport { StepperFooter } from './components/StepperFooter';\nimport { StepperContent } from './components/StepperContent';\n\ntype StepperProps = {\n steps: StepType[];\n onClickNext:()=> void\n}\n\nexport const MultiStepper: React.FC<StepperProps> = ({\n steps,\n onClickNext\n}) => {\n if (!steps) return <></>\n return (\n <MultiStepperProvider steppers={steps}>\n <StepperHeader />\n <StepperContent />\n <StepperFooter onClickNext={onClickNext}/>\n </MultiStepperProvider>\n );\n};\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","self","source","owner","debugStack","debugTask","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","MultiStepperContext","createContext","useMultiStepper","context","useContext","MultiStepperProvider","steppers","currentStep","setCurrentStep","useState","steps","setSteps","useEffect","temp","updateSteps","useCallback","newStep","prev","updated","i","handleNextStep","handlePrevStep","contextValue","useMemo","Spinner","jsx","Spinner$1","Step","step","index","Fragment","StepperHeader","jsxs","StepperFooter","onClickNext","isFinished","handleNext","buttonClass","StepperContent","MultiStepper"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A,EAAAA,IAAC,OAAA,EAAI,WAAU,mBAEX,YAAMlB,CAAW,KACjBG,EAAMH,CAAW,EAAE,YACnBG,EAAMH,CAAW,EAAE,UAEvB;AAEJ,GCHagC,KAAuC,CAAC;AAAA,EACnD,OAAA7B;AAAA,EACA,aAAAwB;AACF,MACOxB,IAEHsB,gBAAAA,EAAAA,KAAC3B,IAAA,EAAqB,UAAUK,GAC9B,UAAA;AAAA,EAAAe,gBAAAA,EAAAA,IAACM,IAAA,EAAc;AAAA,wBACdO,IAAA,EAAe;AAAA,EAChBb,gBAAAA,MAACQ,MAAc,aAAAC,EAAA,CAAyB;AAAA,GAC1C,IANiBT,gBAAAA,MAAAK,EAAAA,UAAA,CAAA,CAAE;","x_google_ignoreList":[0,1,2]}
@@ -1,5 +1,5 @@
1
- (function(j,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],l):(j=typeof globalThis<"u"?globalThis:j||self,l(j["multi-stepper"]={},j.React))})(this,function(j,l){"use strict";var M=document.createElement("style");M.textContent=`.app-container{padding:1.5rem}.stepper-header{display:flex;width:100%;justify-content:space-between}.step-item{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%}.step-item:not(:first-child):before{content:"";background-color:#e2e8f0;position:absolute;width:calc(100% - 2.5rem);height:3px;right:calc(50% + 1.25rem);top:1.125rem;transition:all .2s}.step{width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;z-index:10;position:relative;border-radius:9999px;font-weight:600;color:#000;transition:all .2s}.step-active{border:1px solid #0284c7;background-color:#0284c7}.step-complete{background-color:#16a34a;color:#fff}.step-error{background-color:#ef4444}.step-finished{background-color:#16a34a}.step-active h2,.step-complete h2,.step-error span,.step-finished h2{color:#fff}.step-default{border:1px solid #d1d5db}.active .step{background-color:#0284c7}.complete .step{background-color:#16a34a}.complete:not(:first-child):before,.active:not(:first-child):before{background-color:#16a34a}.step-text{text-align:center;margin-top:1rem;color:#fff}.step-title{font-size:1rem;color:#111827;font-weight:500;margin-bottom:.25rem}.step-description{font-size:.875rem;color:#4b5563;font-weight:300}.stepper-content{width:100%;padding-block:1.5rem;display:flex;justify-content:center;align-items:center}.stepper-footer{width:100%;display:flex;justify-content:space-around;align-items:center;padding:1.5rem}.stepper-button{padding:.375rem 2rem;font-size:1rem;border-radius:.375rem;border:1px solid #9ca3af;background-color:transparent;color:inherit;cursor:pointer}.stepper-button-fill{border-color:#3b82f6;background-color:#3b82f6;color:#fff}
2
- /*$vite$:1*/`,document.head.appendChild(M);var T={exports:{}},R={};/**
1
+ (function(j,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],i):(j=typeof globalThis<"u"?globalThis:j||self,i(j["multi-stepper"]={},j.React))})(this,function(j,i){"use strict";var M=document.createElement("style");M.textContent=`body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}h1,h2,h3,h4,h5,h6,p{margin:0%;padding:0%}.app-container{padding:1.5rem}.stepper-header{display:flex;width:100%;justify-content:space-between}.step-item{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%}.step-item:not(:first-child):before{content:"";background-color:#e2e8f0;position:absolute;width:calc(100% - 2.5rem);height:3px;right:calc(50% + 1.25rem);top:1.125rem;transition:all .2s}.step{width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;z-index:10;position:relative;border-radius:9999px;font-weight:600;color:#000;transition:all .2s}.step-active{border:1px solid #0284c7;background-color:#0284c7}.step-complete{background-color:#16a34a;color:#fff}.step-error{background-color:#ef4444}.step-finished{background-color:#16a34a}.step-active h2,.step-complete h2,.step-error span,.step-finished h2{color:#fff}.step-default{border:1px solid #d1d5db}.active .step{background-color:#0284c7}.complete .step{background-color:#16a34a}.complete:not(:first-child):before,.active:not(:first-child):before{background-color:#16a34a}.step-text{text-align:center;color:#fff}.step-title{font-size:1rem;color:#111827;font-weight:500;margin-top:1rem}.step-description{font-size:.85rem;color:#4b5563;font-weight:300;margin-top:.5rem}.stepper-content{width:100%;display:flex;justify-content:center;align-items:center}.stepper-footer{display:flex;justify-content:space-around;align-items:center;padding:1.5rem;padding-block:2rem}.stepper-button{padding:.375rem 2rem;font-size:1rem;border-radius:.375rem;border:1px solid #9ca3af;background-color:transparent;color:inherit;cursor:pointer}.stepper-button-fill{border-color:#3b82f6;background-color:#3b82f6;color:#fff}
2
+ /*$vite$:1*/`,document.head.appendChild(M);var S={exports:{}},R={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var Y;function H(){if(Y)return R;Y=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function o(x,c,i){var m=null;if(i!==void 0&&(m=""+i),c.key!==void 0&&(m=""+c.key),"key"in c){i={};for(var E in c)E!=="key"&&(i[E]=c[E])}else i=c;return c=i.ref,{$$typeof:n,type:x,key:m,ref:c!==void 0?c:null,props:i}}return R.Fragment=s,R.jsx=o,R.jsxs=o,R}var k={};/**
10
+ */var Y;function H(){if(Y)return R;Y=1;var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function s(x,c,l){var m=null;if(l!==void 0&&(m=""+l),c.key!==void 0&&(m=""+c.key),"key"in c){l={};for(var h in c)h!=="key"&&(l[h]=c[h])}else l=c;return c=l.ref,{$$typeof:r,type:x,key:m,ref:c!==void 0?c:null,props:l}}return R.Fragment=o,R.jsx=s,R.jsxs=s,R}var k={};/**
11
11
  * @license React
12
12
  * react-jsx-runtime.development.js
13
13
  *
@@ -15,10 +15,10 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var I;function B(){return I||(I=1,process.env.NODE_ENV!=="production"&&function(){function n(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case ae:return"Profiler";case se:return"StrictMode";case ue:return"Suspense";case de:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case oe:return"Portal";case ie:return(e.displayName||"Context")+".Provider";case ce:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fe:return t=e.displayName||null,t!==null?t:n(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return n(e(t))}catch{}}return null}function s(e){return""+e}function o(e){try{s(e);var t=!1}catch{t=!0}if(t){t=console;var a=t.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),s(e)}}function x(e){if(e===w)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===z)return"<...>";try{var t=n(e);return t?"<"+t+">":"<...>"}catch{return"<...>"}}function c(){var e=P.A;return e===null?null:e.getOwner()}function i(){return Error("react-stack-top-frame")}function m(e){if(W.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function E(e,t){function a(){U||(U=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}function N(){var e=n(this.type);return J[e]||(J[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function y(e,t,a,d,g,v,A,C){return a=v.ref,e={$$typeof:h,type:e,key:t,props:v,_owner:g},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:N}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:C}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function p(e,t,a,d,g,v,A,C){var f=t.children;if(f!==void 0)if(d)if(he(f)){for(d=0;d<f.length;d++)b(f[d]);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else b(f);if(W.call(t,"key")){f=n(e);var _=Object.keys(t).filter(function(be){return be!=="key"});d=0<_.length?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}",X[f+d]||(_=0<_.length?"{"+_.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ */var I;function B(){return I||(I=1,process.env.NODE_ENV!=="production"&&function(){function r(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case ae:return"Profiler";case se:return"StrictMode";case ue:return"Suspense";case de:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case oe:return"Portal";case ie:return(e.displayName||"Context")+".Provider";case ce:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fe:return t=e.displayName||null,t!==null?t:r(e.type)||"Memo";case U:t=e._payload,e=e._init;try{return r(e(t))}catch{}}return null}function o(e){return""+e}function s(e){try{o(e);var t=!1}catch{t=!0}if(t){t=console;var a=t.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),o(e)}}function x(e){if(e===w)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===U)return"<...>";try{var t=r(e);return t?"<"+t+">":"<...>"}catch{return"<...>"}}function c(){var e=O.A;return e===null?null:e.getOwner()}function l(){return Error("react-stack-top-frame")}function m(e){if(z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function h(e,t){function a(){W||(W=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}function y(){var e=r(this.type);return J[e]||(J[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function N(e,t,a,d,E,g,A,C){return a=g.ref,e={$$typeof:b,type:e,key:t,props:g,_owner:E},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:y}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:C}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function p(e,t,a,d,E,g,A,C){var f=t.children;if(f!==void 0)if(d)if(he(f)){for(d=0;d<f.length;d++)v(f[d]);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else v(f);if(z.call(t,"key")){f=r(e);var _=Object.keys(t).filter(function(be){return be!=="key"});d=0<_.length?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}",X[f+d]||(_=0<_.length?"{"+_.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
19
19
  let props = %s;
20
20
  <%s {...props} />
21
21
  React keys must be passed directly to JSX without using spread:
22
22
  let props = %s;
23
- <%s key={someKey} {...props} />`,d,f,_,f),X[f+d]=!0)}if(f=null,a!==void 0&&(o(a),f=""+a),m(t)&&(o(t.key),f=""+t.key),"key"in t){a={};for(var F in t)F!=="key"&&(a[F]=t[F])}else a=t;return f&&E(a,typeof e=="function"?e.displayName||e.name||"Unknown":e),y(e,f,v,g,c(),a,A,C)}function b(e){typeof e=="object"&&e!==null&&e.$$typeof===h&&e._store&&(e._store.validated=1)}var u=l,h=Symbol.for("react.transitional.element"),oe=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),se=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ce=Symbol.for("react.consumer"),ie=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),me=Symbol.for("react.client.reference"),P=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,he=Array.isArray,O=console.createTask?console.createTask:function(){return null};u={react_stack_bottom_frame:function(e){return e()}};var U,J={},V=u.react_stack_bottom_frame.bind(u,i)(),G=O(x(i)),X={};k.Fragment=w,k.jsx=function(e,t,a,d,g){var v=1e4>P.recentlyCreatedOwnerStacks++;return p(e,t,a,!1,d,g,v?Error("react-stack-top-frame"):V,v?O(x(e)):G)},k.jsxs=function(e,t,a,d,g){var v=1e4>P.recentlyCreatedOwnerStacks++;return p(e,t,a,!0,d,g,v?Error("react-stack-top-frame"):V,v?O(x(e)):G)}}()),k}var D;function Z(){return D||(D=1,process.env.NODE_ENV==="production"?T.exports=H():T.exports=B()),T.exports}var r=Z();const L=l.createContext(void 0),S=()=>{const n=l.useContext(L);if(!n)throw new Error("useMultiStepperForm must be used within a MultiStepperProvider");return n},Q=({children:n,steppers:s})=>{const[o,x]=l.useState(0),[c,i]=l.useState([]);l.useEffect(()=>{if(s.length){const p=[...s];p[0].active=!0,i(p)}},[s.length]);const m=l.useCallback(p=>{i(b=>{const u=[...b];if(p>b.length-1)return b;u[o]&&(u[o]={...u[o],active:!1}),u[p]&&(u[p]={...u[p],active:!0});for(let h=0;h<p;h++)u[h]={...u[h],completed:!0};for(let h=p;h<u.length;h++)u[h]={...u[h],completed:!1};return u}),x(p)},[o]),E=l.useCallback(()=>{o<c.length-1?m(o+1):i(p=>{const b=[...p];return b[o]={...b[o],completed:!0},b})},[o,c.length,m]),N=l.useCallback(()=>{o>0&&m(o-1)},[o,m]),y=l.useMemo(()=>({currentStep:o,steps:c,handleNextStep:E,handlePrevStep:N,updateSteps:m}),[o,c,E,N,m]);return r.jsx(L.Provider,{value:y,children:n})},K=()=>r.jsx("div",{children:"Loading.."}),q=l.memo(K),$=({step:n,index:s})=>{const{steps:o}=S();return o.length?n.loading?r.jsx("div",{className:"step step-loading",children:r.jsx(q,{})}):n.error?r.jsx("div",{className:"step step-error",children:r.jsx("span",{className:"text-white",children:"✗"})}):n.completed?r.jsx("div",{className:"step step-complete",children:r.jsx("span",{className:"text-white",children:"✓"})}):n.finshed?r.jsx("div",{className:"step step-complete",children:n.icon}):n.active?r.jsx("div",{className:"step step-active",children:n.icon??r.jsx("h2",{className:"text-white",children:s})}):r.jsx("div",{className:"step step-default",children:n.icon??r.jsx("h2",{children:s})}):r.jsx(l.Fragment,{})},ee=()=>{const{steps:n}=S();return n.length?r.jsx("div",{className:"app-container",children:r.jsx("ol",{className:"stepper-header",children:n.map((s,o)=>r.jsxs("div",{className:`step-item ${s.active&&"active"} ${s.completed&&"complete"} `,children:[r.jsx($,{index:o+1,step:s}),r.jsxs("div",{className:"step-text",children:[s.title&&r.jsx("h3",{className:"step-title",children:s.title}),s.description&&r.jsx("h3",{className:"step-description",children:s.description})]})]},o))})}):r.jsx(l.Fragment,{})},te=()=>{const{handleNextStep:n,handlePrevStep:s,currentStep:o,steps:x}=S(),c=o===x.length-1,i=l.useMemo(()=>({button:"stepper-button",fill:"stepper-button-fill"}),[]);return r.jsxs("div",{className:"stepper-footer",children:[o>0?r.jsx("button",{type:"button",className:i.button,onClick:s,children:"Prev"}):r.jsx("div",{}),r.jsx("button",{type:"button",className:`${c?`${i.button} ${i.fill}`:i.button}`,onClick:n,children:c?"Finish":"Next"})]})},re=()=>{const{steps:n,currentStep:s}=S();return r.jsx("div",{className:"stepper-content",children:n[s]&&n[s].children&&n[s].children})},ne=({steps:n})=>n?r.jsxs(Q,{steppers:n,children:[r.jsx(ee,{}),r.jsx(re,{}),r.jsx(te,{})]}):r.jsx(r.Fragment,{});j.MultiStepper=ne,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
23
+ <%s key={someKey} {...props} />`,d,f,_,f),X[f+d]=!0)}if(f=null,a!==void 0&&(s(a),f=""+a),m(t)&&(s(t.key),f=""+t.key),"key"in t){a={};for(var F in t)F!=="key"&&(a[F]=t[F])}else a=t;return f&&h(a,typeof e=="function"?e.displayName||e.name||"Unknown":e),N(e,f,g,E,c(),a,A,C)}function v(e){typeof e=="object"&&e!==null&&e.$$typeof===b&&e._store&&(e._store.validated=1)}var u=i,b=Symbol.for("react.transitional.element"),oe=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),se=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ce=Symbol.for("react.consumer"),ie=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),me=Symbol.for("react.client.reference"),O=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,he=Array.isArray,P=console.createTask?console.createTask:function(){return null};u={react_stack_bottom_frame:function(e){return e()}};var W,J={},V=u.react_stack_bottom_frame.bind(u,l)(),G=P(x(l)),X={};k.Fragment=w,k.jsx=function(e,t,a,d,E){var g=1e4>O.recentlyCreatedOwnerStacks++;return p(e,t,a,!1,d,E,g?Error("react-stack-top-frame"):V,g?P(x(e)):G)},k.jsxs=function(e,t,a,d,E){var g=1e4>O.recentlyCreatedOwnerStacks++;return p(e,t,a,!0,d,E,g?Error("react-stack-top-frame"):V,g?P(x(e)):G)}}()),k}var D;function Z(){return D||(D=1,process.env.NODE_ENV==="production"?S.exports=H():S.exports=B()),S.exports}var n=Z();const L=i.createContext(void 0),T=()=>{const r=i.useContext(L);if(!r)throw new Error("useMultiStepperForm must be used within a MultiStepperProvider");return r},Q=({children:r,steppers:o})=>{const[s,x]=i.useState(0),[c,l]=i.useState([]);i.useEffect(()=>{if(o.length){const p=[...o];p[0].active=!0,l(p)}},[o.length]);const m=i.useCallback(p=>{l(v=>{const u=[...v];if(p>v.length-1)return v;u[s]&&(u[s]={...u[s],active:!1}),u[p]&&(u[p]={...u[p],active:!0});for(let b=0;b<p;b++)u[b]={...u[b],completed:!0};for(let b=p;b<u.length;b++)u[b]={...u[b],completed:!1};return u}),x(p)},[s]),h=i.useCallback(()=>{s<c.length-1?m(s+1):l(p=>{const v=[...p];return v[s]={...v[s],completed:!0},v})},[s,c.length,m]),y=i.useCallback(()=>{s>0&&m(s-1)},[s,m]),N=i.useMemo(()=>({currentStep:s,steps:c,handleNextStep:h,handlePrevStep:y,updateSteps:m}),[s,c,h,y,m]);return n.jsx(L.Provider,{value:N,children:r})},K=()=>n.jsx("div",{children:"Loading.."}),q=i.memo(K),$=({step:r,index:o})=>{const{steps:s}=T();return s.length?r.loading?n.jsx("div",{className:"step step-loading",children:n.jsx(q,{})}):r.error?n.jsx("div",{className:"step step-error",children:n.jsx("span",{className:"text-white",children:"✗"})}):r.completed?n.jsx("div",{className:"step step-complete",children:n.jsx("span",{className:"text-white",children:"✓"})}):r.finshed?n.jsx("div",{className:"step step-complete",children:r.icon}):r.active?n.jsx("div",{className:"step step-active",children:r.icon??n.jsx("h2",{className:"text-white",children:o})}):n.jsx("div",{className:"step step-default",children:r.icon??n.jsx("h2",{children:o})}):n.jsx(i.Fragment,{})},ee=()=>{const{steps:r}=T();return r.length?n.jsx("div",{className:"app-container",children:n.jsx("ol",{className:"stepper-header",children:r.map((o,s)=>n.jsxs("div",{className:`step-item ${o.active&&"active"} ${o.completed&&"complete"} `,children:[n.jsx($,{index:s+1,step:o}),n.jsxs("div",{className:"step-text",children:[o.title&&n.jsx("h3",{className:"step-title",children:o.title}),o.description&&n.jsx("h3",{className:"step-description",children:o.description})]})]},s))})}):n.jsx(i.Fragment,{})},te=({onClickNext:r})=>{const{handleNextStep:o,handlePrevStep:s,currentStep:x,steps:c}=T(),l=x===c.length-1,m=()=>{c[x].completed||(o(),r())},h=i.useMemo(()=>({button:"stepper-button",fill:"stepper-button-fill"}),[]);return n.jsxs("div",{className:"stepper-footer",children:[n.jsx("button",{type:"button",className:h.button,onClick:s,disabled:x<0,children:"Prev"}),n.jsx("button",{type:"button",className:`${l?`${h.button} ${h.fill}`:h.button}`,onClick:m,children:l?"Finish":"Next"})]})},re=()=>{const{steps:r,currentStep:o}=T();return n.jsx("div",{className:"stepper-content",children:r[o]&&r[o].children&&r[o].children})},ne=({steps:r,onClickNext:o})=>r?n.jsxs(Q,{steppers:r,children:[n.jsx(ee,{}),n.jsx(re,{}),n.jsx(te,{onClickNext:o})]}):n.jsx(n.Fragment,{});j.MultiStepper=ne,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
24
24
  //# sourceMappingURL=multi-stepper.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"multi-stepper.umd.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/hooks/index.ts","../src/contexts/index.tsx","../src/components/spinner.tsx","../src/components/StepperIcon.tsx","../src/components/StepperHeader.tsx","../src/components/StepperFooter.tsx","../src/components/StepperContent.tsx","../src/MultiStepper.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { createContext, useContext } from \"react\";\nimport type { MultiStepperType } from \"../types\";\n\n// Multi stepper context\nexport const MultiStepperContext = createContext<MultiStepperType | undefined>(\n undefined\n);\n\n// context consumer hook\nexport const useMultiStepper = () => {\n const context = useContext(MultiStepperContext);\n if (!context)\n throw new Error(\n \"useMultiStepperForm must be used within a MultiStepperProvider\"\n );\n return context;\n};\n","import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport type { MultiStepperProviderType, StepType } from '../types';\nimport { MultiStepperContext } from \"../hooks\";\n\nexport const MultiStepperProvider: React.FC<MultiStepperProviderType> = ({ children, steppers }) => {\n\n const [currentStep, setCurrentStep] = useState(0)\n const [steps, setSteps] = useState<StepType[]>([])\n\n useEffect(() => {\n if(steppers.length){\n const temp = [...steppers]\n temp[0].active = true\n setSteps(temp)\n }\n }, [steppers.length])\n\n const updateSteps = useCallback((newStep: number) => {\n setSteps((prev) => {\n const updated = [...prev]\n\n // if more than length of steps array return steps array as its\n if (newStep > prev.length - 1) return prev\n\n // deactivate current step\n if (updated[currentStep])\n updated[currentStep] = { ...updated[currentStep], active: false }\n\n // activate new step\n if (updated[newStep])\n updated[newStep] = { ...updated[newStep], active: true }\n\n // mark prev steps as completed\n for (let i = 0; i < newStep; i++) {\n updated[i] = { ...updated[i], completed: true }\n }\n\n // mark future steps as incompleted\n for (let i = newStep; i < updated.length; i++) {\n updated[i] = { ...updated[i], completed: false }\n }\n\n return updated\n })\n setCurrentStep(newStep)\n }, [currentStep])\n\n const handleNextStep = useCallback(() => {\n if (currentStep < steps.length -1) updateSteps(currentStep + 1)\n else setSteps((prev) => {\n const updated = [...prev]\n updated[currentStep] = { ...updated[currentStep], completed: true }\n return updated\n })\n }, [currentStep, steps.length, updateSteps])\n\n\n\n const handlePrevStep = useCallback(() => {\n if (currentStep > 0) updateSteps(currentStep-1)\n }, [currentStep, updateSteps])\n\n // ⚡️ Memoize the entire context value\n const contextValue = useMemo(\n () => ({\n currentStep,\n steps,\n handleNextStep,\n handlePrevStep,\n updateSteps,\n }),\n [currentStep, steps, handleNextStep, handlePrevStep, updateSteps]\n );\n\n return <MultiStepperContext.Provider value={contextValue}>\n {children}\n </MultiStepperContext.Provider>\n}","import React from \"react\";\n// import { cn } from \"@/lib/utils\"; // or use 'clsx' if you prefer\n\ntype SpinnerProps = {\n size?: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | number;\n className?: string;\n};\n\n// const sizeMap: Record<string, string> = {\n// xs: \"w-2 h-2\",\n// sm: \"w-4 h-4\",\n// md: \"w-6 h-6\",\n// lg: \"w-8 h-8\",\n// xl: \"w-10 h-10\",\n// };\n// size = \"md\", className\nconst Spinner: React.FC<SpinnerProps> = () => {\n // const sizeClass = useMemo(() => {\n // return typeof size === \"number\"\n // ? `w-[${size}px] h-[${size}px]`\n // : sizeMap[size] || sizeMap[\"md\"];\n // }, [size]);\n\n return (\n <div>Loading..</div>\n );\n};\n\nexport default React.memo(Spinner);\n","import React, { Fragment } from 'react';\nimport { useMultiStepper } from '../hooks';\nimport type { StepType } from '../types';\nimport Spinner from './spinner';\n\ntype StepItemType = {\n step: StepType,\n index: number\n}\n\nexport const Step: React.FC<StepItemType> = ({\n step, index\n}) => {\n const { steps } = useMultiStepper()\n if (!steps.length) return <Fragment />\n\n if (step.loading) return <div className='step step-loading'>\n <Spinner />\n </div>\n\n if (step.error) return <div className='step step-error'>\n {/* <Icon name={\"X\"} className='text-white' /> */}\n <span className='text-white'>&#x2717;</span> \n </div>\n\n if (step.completed) return <div className='step step-complete'>\n {/* <Icon name={\"Check\"} className='text-white' /> */}\n <span className='text-white'>&#x2713;</span> \n </div>\n\n if (step.finshed) return <div className='step step-complete'>\n {/* <Icon name={\"Check\"} className='text-white' /> */}\n {step.icon}\n </div>\n\n if (step.active) return <div className='step step-active'>\n {\n step.icon ??\n <h2 className='text-white'>{index}</h2>\n }\n\n </div>\n\n return (\n <div className={`step step-default`}>\n {step.icon ?? <h2>{index}</h2>}\n </div>\n );\n};\n","import React, { Fragment } from 'react';\nimport { useMultiStepper } from '../hooks';\nimport { Step } from './StepperIcon';\n\n\nexport const StepperHeader: React.FC = () => {\n const { steps } = useMultiStepper()\n\n if (!steps.length) return <Fragment />\n return (\n <div className='app-container'>\n <ol className='stepper-header'>\n {\n steps.map((step, i) => (\n <div\n key={i}\n className={`step-item ${step.active && \"active\"} ${step.completed && \"complete\"\n } `}\n >\n\n <Step index={i + 1} step={step} />\n\n <div className=\"step-text\">\n {step.title && <h3 className=\"step-title\">{step.title}</h3>}\n {step.description && <h3 className=\"step-description\">{step.description}</h3>}\n </div>\n\n </div>\n ))\n }\n\n </ol>\n </div>\n );\n};\n","import React, { useMemo } from 'react';\nimport { useMultiStepper } from '../hooks';\n\nexport const StepperFooter: React.FC = () => {\n const { handleNextStep, handlePrevStep, currentStep, steps } = useMultiStepper();\n const isFinished = currentStep === steps.length - 1;\n\n const buttonClass = useMemo(() => ({\n button: 'stepper-button',\n fill: 'stepper-button-fill'\n }), []);\n\n return (\n <div className=\"stepper-footer\">\n {currentStep > 0 ? (\n <button\n type=\"button\"\n className={buttonClass.button}\n onClick={handlePrevStep}\n >\n Prev\n </button>\n ) : (\n <div />\n )}\n\n <button\n type=\"button\"\n className={`${isFinished ? `${buttonClass.button} ${buttonClass.fill}` : buttonClass.button}`}\n onClick={handleNextStep}\n >\n {isFinished ? 'Finish' : 'Next'}\n </button>\n </div>\n );\n};\n","import React from 'react';\nimport { useMultiStepper } from '../hooks';\n\n\nexport const StepperContent: React.FC = () => {\n const { steps, currentStep } = useMultiStepper()\n return (\n <div className='stepper-content'>\n {\n steps[currentStep] && \n steps[currentStep].children && \n steps[currentStep].children\n }\n </div>\n );\n};\n","import React from 'react';\nimport type { StepType } from './types';\nimport { MultiStepperProvider } from './contexts';\nimport { StepperHeader } from './components/StepperHeader';\nimport { StepperFooter } from './components/StepperFooter';\nimport { StepperContent } from './components/StepperContent';\n\ntype StepperProps = {\n steps?: StepType[];\n}\n\nexport const MultiStepper: React.FC<StepperProps> = ({\n steps,\n}) => {\n if (!steps) return <></>\n return (\n <MultiStepperProvider steppers={steps}>\n <StepperHeader />\n <StepperContent />\n <StepperFooter />\n </MultiStepperProvider>\n );\n};\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","self","source","owner","debugStack","debugTask","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","MultiStepperContext","createContext","useMultiStepper","context","useContext","MultiStepperProvider","steppers","currentStep","setCurrentStep","useState","steps","setSteps","useEffect","temp","updateSteps","useCallback","newStep","prev","updated","i","handleNextStep","handlePrevStep","contextValue","useMemo","Spinner","jsx","Spinner$1","Step","step","index","Fragment","StepperHeader","jsxs","StepperFooter","isFinished","buttonClass","StepperContent","MultiStepper"],"mappings":";;;;;;;;;wCAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,CAAA,EACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,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AAC,SAAA,CACC,KAAK,SACL,UAAWU,EAAY,OACvB,QAASd,EACV,SAAA,MAAA,CAAA,QAIA,MAAA,EAAI,EAGPI,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UAAW,GAAGS,EAAa,GAAGC,EAAY,MAAM,IAAIA,EAAY,IAAI,GAAKA,EAAY,MAAM,GAC3F,QAASf,EAER,WAAa,SAAW,MAAA,CAAA,CAC3B,EACF,CAEJ,EC/BagB,GAA2B,IAAM,CAC5C,KAAM,CAAE,MAAA1B,EAAO,YAAAH,CAAA,EAAgBL,EAAA,EAC/B,OACEuB,EAAAA,IAAC,MAAA,CAAI,UAAU,kBAEX,WAAMlB,CAAW,GACjBG,EAAMH,CAAW,EAAE,UACnBG,EAAMH,CAAW,EAAE,SAEvB,CAEJ,ECJa8B,GAAuC,CAAC,CACnD,MAAA3B,CACF,IACOA,EAEHsB,EAAAA,KAAC3B,EAAA,CAAqB,SAAUK,EAC9B,SAAA,CAAAe,EAAAA,IAACM,GAAA,EAAc,QACdK,GAAA,EAAe,QACfH,GAAA,CAAA,CAAc,CAAA,EACjB,EANiBR,MAAAK,EAAAA,SAAA,CAAA,CAAE","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"multi-stepper.umd.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/hooks/index.ts","../src/contexts/index.tsx","../src/components/spinner.tsx","../src/components/StepperIcon.tsx","../src/components/StepperHeader.tsx","../src/components/StepperFooter.tsx","../src/components/StepperContent.tsx","../src/MultiStepper.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { createContext, useContext } from \"react\";\nimport type { MultiStepperType } from \"../types\";\n\n// Multi stepper context\nexport const MultiStepperContext = createContext<MultiStepperType | undefined>(\n undefined\n);\n\n// context consumer hook\nexport const useMultiStepper = () => {\n const context = useContext(MultiStepperContext);\n if (!context)\n throw new Error(\n \"useMultiStepperForm must be used within a MultiStepperProvider\"\n );\n return context;\n};\n","import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport type { MultiStepperProviderType, StepType } from '../types';\nimport { MultiStepperContext } from \"../hooks\";\n\nexport const MultiStepperProvider: React.FC<MultiStepperProviderType> = ({ children, steppers }) => {\n\n const [currentStep, setCurrentStep] = useState(0)\n const [steps, setSteps] = useState<StepType[]>([])\n\n useEffect(() => {\n if(steppers.length){\n const temp = [...steppers]\n temp[0].active = true\n setSteps(temp)\n }\n }, [steppers.length])\n\n const updateSteps = useCallback((newStep: number) => {\n setSteps((prev) => {\n const updated = [...prev]\n\n // if more than length of steps array return steps array as its\n if (newStep > prev.length - 1) return prev\n\n // deactivate current step\n if (updated[currentStep])\n updated[currentStep] = { ...updated[currentStep], active: false }\n\n // activate new step\n if (updated[newStep])\n updated[newStep] = { ...updated[newStep], active: true }\n\n // mark prev steps as completed\n for (let i = 0; i < newStep; i++) {\n updated[i] = { ...updated[i], completed: true }\n }\n\n // mark future steps as incompleted\n for (let i = newStep; i < updated.length; i++) {\n updated[i] = { ...updated[i], completed: false }\n }\n\n return updated\n })\n setCurrentStep(newStep)\n }, [currentStep])\n\n const handleNextStep = useCallback(() => {\n if (currentStep < steps.length -1) updateSteps(currentStep + 1)\n else setSteps((prev) => {\n const updated = [...prev]\n updated[currentStep] = { ...updated[currentStep], completed: true }\n return updated\n })\n }, [currentStep, steps.length, updateSteps])\n\n\n\n const handlePrevStep = useCallback(() => {\n if (currentStep > 0) updateSteps(currentStep-1)\n }, [currentStep, updateSteps])\n\n // ⚡️ Memoize the entire context value\n const contextValue = useMemo(\n () => ({\n currentStep,\n steps,\n handleNextStep,\n handlePrevStep,\n updateSteps,\n }),\n [currentStep, steps, handleNextStep, handlePrevStep, updateSteps]\n );\n\n return <MultiStepperContext.Provider value={contextValue}>\n {children}\n </MultiStepperContext.Provider>\n}","import React from \"react\";\n// import { cn } from \"@/lib/utils\"; // or use 'clsx' if you prefer\n\ntype SpinnerProps = {\n size?: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | number;\n className?: string;\n};\n\n// const sizeMap: Record<string, string> = {\n// xs: \"w-2 h-2\",\n// sm: \"w-4 h-4\",\n// md: \"w-6 h-6\",\n// lg: \"w-8 h-8\",\n// xl: \"w-10 h-10\",\n// };\n// size = \"md\", className\nconst Spinner: React.FC<SpinnerProps> = () => {\n // const sizeClass = useMemo(() => {\n // return typeof size === \"number\"\n // ? `w-[${size}px] h-[${size}px]`\n // : sizeMap[size] || sizeMap[\"md\"];\n // }, [size]);\n\n return (\n <div>Loading..</div>\n );\n};\n\nexport default React.memo(Spinner);\n","import React, { Fragment } from 'react';\nimport { useMultiStepper } from '../hooks';\nimport type { StepType } from '../types';\nimport Spinner from './spinner';\n\ntype StepItemType = {\n step: StepType,\n index: number\n}\n\nexport const Step: React.FC<StepItemType> = ({\n step, index\n}) => {\n const { steps } = useMultiStepper()\n if (!steps.length) return <Fragment />\n\n if (step.loading) return <div className='step step-loading'>\n <Spinner />\n </div>\n\n if (step.error) return <div className='step step-error'>\n {/* <Icon name={\"X\"} className='text-white' /> */}\n <span className='text-white'>&#x2717;</span> \n </div>\n\n if (step.completed) return <div className='step step-complete'>\n {/* <Icon name={\"Check\"} className='text-white' /> */}\n <span className='text-white'>&#x2713;</span> \n </div>\n\n if (step.finshed) return <div className='step step-complete'>\n {/* <Icon name={\"Check\"} className='text-white' /> */}\n {step.icon}\n </div>\n\n if (step.active) return <div className='step step-active'>\n {\n step.icon ??\n <h2 className='text-white'>{index}</h2>\n }\n\n </div>\n\n return (\n <div className={`step step-default`}>\n {step.icon ?? <h2>{index}</h2>}\n </div>\n );\n};\n","import React, { Fragment } from 'react';\nimport { useMultiStepper } from '../hooks';\nimport { Step } from './StepperIcon';\n\n\nexport const StepperHeader: React.FC = () => {\n const { steps } = useMultiStepper()\n\n if (!steps.length) return <Fragment />\n return (\n <div className='app-container'>\n <ol className='stepper-header'>\n {\n steps.map((step, i) => (\n <div\n key={i}\n className={`step-item ${step.active && \"active\"} ${step.completed && \"complete\"\n } `}\n >\n\n <Step index={i + 1} step={step} />\n\n <div className=\"step-text\">\n {step.title && <h3 className=\"step-title\">{step.title}</h3>}\n {step.description && <h3 className=\"step-description\">{step.description}</h3>}\n </div>\n\n </div>\n ))\n }\n\n </ol>\n </div>\n );\n};\n","import React, { useMemo } from 'react';\nimport { useMultiStepper } from '../hooks';\n\ntype StepperFooterProps = {\n onClickNext: () => void\n}\n\nexport const StepperFooter: React.FC<StepperFooterProps> = ({ onClickNext }) => {\n const { handleNextStep, handlePrevStep, currentStep, steps } = useMultiStepper();\n const isFinished = currentStep === steps.length - 1;\n\n const handleNext = () => {\n\n if (!steps[currentStep].completed) {\n handleNextStep()\n onClickNext()\n }\n\n }\n\n const buttonClass = useMemo(() => ({\n button: 'stepper-button',\n fill: 'stepper-button-fill'\n }), []);\n\n return (\n <div className=\"stepper-footer\">\n <button\n type=\"button\"\n className={buttonClass.button}\n onClick={handlePrevStep}\n disabled={currentStep < 0}\n >\n Prev\n </button>\n\n <button\n type=\"button\"\n className={`${isFinished ? `${buttonClass.button} ${buttonClass.fill}` : buttonClass.button}`}\n onClick={handleNext}\n >\n {isFinished ? 'Finish' : 'Next'}\n </button>\n </div>\n );\n};\n","import React from 'react';\nimport { useMultiStepper } from '../hooks';\n\n\nexport const StepperContent: React.FC = () => {\n const { steps, currentStep } = useMultiStepper()\n return (\n <div className='stepper-content'>\n {\n steps[currentStep] && \n steps[currentStep].children && \n steps[currentStep].children\n }\n </div>\n );\n};\n","import React from 'react';\nimport type { StepType } from './types';\nimport { MultiStepperProvider } from './contexts';\nimport { StepperHeader } from './components/StepperHeader';\nimport { StepperFooter } from './components/StepperFooter';\nimport { StepperContent } from './components/StepperContent';\n\ntype StepperProps = {\n steps: StepType[];\n onClickNext:()=> void\n}\n\nexport const MultiStepper: React.FC<StepperProps> = ({\n steps,\n onClickNext\n}) => {\n if (!steps) return <></>\n return (\n <MultiStepperProvider steppers={steps}>\n <StepperHeader />\n <StepperContent />\n <StepperFooter onClickNext={onClickNext}/>\n </MultiStepperProvider>\n );\n};\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","self","source","owner","debugStack","debugTask","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","MultiStepperContext","createContext","useMultiStepper","context","useContext","MultiStepperProvider","steppers","currentStep","setCurrentStep","useState","steps","setSteps","useEffect","temp","updateSteps","useCallback","newStep","prev","updated","i","handleNextStep","handlePrevStep","contextValue","useMemo","Spinner","jsx","Spinner$1","Step","step","index","Fragment","StepperHeader","jsxs","StepperFooter","onClickNext","isFinished","handleNext","buttonClass","StepperContent","MultiStepper"],"mappings":";;;;;;;;;wCAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,CAAA,EACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,EAAA,SAAmBP,EACnBO,EAAA,IAAcN,EACdM,EAAA,KAAeN;;;;;;;;qCCtBE,QAAQ,IAAI,WAA7B,cACG,UAAY,CACX,SAASO,EAAyBN,EAAM,CACtC,GAAYA,GAAR,KAAc,OAAO,KACzB,GAAmB,OAAOA,GAAtB,WACF,OAAOA,EAAK,WAAaO,GACrB,KACAP,EAAK,aAAeA,EAAK,MAAQ,KACvC,GAAiB,OAAOA,GAApB,SAA0B,OAAOA,EACrC,OAAQA,EAAI,CACV,KAAKF,EACH,MAAO,WACT,KAAKU,GACH,MAAO,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J,ECzCaE,GAA2B,IAAM,CAC5C,KAAM,CAAE,MAAA5B,EAAO,YAAAH,CAAA,EAAgBL,EAAA,EAC/B,OACEuB,EAAAA,IAAC,MAAA,CAAI,UAAU,kBAEX,WAAMlB,CAAW,GACjBG,EAAMH,CAAW,EAAE,UACnBG,EAAMH,CAAW,EAAE,SAEvB,CAEJ,ECHagC,GAAuC,CAAC,CACnD,MAAA7B,EACA,YAAAwB,CACF,IACOxB,EAEHsB,EAAAA,KAAC3B,EAAA,CAAqB,SAAUK,EAC9B,SAAA,CAAAe,EAAAA,IAACM,GAAA,EAAc,QACdO,GAAA,EAAe,EAChBb,MAACQ,IAAc,YAAAC,CAAA,CAAyB,CAAA,EAC1C,EANiBT,MAAAK,EAAAA,SAAA,CAAA,CAAE","x_google_ignoreList":[0,1,2]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "./dist/multi-stepper.umd.js",
4
4
  "module": "./dist/multi-stepper.es.js",
5
5
  "types": "./dist/index.d.ts",
6
- "version": "1.1.2",
6
+ "version": "1.1.3",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist"
@@ -26,7 +26,7 @@
26
26
  "@vitejs/plugin-react-swc": "^3.11.0",
27
27
  "react": "^19.1.0",
28
28
  "react-dom": "^19.1.0",
29
- "reactjs-multi-stepper": "^1.1.1",
29
+ "reactjs-multi-stepper": "^1.1.2",
30
30
  "tailwindcss": "^4.1.11",
31
31
  "vite-plugin-dts": "^4.5.4",
32
32
  "vite-plugin-lib-inject-css": "^2.2.2"