jcicl 0.0.237 → 0.0.239

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.
Files changed (2) hide show
  1. package/Stepper/Stepper.js +160 -161
  2. package/package.json +1 -1
@@ -1,22 +1,23 @@
1
- import { jsxs as C, jsx as n, Fragment as j } from "react/jsx-runtime";
2
- import * as $ from "react";
3
- import { useState as D, Children as h } from "react";
1
+ import { jsxs as C, jsx as n, Fragment as D } from "react/jsx-runtime";
2
+ import * as O from "react";
3
+ import { useState as T, Children as h } from "react";
4
+ import { flushSync as k } from "react-dom";
4
5
  import { n as _ } from "../.chunks/emotion-styled.browser.esm.js";
5
- import { k as R, c as k } from "../.chunks/emotion-react.browser.esm.js";
6
- import { Button as T } from "../Button/Button.js";
7
- import M from "../theme.js";
8
- import { SlideIn as q, SlideOut as H, SlideInReverse as z, SlideOutReverse as J } from "../animation/Slide/Slide.js";
9
- import { g as V, a as K, s as g, c as f, u as F, b as B, P as o, d as X, l as Q, j as W, k as Z } from "../.chunks/DefaultPropsProvider.js";
10
- import { m as S } from "../.chunks/memoTheme.js";
11
- import { P as rr } from "../.chunks/Paper.js";
12
- import { u as er } from "../.chunks/index.js";
6
+ import { k as I, c as M } from "../.chunks/emotion-react.browser.esm.js";
7
+ import { Button as q } from "../Button/Button.js";
8
+ import $ from "../theme.js";
9
+ import { SlideOut as H, SlideIn as J, SlideInReverse as z, SlideOutReverse as Q } from "../animation/Slide/Slide.js";
10
+ import { g as V, a as K, s as y, c as b, u as F, b as A, P as o, d as X, l as W, j as Z, k as rr } from "../.chunks/DefaultPropsProvider.js";
11
+ import { m as P } from "../.chunks/memoTheme.js";
12
+ import { P as er } from "../.chunks/Paper.js";
13
+ import { u as tr } from "../.chunks/index.js";
13
14
  import { c as w } from "../.chunks/createSimplePaletteValueFilter.js";
14
15
  import { i as U } from "../.chunks/integerPropType.js";
15
- function tr(e) {
16
+ function or(e) {
16
17
  return V("MuiLinearProgress", e);
17
18
  }
18
19
  K("MuiLinearProgress", ["root", "colorPrimary", "colorSecondary", "determinate", "indeterminate", "buffer", "query", "dashed", "dashedColorPrimary", "dashedColorSecondary", "bar", "barColorPrimary", "barColorSecondary", "bar1Indeterminate", "bar1Determinate", "bar1Buffer", "bar2Indeterminate", "bar2Buffer"]);
19
- const O = 4, A = R`
20
+ const B = 4, L = I`
20
21
  0% {
21
22
  left: -35%;
22
23
  right: 100%;
@@ -31,9 +32,9 @@ const O = 4, A = R`
31
32
  left: 100%;
32
33
  right: -90%;
33
34
  }
34
- `, or = typeof A != "string" ? k`
35
- animation: ${A} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
36
- ` : null, N = R`
35
+ `, ar = typeof L != "string" ? M`
36
+ animation: ${L} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
37
+ ` : null, N = I`
37
38
  0% {
38
39
  left: -200%;
39
40
  right: 100%;
@@ -48,9 +49,9 @@ const O = 4, A = R`
48
49
  left: 107%;
49
50
  right: -8%;
50
51
  }
51
- `, ar = typeof N != "string" ? k`
52
+ `, nr = typeof N != "string" ? M`
52
53
  animation: ${N} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
53
- ` : null, L = R`
54
+ ` : null, R = I`
54
55
  0% {
55
56
  opacity: 1;
56
57
  background-position: 0 -23px;
@@ -65,30 +66,30 @@ const O = 4, A = R`
65
66
  opacity: 1;
66
67
  background-position: -200px -23px;
67
68
  }
68
- `, nr = typeof L != "string" ? k`
69
- animation: ${L} 3s infinite linear;
70
- ` : null, ir = (e) => {
69
+ `, ir = typeof R != "string" ? M`
70
+ animation: ${R} 3s infinite linear;
71
+ ` : null, sr = (e) => {
71
72
  const {
72
73
  classes: r,
73
74
  variant: t,
74
75
  color: a
75
- } = e, c = {
76
- root: ["root", `color${f(a)}`, t],
77
- dashed: ["dashed", `dashedColor${f(a)}`],
78
- bar1: ["bar", `barColor${f(a)}`, (t === "indeterminate" || t === "query") && "bar1Indeterminate", t === "determinate" && "bar1Determinate", t === "buffer" && "bar1Buffer"],
79
- bar2: ["bar", t !== "buffer" && `barColor${f(a)}`, t === "buffer" && `color${f(a)}`, (t === "indeterminate" || t === "query") && "bar2Indeterminate", t === "buffer" && "bar2Buffer"]
76
+ } = e, f = {
77
+ root: ["root", `color${b(a)}`, t],
78
+ dashed: ["dashed", `dashedColor${b(a)}`],
79
+ bar1: ["bar", `barColor${b(a)}`, (t === "indeterminate" || t === "query") && "bar1Indeterminate", t === "determinate" && "bar1Determinate", t === "buffer" && "bar1Buffer"],
80
+ bar2: ["bar", t !== "buffer" && `barColor${b(a)}`, t === "buffer" && `color${b(a)}`, (t === "indeterminate" || t === "query") && "bar2Indeterminate", t === "buffer" && "bar2Buffer"]
80
81
  };
81
- return X(c, tr, r);
82
- }, I = (e, r) => e.vars ? e.vars.palette.LinearProgress[`${r}Bg`] : e.palette.mode === "light" ? Q(e.palette[r].main, 0.62) : W(e.palette[r].main, 0.5), sr = g("span", {
82
+ return X(f, or, r);
83
+ }, j = (e, r) => e.vars ? e.vars.palette.LinearProgress[`${r}Bg`] : e.palette.mode === "light" ? W(e.palette[r].main, 0.62) : Z(e.palette[r].main, 0.5), lr = y("span", {
83
84
  name: "MuiLinearProgress",
84
85
  slot: "Root",
85
86
  overridesResolver: (e, r) => {
86
87
  const {
87
88
  ownerState: t
88
89
  } = e;
89
- return [r.root, r[`color${f(t.color)}`], r[t.variant]];
90
+ return [r.root, r[`color${b(t.color)}`], r[t.variant]];
90
91
  }
91
- })(S(({
92
+ })(P(({
92
93
  theme: e
93
94
  }) => ({
94
95
  position: "relative",
@@ -105,7 +106,7 @@ const O = 4, A = R`
105
106
  color: r
106
107
  },
107
108
  style: {
108
- backgroundColor: I(e, r)
109
+ backgroundColor: j(e, r)
109
110
  }
110
111
  })), {
111
112
  props: ({
@@ -138,16 +139,16 @@ const O = 4, A = R`
138
139
  transform: "rotate(180deg)"
139
140
  }
140
141
  }]
141
- }))), lr = g("span", {
142
+ }))), pr = y("span", {
142
143
  name: "MuiLinearProgress",
143
144
  slot: "Dashed",
144
145
  overridesResolver: (e, r) => {
145
146
  const {
146
147
  ownerState: t
147
148
  } = e;
148
- return [r.dashed, r[`dashedColor${f(t.color)}`]];
149
+ return [r.dashed, r[`dashedColor${b(t.color)}`]];
149
150
  }
150
- })(S(({
151
+ })(P(({
151
152
  theme: e
152
153
  }) => ({
153
154
  position: "absolute",
@@ -165,7 +166,7 @@ const O = 4, A = R`
165
166
  backgroundImage: "radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"
166
167
  }
167
168
  }, ...Object.entries(e.palette).filter(w()).map(([r]) => {
168
- const t = I(e, r);
169
+ const t = j(e, r);
169
170
  return {
170
171
  props: {
171
172
  color: r
@@ -175,19 +176,19 @@ const O = 4, A = R`
175
176
  }
176
177
  };
177
178
  })]
178
- })), nr || {
179
+ })), ir || {
179
180
  // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
180
- animation: `${L} 3s infinite linear`
181
- }), pr = g("span", {
181
+ animation: `${R} 3s infinite linear`
182
+ }), cr = y("span", {
182
183
  name: "MuiLinearProgress",
183
184
  slot: "Bar1",
184
185
  overridesResolver: (e, r) => {
185
186
  const {
186
187
  ownerState: t
187
188
  } = e;
188
- return [r.bar, r[`barColor${f(t.color)}`], (t.variant === "indeterminate" || t.variant === "query") && r.bar1Indeterminate, t.variant === "determinate" && r.bar1Determinate, t.variant === "buffer" && r.bar1Buffer];
189
+ return [r.bar, r[`barColor${b(t.color)}`], (t.variant === "indeterminate" || t.variant === "query") && r.bar1Indeterminate, t.variant === "determinate" && r.bar1Determinate, t.variant === "buffer" && r.bar1Buffer];
189
190
  }
190
- })(S(({
191
+ })(P(({
191
192
  theme: e
192
193
  }) => ({
193
194
  width: "100%",
@@ -216,7 +217,7 @@ const O = 4, A = R`
216
217
  variant: "determinate"
217
218
  },
218
219
  style: {
219
- transition: `transform .${O}s linear`
220
+ transition: `transform .${B}s linear`
220
221
  }
221
222
  }, {
222
223
  props: {
@@ -224,7 +225,7 @@ const O = 4, A = R`
224
225
  },
225
226
  style: {
226
227
  zIndex: 1,
227
- transition: `transform .${O}s linear`
228
+ transition: `transform .${B}s linear`
228
229
  }
229
230
  }, {
230
231
  props: ({
@@ -237,20 +238,20 @@ const O = 4, A = R`
237
238
  props: ({
238
239
  ownerState: r
239
240
  }) => r.variant === "indeterminate" || r.variant === "query",
240
- style: or || {
241
- animation: `${A} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`
241
+ style: ar || {
242
+ animation: `${L} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`
242
243
  }
243
244
  }]
244
- }))), cr = g("span", {
245
+ }))), dr = y("span", {
245
246
  name: "MuiLinearProgress",
246
247
  slot: "Bar2",
247
248
  overridesResolver: (e, r) => {
248
249
  const {
249
250
  ownerState: t
250
251
  } = e;
251
- return [r.bar, r[`barColor${f(t.color)}`], (t.variant === "indeterminate" || t.variant === "query") && r.bar2Indeterminate, t.variant === "buffer" && r.bar2Buffer];
252
+ return [r.bar, r[`barColor${b(t.color)}`], (t.variant === "indeterminate" || t.variant === "query") && r.bar2Indeterminate, t.variant === "buffer" && r.bar2Buffer];
252
253
  }
253
- })(S(({
254
+ })(P(({
254
255
  theme: e
255
256
  }) => ({
256
257
  width: "100%",
@@ -294,8 +295,8 @@ const O = 4, A = R`
294
295
  variant: "buffer"
295
296
  },
296
297
  style: {
297
- backgroundColor: I(e, r),
298
- transition: `transform .${O}s linear`
298
+ backgroundColor: j(e, r),
299
+ transition: `transform .${B}s linear`
299
300
  }
300
301
  })), {
301
302
  props: ({
@@ -308,58 +309,58 @@ const O = 4, A = R`
308
309
  props: ({
309
310
  ownerState: r
310
311
  }) => r.variant === "indeterminate" || r.variant === "query",
311
- style: ar || {
312
+ style: nr || {
312
313
  animation: `${N} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`
313
314
  }
314
315
  }]
315
- }))), Y = /* @__PURE__ */ $.forwardRef(function(r, t) {
316
+ }))), Y = /* @__PURE__ */ O.forwardRef(function(r, t) {
316
317
  const a = F({
317
318
  props: r,
318
319
  name: "MuiLinearProgress"
319
320
  }), {
320
- className: c,
321
- color: s = "primary",
322
- value: m,
323
- valueBuffer: y,
324
- variant: d = "indeterminate",
321
+ className: f,
322
+ color: i = "primary",
323
+ value: g,
324
+ valueBuffer: m,
325
+ variant: s = "indeterminate",
325
326
  ...v
326
- } = a, l = {
327
+ } = a, p = {
327
328
  ...a,
328
- color: s,
329
- variant: d
330
- }, p = ir(l), P = er(), u = {}, b = {
329
+ color: i,
330
+ variant: s
331
+ }, c = sr(p), S = tr(), d = {}, u = {
331
332
  bar1: {},
332
333
  bar2: {}
333
334
  };
334
- if (d === "determinate" || d === "buffer")
335
- if (m !== void 0) {
336
- u["aria-valuenow"] = Math.round(m), u["aria-valuemin"] = 0, u["aria-valuemax"] = 100;
337
- let i = m - 100;
338
- P && (i = -i), b.bar1.transform = `translateX(${i}%)`;
335
+ if (s === "determinate" || s === "buffer")
336
+ if (g !== void 0) {
337
+ d["aria-valuenow"] = Math.round(g), d["aria-valuemin"] = 0, d["aria-valuemax"] = 100;
338
+ let l = g - 100;
339
+ S && (l = -l), u.bar1.transform = `translateX(${l}%)`;
339
340
  } else process.env.NODE_ENV !== "production" && console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");
340
- if (d === "buffer")
341
- if (y !== void 0) {
342
- let i = (y || 0) - 100;
343
- P && (i = -i), b.bar2.transform = `translateX(${i}%)`;
341
+ if (s === "buffer")
342
+ if (m !== void 0) {
343
+ let l = (m || 0) - 100;
344
+ S && (l = -l), u.bar2.transform = `translateX(${l}%)`;
344
345
  } else process.env.NODE_ENV !== "production" && console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");
345
- return /* @__PURE__ */ C(sr, {
346
- className: B(p.root, c),
347
- ownerState: l,
346
+ return /* @__PURE__ */ C(lr, {
347
+ className: A(c.root, f),
348
+ ownerState: p,
348
349
  role: "progressbar",
349
- ...u,
350
+ ...d,
350
351
  ref: t,
351
352
  ...v,
352
- children: [d === "buffer" ? /* @__PURE__ */ n(lr, {
353
- className: p.dashed,
354
- ownerState: l
355
- }) : null, /* @__PURE__ */ n(pr, {
356
- className: p.bar1,
357
- ownerState: l,
358
- style: b.bar1
359
- }), d === "determinate" ? null : /* @__PURE__ */ n(cr, {
360
- className: p.bar2,
361
- ownerState: l,
362
- style: b.bar2
353
+ children: [s === "buffer" ? /* @__PURE__ */ n(pr, {
354
+ className: c.dashed,
355
+ ownerState: p
356
+ }) : null, /* @__PURE__ */ n(cr, {
357
+ className: c.bar1,
358
+ ownerState: p,
359
+ style: u.bar1
360
+ }), s === "determinate" ? null : /* @__PURE__ */ n(dr, {
361
+ className: c.bar2,
362
+ ownerState: p,
363
+ style: u.bar2
363
364
  })]
364
365
  });
365
366
  });
@@ -404,32 +405,32 @@ process.env.NODE_ENV !== "production" && (Y.propTypes = {
404
405
  */
405
406
  variant: o.oneOf(["buffer", "determinate", "indeterminate", "query"])
406
407
  });
407
- function dr(e) {
408
+ function ur(e) {
408
409
  return V("MuiMobileStepper", e);
409
410
  }
410
411
  K("MuiMobileStepper", ["root", "positionBottom", "positionTop", "positionStatic", "dots", "dot", "dotActive", "progress"]);
411
- const ur = (e) => {
412
+ const fr = (e) => {
412
413
  const {
413
414
  classes: r,
414
415
  position: t
415
416
  } = e, a = {
416
- root: ["root", `position${f(t)}`],
417
+ root: ["root", `position${b(t)}`],
417
418
  dots: ["dots"],
418
419
  dot: ["dot"],
419
420
  dotActive: ["dotActive"],
420
421
  progress: ["progress"]
421
422
  };
422
- return X(a, dr, r);
423
- }, fr = g(rr, {
423
+ return X(a, ur, r);
424
+ }, br = y(er, {
424
425
  name: "MuiMobileStepper",
425
426
  slot: "Root",
426
427
  overridesResolver: (e, r) => {
427
428
  const {
428
429
  ownerState: t
429
430
  } = e;
430
- return [r.root, r[`position${f(t.position)}`]];
431
+ return [r.root, r[`position${b(t.position)}`]];
431
432
  }
432
- })(S(({
433
+ })(P(({
433
434
  theme: e
434
435
  }) => ({
435
436
  display: "flex",
@@ -463,7 +464,7 @@ const ur = (e) => {
463
464
  bottom: 0
464
465
  }
465
466
  }]
466
- }))), br = g("div", {
467
+ }))), mr = y("div", {
467
468
  name: "MuiMobileStepper",
468
469
  slot: "Dots",
469
470
  overridesResolver: (e, r) => r.dots
@@ -477,17 +478,17 @@ const ur = (e) => {
477
478
  flexDirection: "row"
478
479
  }
479
480
  }]
480
- }), mr = g("div", {
481
+ }), vr = y("div", {
481
482
  name: "MuiMobileStepper",
482
483
  slot: "Dot",
483
- shouldForwardProp: (e) => Z(e) && e !== "dotActive",
484
+ shouldForwardProp: (e) => rr(e) && e !== "dotActive",
484
485
  overridesResolver: (e, r) => {
485
486
  const {
486
487
  dotActive: t
487
488
  } = e;
488
489
  return [r.dot, t && r.dotActive];
489
490
  }
490
- })(S(({
491
+ })(P(({
491
492
  theme: e
492
493
  }) => ({
493
494
  variants: [{
@@ -513,7 +514,7 @@ const ur = (e) => {
513
514
  backgroundColor: (e.vars || e).palette.primary.main
514
515
  }
515
516
  }]
516
- }))), vr = g(Y, {
517
+ }))), gr = y(Y, {
517
518
  name: "MuiMobileStepper",
518
519
  slot: "Progress",
519
520
  overridesResolver: (e, r) => r.progress
@@ -526,53 +527,53 @@ const ur = (e) => {
526
527
  width: "50%"
527
528
  }
528
529
  }]
529
- }), G = /* @__PURE__ */ $.forwardRef(function(r, t) {
530
+ }), G = /* @__PURE__ */ O.forwardRef(function(r, t) {
530
531
  const a = F({
531
532
  props: r,
532
533
  name: "MuiMobileStepper"
533
534
  }), {
534
- activeStep: c = 0,
535
- backButton: s,
536
- className: m,
537
- LinearProgressProps: y,
538
- nextButton: d,
535
+ activeStep: f = 0,
536
+ backButton: i,
537
+ className: g,
538
+ LinearProgressProps: m,
539
+ nextButton: s,
539
540
  position: v = "bottom",
540
- steps: l,
541
- variant: p = "dots",
542
- ...P
543
- } = a, u = {
541
+ steps: p,
542
+ variant: c = "dots",
543
+ ...S
544
+ } = a, d = {
544
545
  ...a,
545
- activeStep: c,
546
+ activeStep: f,
546
547
  position: v,
547
- variant: p
548
+ variant: c
548
549
  };
549
- let b;
550
- p === "progress" && (l === 1 ? b = 100 : b = Math.ceil(c / (l - 1) * 100));
551
- const i = ur(u);
552
- return /* @__PURE__ */ C(fr, {
550
+ let u;
551
+ c === "progress" && (p === 1 ? u = 100 : u = Math.ceil(f / (p - 1) * 100));
552
+ const l = fr(d);
553
+ return /* @__PURE__ */ C(br, {
553
554
  square: !0,
554
555
  elevation: 0,
555
- className: B(i.root, m),
556
+ className: A(l.root, g),
556
557
  ref: t,
557
- ownerState: u,
558
- ...P,
559
- children: [s, p === "text" && /* @__PURE__ */ C($.Fragment, {
560
- children: [c + 1, " / ", l]
561
- }), p === "dots" && /* @__PURE__ */ n(br, {
562
- ownerState: u,
563
- className: i.dots,
564
- children: [...new Array(l)].map((yr, x) => /* @__PURE__ */ n(mr, {
565
- className: B(i.dot, x === c && i.dotActive),
566
- ownerState: u,
567
- dotActive: x === c
558
+ ownerState: d,
559
+ ...S,
560
+ children: [i, c === "text" && /* @__PURE__ */ C(O.Fragment, {
561
+ children: [f + 1, " / ", p]
562
+ }), c === "dots" && /* @__PURE__ */ n(mr, {
563
+ ownerState: d,
564
+ className: l.dots,
565
+ children: [...new Array(p)].map((hr, x) => /* @__PURE__ */ n(vr, {
566
+ className: A(l.dot, x === f && l.dotActive),
567
+ ownerState: d,
568
+ dotActive: x === f
568
569
  }, x))
569
- }), p === "progress" && /* @__PURE__ */ n(vr, {
570
- ownerState: u,
571
- className: i.progress,
570
+ }), c === "progress" && /* @__PURE__ */ n(gr, {
571
+ ownerState: d,
572
+ className: l.progress,
572
573
  variant: "determinate",
573
- value: b,
574
- ...y
575
- }), d]
574
+ value: u,
575
+ ...m
576
+ }), s]
576
577
  });
577
578
  });
578
579
  process.env.NODE_ENV !== "production" && (G.propTypes = {
@@ -625,8 +626,8 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
625
626
  */
626
627
  variant: o.oneOf(["dots", "progress", "text"])
627
628
  });
628
- const gr = _("div")(() => ({
629
- ...k`
629
+ const yr = _("div")(() => ({
630
+ ...M`
630
631
  position: relative;
631
632
  display: flex;
632
633
  flex-direction: column;
@@ -649,58 +650,56 @@ const gr = _("div")(() => ({
649
650
  .MuiLinearProgress-root {
650
651
  padding: 9px;
651
652
  margin: 0 9px;
652
- background-color: ${M.colors.whiteGreenA};
653
- border-color: ${M.colors.green};
653
+ background-color: ${$.colors.whiteGreenA};
654
+ border-color: ${$.colors.green};
654
655
 
655
656
  .MuiLinearProgress-bar {
656
- background-color: ${M.colors.green};
657
+ background-color: ${$.colors.green};
657
658
  }
658
659
  }
659
660
  `
660
661
  })), E = _("div")(() => ({
661
- ...k`
662
+ ...M`
662
663
  position: absolute;
663
664
  top: 0;
664
665
  `
665
- })), Lr = ({
666
+ })), Ir = ({
666
667
  onNext: e,
667
668
  onBack: r,
668
669
  onFinish: t,
669
670
  children: a,
670
- ...c
671
+ ...f
671
672
  }) => {
672
- const [s, m] = D(0), [y, d] = D("forward"), v = h.toArray(a).length, l = () => {
673
- d("forward"), s === v - 1 ? t == null || t() : (m((i) => i + 1), e == null || e());
674
- }, p = () => {
675
- d("reverse"), m((i) => i - 1), r == null || r();
676
- };
677
- return /* @__PURE__ */ C(gr, { className: "jcStepContainer", children: [
678
- /* @__PURE__ */ n(() => {
679
- if (y === "forward")
680
- return s === 0 ? /* @__PURE__ */ n(q, { children: h.toArray(a)[s] ?? null }) : /* @__PURE__ */ C(j, { children: [
681
- /* @__PURE__ */ n(E, { children: /* @__PURE__ */ n(H, { children: h.toArray(a)[s - 1] ?? null }) }),
682
- /* @__PURE__ */ n(q, { children: h.toArray(a)[s] ?? null })
683
- ] });
684
- if (y === "reverse")
685
- return s === v - 1 ? /* @__PURE__ */ n(z, { children: h.toArray(a)[s] ?? null }) : /* @__PURE__ */ C(j, { children: [
686
- /* @__PURE__ */ n(E, { children: /* @__PURE__ */ n(J, { children: h.toArray(a)[s + 1] ?? null }) }),
687
- /* @__PURE__ */ n(z, { children: h.toArray(a)[s] ?? null })
688
- ] });
689
- }, {}),
673
+ const [i, g] = T(0), [m, s] = T("forward"), v = h.toArray(a).length, p = () => {
674
+ i === v - 1 ? t == null || t() : (k(() => s("none")), k(() => s("forward")), g((u) => u + 1), e == null || e());
675
+ }, c = () => {
676
+ k(() => s("none")), k(() => s("reverse")), g((u) => u - 1), r == null || r();
677
+ }, S = () => /* @__PURE__ */ n(q, { onClick: p, children: i === v - 1 ? "Finish" : "Next" }), d = () => /* @__PURE__ */ n(q, { onClick: c, children: "Back" });
678
+ return /* @__PURE__ */ C(yr, { className: "jcStepContainer", children: [
679
+ i === 0 && m === "forward" && (h.toArray(a)[i] ?? null),
680
+ i !== 0 && m === "forward" && /* @__PURE__ */ C(D, { children: [
681
+ /* @__PURE__ */ n(E, { children: /* @__PURE__ */ n(H, { children: h.toArray(a)[i - 1] ?? null }) }),
682
+ /* @__PURE__ */ n(J, { children: h.toArray(a)[i] ?? null })
683
+ ] }),
684
+ i === v - 1 && m === "reverse" && /* @__PURE__ */ n(z, { children: h.toArray(a)[i] ?? null }),
685
+ i !== v - 1 && m === "reverse" && /* @__PURE__ */ C(D, { children: [
686
+ /* @__PURE__ */ n(E, { children: /* @__PURE__ */ n(Q, { children: h.toArray(a)[i + 1] ?? null }) }),
687
+ /* @__PURE__ */ n(z, { children: h.toArray(a)[i] ?? null })
688
+ ] }),
690
689
  /* @__PURE__ */ n(
691
690
  G,
692
691
  {
693
692
  variant: "progress",
694
693
  steps: v,
695
694
  position: "static",
696
- activeStep: s,
697
- nextButton: /* @__PURE__ */ n(() => /* @__PURE__ */ n(T, { onClick: l, children: s === v - 1 ? "Finish" : "Next" }), {}),
698
- backButton: s === 0 ? /* @__PURE__ */ n("div", { style: { width: "103px" } }) : /* @__PURE__ */ n(() => /* @__PURE__ */ n(T, { onClick: p, children: "Back" }), {}),
699
- ...c
695
+ activeStep: i,
696
+ nextButton: /* @__PURE__ */ n(S, {}),
697
+ backButton: i === 0 ? /* @__PURE__ */ n("div", { style: { width: "103px" } }) : /* @__PURE__ */ n(d, {}),
698
+ ...f
700
699
  }
701
700
  )
702
701
  ] });
703
702
  };
704
703
  export {
705
- Lr as default
704
+ Ir as default
706
705
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.237",
4
+ "version": "0.0.239",
5
5
  "description": "Component library for the websites of Johnson County Iowa",
6
6
  "license": "MIT",
7
7
  "homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",