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