jcicl 0.0.235 → 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.
- package/Stepper/Stepper.js +185 -168
- package/animation/Slide/Slide.d.ts +16 -0
- package/animation/Slide/Slide.js +85 -0
- package/animation/Slide/index.d.ts +1 -0
- package/animation/Slide/index.js +7 -0
- package/package.json +1 -1
package/Stepper/Stepper.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { useState as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import { P as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
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";
|
|
5
|
+
import { n as _ } from "../.chunks/emotion-styled.browser.esm.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";
|
|
14
|
+
import { c as w } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
15
|
+
import { i as U } from "../.chunks/integerPropType.js";
|
|
16
|
+
function or(e) {
|
|
17
|
+
return V("MuiLinearProgress", e);
|
|
16
18
|
}
|
|
17
|
-
|
|
18
|
-
const B = 4,
|
|
19
|
+
K("MuiLinearProgress", ["root", "colorPrimary", "colorSecondary", "determinate", "indeterminate", "buffer", "query", "dashed", "dashedColorPrimary", "dashedColorSecondary", "bar", "barColorPrimary", "barColorSecondary", "bar1Indeterminate", "bar1Determinate", "bar1Buffer", "bar2Indeterminate", "bar2Buffer"]);
|
|
20
|
+
const B = 4, L = I`
|
|
19
21
|
0% {
|
|
20
22
|
left: -35%;
|
|
21
23
|
right: 100%;
|
|
@@ -30,9 +32,9 @@ const B = 4, O = R`
|
|
|
30
32
|
left: 100%;
|
|
31
33
|
right: -90%;
|
|
32
34
|
}
|
|
33
|
-
`,
|
|
34
|
-
animation: ${
|
|
35
|
-
` : null,
|
|
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`
|
|
36
38
|
0% {
|
|
37
39
|
left: -200%;
|
|
38
40
|
right: 100%;
|
|
@@ -47,9 +49,9 @@ const B = 4, O = R`
|
|
|
47
49
|
left: 107%;
|
|
48
50
|
right: -8%;
|
|
49
51
|
}
|
|
50
|
-
`,
|
|
51
|
-
animation: ${
|
|
52
|
-
` : null,
|
|
52
|
+
`, nr = typeof N != "string" ? M`
|
|
53
|
+
animation: ${N} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
54
|
+
` : null, R = I`
|
|
53
55
|
0% {
|
|
54
56
|
opacity: 1;
|
|
55
57
|
background-position: 0 -23px;
|
|
@@ -64,30 +66,30 @@ const B = 4, O = R`
|
|
|
64
66
|
opacity: 1;
|
|
65
67
|
background-position: -200px -23px;
|
|
66
68
|
}
|
|
67
|
-
`,
|
|
68
|
-
animation: ${
|
|
69
|
-
` : null,
|
|
69
|
+
`, ir = typeof R != "string" ? M`
|
|
70
|
+
animation: ${R} 3s infinite linear;
|
|
71
|
+
` : null, sr = (e) => {
|
|
70
72
|
const {
|
|
71
73
|
classes: r,
|
|
72
74
|
variant: t,
|
|
73
75
|
color: a
|
|
74
|
-
} = e,
|
|
75
|
-
root: ["root", `color${
|
|
76
|
-
dashed: ["dashed", `dashedColor${
|
|
77
|
-
bar1: ["bar", `barColor${
|
|
78
|
-
bar2: ["bar", t !== "buffer" && `barColor${
|
|
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"]
|
|
79
81
|
};
|
|
80
|
-
return
|
|
81
|
-
},
|
|
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", {
|
|
82
84
|
name: "MuiLinearProgress",
|
|
83
85
|
slot: "Root",
|
|
84
86
|
overridesResolver: (e, r) => {
|
|
85
87
|
const {
|
|
86
88
|
ownerState: t
|
|
87
89
|
} = e;
|
|
88
|
-
return [r.root, r[`color${
|
|
90
|
+
return [r.root, r[`color${b(t.color)}`], r[t.variant]];
|
|
89
91
|
}
|
|
90
|
-
})(
|
|
92
|
+
})(P(({
|
|
91
93
|
theme: e
|
|
92
94
|
}) => ({
|
|
93
95
|
position: "relative",
|
|
@@ -99,12 +101,12 @@ const B = 4, O = R`
|
|
|
99
101
|
"@media print": {
|
|
100
102
|
colorAdjust: "exact"
|
|
101
103
|
},
|
|
102
|
-
variants: [...Object.entries(e.palette).filter(
|
|
104
|
+
variants: [...Object.entries(e.palette).filter(w()).map(([r]) => ({
|
|
103
105
|
props: {
|
|
104
106
|
color: r
|
|
105
107
|
},
|
|
106
108
|
style: {
|
|
107
|
-
backgroundColor:
|
|
109
|
+
backgroundColor: j(e, r)
|
|
108
110
|
}
|
|
109
111
|
})), {
|
|
110
112
|
props: ({
|
|
@@ -137,16 +139,16 @@ const B = 4, O = R`
|
|
|
137
139
|
transform: "rotate(180deg)"
|
|
138
140
|
}
|
|
139
141
|
}]
|
|
140
|
-
}))),
|
|
142
|
+
}))), pr = y("span", {
|
|
141
143
|
name: "MuiLinearProgress",
|
|
142
144
|
slot: "Dashed",
|
|
143
145
|
overridesResolver: (e, r) => {
|
|
144
146
|
const {
|
|
145
147
|
ownerState: t
|
|
146
148
|
} = e;
|
|
147
|
-
return [r.dashed, r[`dashedColor${
|
|
149
|
+
return [r.dashed, r[`dashedColor${b(t.color)}`]];
|
|
148
150
|
}
|
|
149
|
-
})(
|
|
151
|
+
})(P(({
|
|
150
152
|
theme: e
|
|
151
153
|
}) => ({
|
|
152
154
|
position: "absolute",
|
|
@@ -163,8 +165,8 @@ const B = 4, O = R`
|
|
|
163
165
|
opacity: 0.3,
|
|
164
166
|
backgroundImage: "radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"
|
|
165
167
|
}
|
|
166
|
-
}, ...Object.entries(e.palette).filter(
|
|
167
|
-
const t =
|
|
168
|
+
}, ...Object.entries(e.palette).filter(w()).map(([r]) => {
|
|
169
|
+
const t = j(e, r);
|
|
168
170
|
return {
|
|
169
171
|
props: {
|
|
170
172
|
color: r
|
|
@@ -174,19 +176,19 @@ const B = 4, O = R`
|
|
|
174
176
|
}
|
|
175
177
|
};
|
|
176
178
|
})]
|
|
177
|
-
})),
|
|
179
|
+
})), ir || {
|
|
178
180
|
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
179
|
-
animation: `${
|
|
180
|
-
}),
|
|
181
|
+
animation: `${R} 3s infinite linear`
|
|
182
|
+
}), cr = y("span", {
|
|
181
183
|
name: "MuiLinearProgress",
|
|
182
184
|
slot: "Bar1",
|
|
183
185
|
overridesResolver: (e, r) => {
|
|
184
186
|
const {
|
|
185
187
|
ownerState: t
|
|
186
188
|
} = e;
|
|
187
|
-
return [r.bar, r[`barColor${
|
|
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];
|
|
188
190
|
}
|
|
189
|
-
})(
|
|
191
|
+
})(P(({
|
|
190
192
|
theme: e
|
|
191
193
|
}) => ({
|
|
192
194
|
width: "100%",
|
|
@@ -203,7 +205,7 @@ const B = 4, O = R`
|
|
|
203
205
|
style: {
|
|
204
206
|
backgroundColor: "currentColor"
|
|
205
207
|
}
|
|
206
|
-
}, ...Object.entries(e.palette).filter(
|
|
208
|
+
}, ...Object.entries(e.palette).filter(w()).map(([r]) => ({
|
|
207
209
|
props: {
|
|
208
210
|
color: r
|
|
209
211
|
},
|
|
@@ -236,20 +238,20 @@ const B = 4, O = R`
|
|
|
236
238
|
props: ({
|
|
237
239
|
ownerState: r
|
|
238
240
|
}) => r.variant === "indeterminate" || r.variant === "query",
|
|
239
|
-
style:
|
|
240
|
-
animation: `${
|
|
241
|
+
style: ar || {
|
|
242
|
+
animation: `${L} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`
|
|
241
243
|
}
|
|
242
244
|
}]
|
|
243
|
-
}))),
|
|
245
|
+
}))), dr = y("span", {
|
|
244
246
|
name: "MuiLinearProgress",
|
|
245
247
|
slot: "Bar2",
|
|
246
248
|
overridesResolver: (e, r) => {
|
|
247
249
|
const {
|
|
248
250
|
ownerState: t
|
|
249
251
|
} = e;
|
|
250
|
-
return [r.bar, r[`barColor${
|
|
252
|
+
return [r.bar, r[`barColor${b(t.color)}`], (t.variant === "indeterminate" || t.variant === "query") && r.bar2Indeterminate, t.variant === "buffer" && r.bar2Buffer];
|
|
251
253
|
}
|
|
252
|
-
})(
|
|
254
|
+
})(P(({
|
|
253
255
|
theme: e
|
|
254
256
|
}) => ({
|
|
255
257
|
width: "100%",
|
|
@@ -259,7 +261,7 @@ const B = 4, O = R`
|
|
|
259
261
|
top: 0,
|
|
260
262
|
transition: "transform 0.2s linear",
|
|
261
263
|
transformOrigin: "left",
|
|
262
|
-
variants: [...Object.entries(e.palette).filter(
|
|
264
|
+
variants: [...Object.entries(e.palette).filter(w()).map(([r]) => ({
|
|
263
265
|
props: {
|
|
264
266
|
color: r
|
|
265
267
|
},
|
|
@@ -287,13 +289,13 @@ const B = 4, O = R`
|
|
|
287
289
|
style: {
|
|
288
290
|
opacity: 0.3
|
|
289
291
|
}
|
|
290
|
-
}, ...Object.entries(e.palette).filter(
|
|
292
|
+
}, ...Object.entries(e.palette).filter(w()).map(([r]) => ({
|
|
291
293
|
props: {
|
|
292
294
|
color: r,
|
|
293
295
|
variant: "buffer"
|
|
294
296
|
},
|
|
295
297
|
style: {
|
|
296
|
-
backgroundColor:
|
|
298
|
+
backgroundColor: j(e, r),
|
|
297
299
|
transition: `transform .${B}s linear`
|
|
298
300
|
}
|
|
299
301
|
})), {
|
|
@@ -307,62 +309,62 @@ const B = 4, O = R`
|
|
|
307
309
|
props: ({
|
|
308
310
|
ownerState: r
|
|
309
311
|
}) => r.variant === "indeterminate" || r.variant === "query",
|
|
310
|
-
style:
|
|
311
|
-
animation: `${
|
|
312
|
+
style: nr || {
|
|
313
|
+
animation: `${N} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`
|
|
312
314
|
}
|
|
313
315
|
}]
|
|
314
|
-
}))),
|
|
315
|
-
const a =
|
|
316
|
+
}))), Y = /* @__PURE__ */ O.forwardRef(function(r, t) {
|
|
317
|
+
const a = F({
|
|
316
318
|
props: r,
|
|
317
319
|
name: "MuiLinearProgress"
|
|
318
320
|
}), {
|
|
319
|
-
className:
|
|
320
|
-
color:
|
|
321
|
-
value:
|
|
321
|
+
className: f,
|
|
322
|
+
color: i = "primary",
|
|
323
|
+
value: g,
|
|
322
324
|
valueBuffer: m,
|
|
323
|
-
variant:
|
|
324
|
-
...
|
|
325
|
-
} = a,
|
|
325
|
+
variant: s = "indeterminate",
|
|
326
|
+
...v
|
|
327
|
+
} = a, p = {
|
|
326
328
|
...a,
|
|
327
|
-
color:
|
|
328
|
-
variant:
|
|
329
|
-
},
|
|
329
|
+
color: i,
|
|
330
|
+
variant: s
|
|
331
|
+
}, c = sr(p), S = tr(), d = {}, u = {
|
|
330
332
|
bar1: {},
|
|
331
333
|
bar2: {}
|
|
332
334
|
};
|
|
333
|
-
if (
|
|
334
|
-
if (
|
|
335
|
-
|
|
336
|
-
let
|
|
337
|
-
|
|
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}%)`;
|
|
338
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 .");
|
|
339
|
-
if (
|
|
341
|
+
if (s === "buffer")
|
|
340
342
|
if (m !== void 0) {
|
|
341
|
-
let
|
|
342
|
-
|
|
343
|
+
let l = (m || 0) - 100;
|
|
344
|
+
S && (l = -l), u.bar2.transform = `translateX(${l}%)`;
|
|
343
345
|
} else process.env.NODE_ENV !== "production" && console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");
|
|
344
|
-
return /* @__PURE__ */
|
|
345
|
-
className:
|
|
346
|
-
ownerState:
|
|
346
|
+
return /* @__PURE__ */ C(lr, {
|
|
347
|
+
className: A(c.root, f),
|
|
348
|
+
ownerState: p,
|
|
347
349
|
role: "progressbar",
|
|
348
|
-
...
|
|
350
|
+
...d,
|
|
349
351
|
ref: t,
|
|
350
|
-
...
|
|
351
|
-
children: [
|
|
352
|
-
className:
|
|
353
|
-
ownerState:
|
|
354
|
-
}) : null, /* @__PURE__ */
|
|
355
|
-
className:
|
|
356
|
-
ownerState:
|
|
357
|
-
style:
|
|
358
|
-
}),
|
|
359
|
-
className:
|
|
360
|
-
ownerState:
|
|
361
|
-
style:
|
|
352
|
+
...v,
|
|
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
|
|
362
364
|
})]
|
|
363
365
|
});
|
|
364
366
|
});
|
|
365
|
-
process.env.NODE_ENV !== "production" && (
|
|
367
|
+
process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
366
368
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
367
369
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
368
370
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -403,32 +405,32 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
403
405
|
*/
|
|
404
406
|
variant: o.oneOf(["buffer", "determinate", "indeterminate", "query"])
|
|
405
407
|
});
|
|
406
|
-
function
|
|
407
|
-
return
|
|
408
|
+
function ur(e) {
|
|
409
|
+
return V("MuiMobileStepper", e);
|
|
408
410
|
}
|
|
409
|
-
|
|
410
|
-
const
|
|
411
|
+
K("MuiMobileStepper", ["root", "positionBottom", "positionTop", "positionStatic", "dots", "dot", "dotActive", "progress"]);
|
|
412
|
+
const fr = (e) => {
|
|
411
413
|
const {
|
|
412
414
|
classes: r,
|
|
413
415
|
position: t
|
|
414
416
|
} = e, a = {
|
|
415
|
-
root: ["root", `position${
|
|
417
|
+
root: ["root", `position${b(t)}`],
|
|
416
418
|
dots: ["dots"],
|
|
417
419
|
dot: ["dot"],
|
|
418
420
|
dotActive: ["dotActive"],
|
|
419
421
|
progress: ["progress"]
|
|
420
422
|
};
|
|
421
|
-
return
|
|
422
|
-
},
|
|
423
|
+
return X(a, ur, r);
|
|
424
|
+
}, br = y(er, {
|
|
423
425
|
name: "MuiMobileStepper",
|
|
424
426
|
slot: "Root",
|
|
425
427
|
overridesResolver: (e, r) => {
|
|
426
428
|
const {
|
|
427
429
|
ownerState: t
|
|
428
430
|
} = e;
|
|
429
|
-
return [r.root, r[`position${
|
|
431
|
+
return [r.root, r[`position${b(t.position)}`]];
|
|
430
432
|
}
|
|
431
|
-
})(
|
|
433
|
+
})(P(({
|
|
432
434
|
theme: e
|
|
433
435
|
}) => ({
|
|
434
436
|
display: "flex",
|
|
@@ -462,7 +464,7 @@ const ir = (e) => {
|
|
|
462
464
|
bottom: 0
|
|
463
465
|
}
|
|
464
466
|
}]
|
|
465
|
-
}))),
|
|
467
|
+
}))), mr = y("div", {
|
|
466
468
|
name: "MuiMobileStepper",
|
|
467
469
|
slot: "Dots",
|
|
468
470
|
overridesResolver: (e, r) => r.dots
|
|
@@ -476,17 +478,17 @@ const ir = (e) => {
|
|
|
476
478
|
flexDirection: "row"
|
|
477
479
|
}
|
|
478
480
|
}]
|
|
479
|
-
}),
|
|
481
|
+
}), vr = y("div", {
|
|
480
482
|
name: "MuiMobileStepper",
|
|
481
483
|
slot: "Dot",
|
|
482
|
-
shouldForwardProp: (e) =>
|
|
484
|
+
shouldForwardProp: (e) => rr(e) && e !== "dotActive",
|
|
483
485
|
overridesResolver: (e, r) => {
|
|
484
486
|
const {
|
|
485
487
|
dotActive: t
|
|
486
488
|
} = e;
|
|
487
489
|
return [r.dot, t && r.dotActive];
|
|
488
490
|
}
|
|
489
|
-
})(
|
|
491
|
+
})(P(({
|
|
490
492
|
theme: e
|
|
491
493
|
}) => ({
|
|
492
494
|
variants: [{
|
|
@@ -512,7 +514,7 @@ const ir = (e) => {
|
|
|
512
514
|
backgroundColor: (e.vars || e).palette.primary.main
|
|
513
515
|
}
|
|
514
516
|
}]
|
|
515
|
-
}))),
|
|
517
|
+
}))), gr = y(Y, {
|
|
516
518
|
name: "MuiMobileStepper",
|
|
517
519
|
slot: "Progress",
|
|
518
520
|
overridesResolver: (e, r) => r.progress
|
|
@@ -525,56 +527,56 @@ const ir = (e) => {
|
|
|
525
527
|
width: "50%"
|
|
526
528
|
}
|
|
527
529
|
}]
|
|
528
|
-
}),
|
|
529
|
-
const a =
|
|
530
|
+
}), G = /* @__PURE__ */ O.forwardRef(function(r, t) {
|
|
531
|
+
const a = F({
|
|
530
532
|
props: r,
|
|
531
533
|
name: "MuiMobileStepper"
|
|
532
534
|
}), {
|
|
533
|
-
activeStep:
|
|
534
|
-
backButton:
|
|
535
|
-
className:
|
|
535
|
+
activeStep: f = 0,
|
|
536
|
+
backButton: i,
|
|
537
|
+
className: g,
|
|
536
538
|
LinearProgressProps: m,
|
|
537
|
-
nextButton:
|
|
538
|
-
position:
|
|
539
|
-
steps:
|
|
540
|
-
variant:
|
|
541
|
-
...
|
|
542
|
-
} = a,
|
|
539
|
+
nextButton: s,
|
|
540
|
+
position: v = "bottom",
|
|
541
|
+
steps: p,
|
|
542
|
+
variant: c = "dots",
|
|
543
|
+
...S
|
|
544
|
+
} = a, d = {
|
|
543
545
|
...a,
|
|
544
|
-
activeStep:
|
|
545
|
-
position:
|
|
546
|
-
variant:
|
|
546
|
+
activeStep: f,
|
|
547
|
+
position: v,
|
|
548
|
+
variant: c
|
|
547
549
|
};
|
|
548
|
-
let
|
|
549
|
-
|
|
550
|
-
const
|
|
551
|
-
return /* @__PURE__ */
|
|
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, {
|
|
552
554
|
square: !0,
|
|
553
555
|
elevation: 0,
|
|
554
|
-
className:
|
|
556
|
+
className: A(l.root, g),
|
|
555
557
|
ref: t,
|
|
556
|
-
ownerState:
|
|
557
|
-
...
|
|
558
|
-
children: [
|
|
559
|
-
children: [
|
|
560
|
-
}),
|
|
561
|
-
ownerState:
|
|
562
|
-
className:
|
|
563
|
-
children: [...new Array(
|
|
564
|
-
className:
|
|
565
|
-
ownerState:
|
|
566
|
-
dotActive:
|
|
567
|
-
},
|
|
568
|
-
}),
|
|
569
|
-
ownerState:
|
|
570
|
-
className:
|
|
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
|
|
569
|
+
}, x))
|
|
570
|
+
}), c === "progress" && /* @__PURE__ */ n(gr, {
|
|
571
|
+
ownerState: d,
|
|
572
|
+
className: l.progress,
|
|
571
573
|
variant: "determinate",
|
|
572
|
-
value:
|
|
574
|
+
value: u,
|
|
573
575
|
...m
|
|
574
|
-
}),
|
|
576
|
+
}), s]
|
|
575
577
|
});
|
|
576
578
|
});
|
|
577
|
-
process.env.NODE_ENV !== "production" && (
|
|
579
|
+
process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
578
580
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
579
581
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
580
582
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -584,7 +586,7 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
584
586
|
* Defines which dot is highlighted when the variant is 'dots'.
|
|
585
587
|
* @default 0
|
|
586
588
|
*/
|
|
587
|
-
activeStep:
|
|
589
|
+
activeStep: U,
|
|
588
590
|
/**
|
|
589
591
|
* A back button element. For instance, it can be a `Button` or an `IconButton`.
|
|
590
592
|
*/
|
|
@@ -613,7 +615,7 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
613
615
|
/**
|
|
614
616
|
* The total steps.
|
|
615
617
|
*/
|
|
616
|
-
steps:
|
|
618
|
+
steps: U.isRequired,
|
|
617
619
|
/**
|
|
618
620
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
619
621
|
*/
|
|
@@ -624,7 +626,7 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
624
626
|
*/
|
|
625
627
|
variant: o.oneOf(["dots", "progress", "text"])
|
|
626
628
|
});
|
|
627
|
-
const
|
|
629
|
+
const yr = _("div")(() => ({
|
|
628
630
|
...M`
|
|
629
631
|
position: relative;
|
|
630
632
|
display: flex;
|
|
@@ -636,6 +638,7 @@ const dr = K("div")(() => ({
|
|
|
636
638
|
padding: 0;
|
|
637
639
|
margin: 0;
|
|
638
640
|
background-color: transparent;
|
|
641
|
+
overflow: hidden;
|
|
639
642
|
|
|
640
643
|
.MuiPaper-root {
|
|
641
644
|
width: 100%;
|
|
@@ -647,42 +650,56 @@ const dr = K("div")(() => ({
|
|
|
647
650
|
.MuiLinearProgress-root {
|
|
648
651
|
padding: 9px;
|
|
649
652
|
margin: 0 9px;
|
|
650
|
-
background-color: ${
|
|
651
|
-
border-color: ${
|
|
653
|
+
background-color: ${$.colors.whiteGreenA};
|
|
654
|
+
border-color: ${$.colors.green};
|
|
652
655
|
|
|
653
656
|
.MuiLinearProgress-bar {
|
|
654
|
-
background-color: ${
|
|
657
|
+
background-color: ${$.colors.green};
|
|
655
658
|
}
|
|
656
659
|
}
|
|
657
660
|
`
|
|
658
|
-
})),
|
|
661
|
+
})), E = _("div")(() => ({
|
|
662
|
+
...M`
|
|
663
|
+
position: absolute;
|
|
664
|
+
top: 0;
|
|
665
|
+
`
|
|
666
|
+
})), Ir = ({
|
|
659
667
|
onNext: e,
|
|
660
668
|
onBack: r,
|
|
661
669
|
onFinish: t,
|
|
662
670
|
children: a,
|
|
663
|
-
...
|
|
671
|
+
...f
|
|
664
672
|
}) => {
|
|
665
|
-
const [
|
|
666
|
-
|
|
667
|
-
},
|
|
668
|
-
|
|
669
|
-
},
|
|
670
|
-
return /* @__PURE__ */
|
|
671
|
-
|
|
672
|
-
/* @__PURE__ */
|
|
673
|
-
|
|
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
|
+
] }),
|
|
689
|
+
/* @__PURE__ */ n(
|
|
690
|
+
G,
|
|
674
691
|
{
|
|
675
692
|
variant: "progress",
|
|
676
|
-
steps:
|
|
693
|
+
steps: v,
|
|
677
694
|
position: "static",
|
|
678
|
-
activeStep:
|
|
679
|
-
nextButton: /* @__PURE__ */
|
|
680
|
-
backButton:
|
|
681
|
-
...
|
|
695
|
+
activeStep: i,
|
|
696
|
+
nextButton: /* @__PURE__ */ n(S, {}),
|
|
697
|
+
backButton: i === 0 ? /* @__PURE__ */ n("div", { style: { width: "103px" } }) : /* @__PURE__ */ n(d, {}),
|
|
698
|
+
...f
|
|
682
699
|
}
|
|
683
700
|
)
|
|
684
701
|
] });
|
|
685
702
|
};
|
|
686
703
|
export {
|
|
687
|
-
|
|
704
|
+
Ir as default
|
|
688
705
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const SlideIn: import('@emotion/styled').StyledComponent<{
|
|
2
|
+
theme?: import('@emotion/react').Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const SlideInReverse: import('@emotion/styled').StyledComponent<{
|
|
6
|
+
theme?: import('@emotion/react').Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const SlideOut: import('@emotion/styled').StyledComponent<{
|
|
10
|
+
theme?: import('@emotion/react').Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
+
export declare const SlideOutReverse: import('@emotion/styled').StyledComponent<{
|
|
14
|
+
theme?: import('@emotion/react').Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { n as t } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
2
|
+
import { c as e } from "../../.chunks/emotion-react.browser.esm.js";
|
|
3
|
+
const r = 447, a = e`
|
|
4
|
+
height: 100%;
|
|
5
|
+
width: 100%;
|
|
6
|
+
animation-fill-mode: forwards !important;
|
|
7
|
+
`, o = t("div")({
|
|
8
|
+
...e`
|
|
9
|
+
${a};
|
|
10
|
+
@keyframes slidein {
|
|
11
|
+
0% {
|
|
12
|
+
transform: translateX(100%);
|
|
13
|
+
opacity: 0;
|
|
14
|
+
}
|
|
15
|
+
100% {
|
|
16
|
+
transform: translateX(0);
|
|
17
|
+
opacity: 1;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
22
|
+
animation: slidein ${r}ms ease-in-out;
|
|
23
|
+
}
|
|
24
|
+
`
|
|
25
|
+
}), s = t("div")({
|
|
26
|
+
...e`
|
|
27
|
+
${a};
|
|
28
|
+
@keyframes slideinrev {
|
|
29
|
+
0% {
|
|
30
|
+
transform: translateX(-100%);
|
|
31
|
+
opacity: 0;
|
|
32
|
+
}
|
|
33
|
+
100% {
|
|
34
|
+
transform: translateX(0);
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
40
|
+
animation: slideinrev ${r}ms ease-in-out;
|
|
41
|
+
}
|
|
42
|
+
`
|
|
43
|
+
}), m = t("div")({
|
|
44
|
+
...e`
|
|
45
|
+
${a};
|
|
46
|
+
@keyframes slideout {
|
|
47
|
+
0% {
|
|
48
|
+
transform: translateX(0);
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}
|
|
51
|
+
100% {
|
|
52
|
+
transform: translateX(-100%);
|
|
53
|
+
opacity: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
58
|
+
animation: slideout ${r}ms ease-in-out;
|
|
59
|
+
}
|
|
60
|
+
`
|
|
61
|
+
}), d = t("div")({
|
|
62
|
+
...e`
|
|
63
|
+
${a};
|
|
64
|
+
@keyframes slideoutrev {
|
|
65
|
+
0% {
|
|
66
|
+
transform: translateX(0);
|
|
67
|
+
opacity: 1;
|
|
68
|
+
}
|
|
69
|
+
100% {
|
|
70
|
+
transform: translateX(100%);
|
|
71
|
+
opacity: 0;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
76
|
+
animation: slideoutrev ${r}ms ease-in-out;
|
|
77
|
+
}
|
|
78
|
+
`
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
o as SlideIn,
|
|
82
|
+
s as SlideInReverse,
|
|
83
|
+
m as SlideOut,
|
|
84
|
+
d as SlideOutReverse
|
|
85
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SlideIn, SlideInReverse, SlideOut, SlideOutReverse } from './Slide.tsx';
|
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.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",
|