jcicl 0.0.237 → 0.0.241
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/DefaultTemplate/DefaultTemplate.d.ts +1 -0
- package/DefaultTemplate/DefaultTemplate.js +33 -23
- package/Stepper/Stepper.js +160 -161
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export declare const PageWrapper: import('@emotion/styled').StyledComponent<{
|
|
|
7
7
|
loading: boolean;
|
|
8
8
|
hasPagination: boolean;
|
|
9
9
|
loadingColor?: string;
|
|
10
|
+
hasFade?: boolean;
|
|
10
11
|
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
12
|
export declare const MainContentContainer: import('@emotion/styled').StyledComponent<{
|
|
12
13
|
theme?: import('@emotion/react').Theme;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import { useState as x } from "react";
|
|
3
|
-
import { n
|
|
4
|
-
import { c as
|
|
3
|
+
import { n } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import { c as m } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
5
|
import o from "../theme.js";
|
|
6
|
-
import { u as k, A as
|
|
7
|
-
import
|
|
8
|
-
import { Fade as
|
|
9
|
-
const
|
|
10
|
-
...
|
|
6
|
+
import { u as k, A as C } from "../.chunks/AppContainer.js";
|
|
7
|
+
import f from "../WithLoading/WithLoading.js";
|
|
8
|
+
import { Fade as p } from "../Overlays/Overlays.js";
|
|
9
|
+
const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldForwardProp: (r) => !w.includes(r) })(({ loading: r, hasPagination: e, hasFade: l, loadingColor: s = o.colors.green }) => ({
|
|
10
|
+
...m`
|
|
11
11
|
color: ${o.colors.midnight};
|
|
12
12
|
height: ${r ? "100%" : "auto"};
|
|
13
13
|
padding: 19px;
|
|
@@ -18,17 +18,17 @@ const p = ["loading", "hasPagination", "loadingColor"], S = d("div", { shouldFor
|
|
|
18
18
|
width: 100%;
|
|
19
19
|
height: 100%;
|
|
20
20
|
box-sizing: border-box;
|
|
21
|
-
padding-bottom: ${e ? "114px" : "72px"};
|
|
21
|
+
padding-bottom: ${l ? e ? "114px" : "72px" : "19px"};
|
|
22
22
|
> * div {
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.MuiCircularProgress-svg {
|
|
27
|
-
color: ${
|
|
27
|
+
color: ${s};
|
|
28
28
|
}
|
|
29
29
|
`
|
|
30
|
-
})), T =
|
|
31
|
-
...
|
|
30
|
+
})), T = n("div")(() => ({
|
|
31
|
+
...m`
|
|
32
32
|
border-radius: 8px;
|
|
33
33
|
padding: 0;
|
|
34
34
|
display: flex;
|
|
@@ -85,11 +85,11 @@ const p = ["loading", "hasPagination", "loadingColor"], S = d("div", { shouldFor
|
|
|
85
85
|
children: r,
|
|
86
86
|
loading: e = !1,
|
|
87
87
|
hasPagination: l = !1,
|
|
88
|
-
fade:
|
|
88
|
+
fade: s = !0,
|
|
89
89
|
userProfileMenuItems: h,
|
|
90
|
-
...
|
|
90
|
+
...c
|
|
91
91
|
}) => {
|
|
92
|
-
const g = localStorage.getItem("theme") || "green", [
|
|
92
|
+
const g = localStorage.getItem("theme") || "green", [a, i] = x(g), d = k(`(max-width: ${o.screenSizes.mobile})`), u = v[a], b = [
|
|
93
93
|
{
|
|
94
94
|
label: "Green Theme",
|
|
95
95
|
onClick: () => {
|
|
@@ -110,16 +110,26 @@ const p = ["loading", "hasPagination", "loadingColor"], S = d("div", { shouldFor
|
|
|
110
110
|
},
|
|
111
111
|
...h || []
|
|
112
112
|
];
|
|
113
|
-
return /* @__PURE__ */
|
|
114
|
-
|
|
113
|
+
return /* @__PURE__ */ t(
|
|
114
|
+
C,
|
|
115
115
|
{
|
|
116
|
-
...
|
|
116
|
+
...c,
|
|
117
117
|
userProfileMenuItems: b,
|
|
118
|
-
themeColors: u ?? (
|
|
119
|
-
children: /* @__PURE__ */
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
themeColors: u ?? (c == null ? void 0 : c.themeColors),
|
|
119
|
+
children: /* @__PURE__ */ t(
|
|
120
|
+
S,
|
|
121
|
+
{
|
|
122
|
+
className: "jcPageWrapper",
|
|
123
|
+
loading: e,
|
|
124
|
+
loadingColor: P[a],
|
|
125
|
+
hasPagination: l,
|
|
126
|
+
hasFade: s,
|
|
127
|
+
children: /* @__PURE__ */ y(f, { loading: e, size: d ? 114 : 201, children: [
|
|
128
|
+
s && /* @__PURE__ */ t(p, { isMobile: d, hasPagination: l, color: R[a] }),
|
|
129
|
+
/* @__PURE__ */ t(T, { children: r })
|
|
130
|
+
] })
|
|
131
|
+
}
|
|
132
|
+
)
|
|
123
133
|
}
|
|
124
134
|
);
|
|
125
135
|
};
|
package/Stepper/Stepper.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { jsxs as C, jsx as n, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import { useState as
|
|
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
|
|
6
|
-
import { Button as
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import { g as V, a as K, s as
|
|
10
|
-
import { m as
|
|
11
|
-
import { P as
|
|
12
|
-
import { u as
|
|
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
|
|
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
|
|
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
|
-
`,
|
|
35
|
-
animation: ${
|
|
36
|
-
` : null, N =
|
|
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
|
-
`,
|
|
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,
|
|
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
|
-
`,
|
|
69
|
-
animation: ${
|
|
70
|
-
` : null,
|
|
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,
|
|
76
|
-
root: ["root", `color${
|
|
77
|
-
dashed: ["dashed", `dashedColor${
|
|
78
|
-
bar1: ["bar", `barColor${
|
|
79
|
-
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"]
|
|
80
81
|
};
|
|
81
|
-
return X(
|
|
82
|
-
},
|
|
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${
|
|
90
|
+
return [r.root, r[`color${b(t.color)}`], r[t.variant]];
|
|
90
91
|
}
|
|
91
|
-
})(
|
|
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:
|
|
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
|
-
}))),
|
|
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${
|
|
149
|
+
return [r.dashed, r[`dashedColor${b(t.color)}`]];
|
|
149
150
|
}
|
|
150
|
-
})(
|
|
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 =
|
|
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
|
-
})),
|
|
179
|
+
})), ir || {
|
|
179
180
|
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
180
|
-
animation: `${
|
|
181
|
-
}),
|
|
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${
|
|
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
|
-
})(
|
|
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 .${
|
|
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 .${
|
|
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:
|
|
241
|
-
animation: `${
|
|
241
|
+
style: ar || {
|
|
242
|
+
animation: `${L} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`
|
|
242
243
|
}
|
|
243
244
|
}]
|
|
244
|
-
}))),
|
|
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${
|
|
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
|
-
})(
|
|
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:
|
|
298
|
-
transition: `transform .${
|
|
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:
|
|
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__ */
|
|
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:
|
|
321
|
-
color:
|
|
322
|
-
value:
|
|
323
|
-
valueBuffer:
|
|
324
|
-
variant:
|
|
321
|
+
className: f,
|
|
322
|
+
color: i = "primary",
|
|
323
|
+
value: g,
|
|
324
|
+
valueBuffer: m,
|
|
325
|
+
variant: s = "indeterminate",
|
|
325
326
|
...v
|
|
326
|
-
} = a,
|
|
327
|
+
} = a, p = {
|
|
327
328
|
...a,
|
|
328
|
-
color:
|
|
329
|
-
variant:
|
|
330
|
-
},
|
|
329
|
+
color: i,
|
|
330
|
+
variant: s
|
|
331
|
+
}, c = sr(p), S = tr(), d = {}, u = {
|
|
331
332
|
bar1: {},
|
|
332
333
|
bar2: {}
|
|
333
334
|
};
|
|
334
|
-
if (
|
|
335
|
-
if (
|
|
336
|
-
|
|
337
|
-
let
|
|
338
|
-
|
|
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 (
|
|
341
|
-
if (
|
|
342
|
-
let
|
|
343
|
-
|
|
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(
|
|
346
|
-
className:
|
|
347
|
-
ownerState:
|
|
346
|
+
return /* @__PURE__ */ C(lr, {
|
|
347
|
+
className: A(c.root, f),
|
|
348
|
+
ownerState: p,
|
|
348
349
|
role: "progressbar",
|
|
349
|
-
...
|
|
350
|
+
...d,
|
|
350
351
|
ref: t,
|
|
351
352
|
...v,
|
|
352
|
-
children: [
|
|
353
|
-
className:
|
|
354
|
-
ownerState:
|
|
355
|
-
}) : null, /* @__PURE__ */ n(
|
|
356
|
-
className:
|
|
357
|
-
ownerState:
|
|
358
|
-
style:
|
|
359
|
-
}),
|
|
360
|
-
className:
|
|
361
|
-
ownerState:
|
|
362
|
-
style:
|
|
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
|
|
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
|
|
412
|
+
const fr = (e) => {
|
|
412
413
|
const {
|
|
413
414
|
classes: r,
|
|
414
415
|
position: t
|
|
415
416
|
} = e, a = {
|
|
416
|
-
root: ["root", `position${
|
|
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,
|
|
423
|
-
},
|
|
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${
|
|
431
|
+
return [r.root, r[`position${b(t.position)}`]];
|
|
431
432
|
}
|
|
432
|
-
})(
|
|
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
|
-
}))),
|
|
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
|
-
}),
|
|
481
|
+
}), vr = y("div", {
|
|
481
482
|
name: "MuiMobileStepper",
|
|
482
483
|
slot: "Dot",
|
|
483
|
-
shouldForwardProp: (e) =>
|
|
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
|
-
})(
|
|
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
|
-
}))),
|
|
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__ */
|
|
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:
|
|
535
|
-
backButton:
|
|
536
|
-
className:
|
|
537
|
-
LinearProgressProps:
|
|
538
|
-
nextButton:
|
|
535
|
+
activeStep: f = 0,
|
|
536
|
+
backButton: i,
|
|
537
|
+
className: g,
|
|
538
|
+
LinearProgressProps: m,
|
|
539
|
+
nextButton: s,
|
|
539
540
|
position: v = "bottom",
|
|
540
|
-
steps:
|
|
541
|
-
variant:
|
|
542
|
-
...
|
|
543
|
-
} = a,
|
|
541
|
+
steps: p,
|
|
542
|
+
variant: c = "dots",
|
|
543
|
+
...S
|
|
544
|
+
} = a, d = {
|
|
544
545
|
...a,
|
|
545
|
-
activeStep:
|
|
546
|
+
activeStep: f,
|
|
546
547
|
position: v,
|
|
547
|
-
variant:
|
|
548
|
+
variant: c
|
|
548
549
|
};
|
|
549
|
-
let
|
|
550
|
-
|
|
551
|
-
const
|
|
552
|
-
return /* @__PURE__ */ C(
|
|
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:
|
|
556
|
+
className: A(l.root, g),
|
|
556
557
|
ref: t,
|
|
557
|
-
ownerState:
|
|
558
|
-
...
|
|
559
|
-
children: [
|
|
560
|
-
children: [
|
|
561
|
-
}),
|
|
562
|
-
ownerState:
|
|
563
|
-
className:
|
|
564
|
-
children: [...new Array(
|
|
565
|
-
className:
|
|
566
|
-
ownerState:
|
|
567
|
-
dotActive: x ===
|
|
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
|
-
}),
|
|
570
|
-
ownerState:
|
|
571
|
-
className:
|
|
570
|
+
}), c === "progress" && /* @__PURE__ */ n(gr, {
|
|
571
|
+
ownerState: d,
|
|
572
|
+
className: l.progress,
|
|
572
573
|
variant: "determinate",
|
|
573
|
-
value:
|
|
574
|
-
...
|
|
575
|
-
}),
|
|
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
|
|
629
|
-
...
|
|
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: ${
|
|
653
|
-
border-color: ${
|
|
653
|
+
background-color: ${$.colors.whiteGreenA};
|
|
654
|
+
border-color: ${$.colors.green};
|
|
654
655
|
|
|
655
656
|
.MuiLinearProgress-bar {
|
|
656
|
-
background-color: ${
|
|
657
|
+
background-color: ${$.colors.green};
|
|
657
658
|
}
|
|
658
659
|
}
|
|
659
660
|
`
|
|
660
661
|
})), E = _("div")(() => ({
|
|
661
|
-
...
|
|
662
|
+
...M`
|
|
662
663
|
position: absolute;
|
|
663
664
|
top: 0;
|
|
664
665
|
`
|
|
665
|
-
})),
|
|
666
|
+
})), Ir = ({
|
|
666
667
|
onNext: e,
|
|
667
668
|
onBack: r,
|
|
668
669
|
onFinish: t,
|
|
669
670
|
children: a,
|
|
670
|
-
...
|
|
671
|
+
...f
|
|
671
672
|
}) => {
|
|
672
|
-
const [
|
|
673
|
-
|
|
674
|
-
},
|
|
675
|
-
|
|
676
|
-
};
|
|
677
|
-
return /* @__PURE__ */ C(
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
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:
|
|
697
|
-
nextButton: /* @__PURE__ */ n(
|
|
698
|
-
backButton:
|
|
699
|
-
...
|
|
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
|
-
|
|
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.
|
|
4
|
+
"version": "0.0.241",
|
|
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",
|