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