@fangzsx/component-library 0.0.20 → 0.0.22
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/dist/{ButtonBase-DxZEqM87.js → ButtonBase-DycJOmlJ.js} +7 -6
- package/dist/{useForkRef-gLJikozA.js → DefaultPropsProvider-DVX_ssOt.js} +101 -125
- package/dist/{FormLabel-DLyFlUyL.js → FormLabel-D4ON51Wt.js} +1 -1
- package/dist/{Paper-DZg6u5tT.js → Paper-oafkOzNM.js} +1 -1
- package/dist/{SwitchBase-BPRcMkqu.js → SwitchBase-V2UoemN5.js} +3 -3
- package/dist/{Typography-DMROEdKW.js → Typography-CTrRb9FL.js} +2 -2
- package/dist/components/AppBarPublic/index.js +5 -5
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Checkbox/index.js +5 -5
- package/dist/components/Dialog/index.d.ts +18 -0
- package/dist/components/Dialog/index.js +67 -0
- package/dist/components/MediaCardWithAction/index.js +4 -4
- package/dist/components/RadioButtonGroup/index.js +12 -11
- package/dist/components/Stepper/index.d.ts +2 -5
- package/dist/components/Stepper/index.js +150 -174
- package/dist/components/TextFieldInput/index.js +32 -31
- package/dist/{createSvgIcon-ChKzptBc.js → createSvgIcon-C0YrvByi.js} +1 -1
- package/dist/{index-B08hLYdM.js → index-BPIwhwks.js} +2 -2
- package/dist/{index-1CH5DDiw.js → index-Cx-D0vTo.js} +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +15 -13
- package/dist/{mergeSlotProps-CADAqXOb.js → mergeSlotProps-S3NX_8iG.js} +1 -1
- package/dist/useForkRef-9kN4DArm.js +27 -0
- package/dist/{useSlot-jPRhj-MO.js → useSlot-DKccmcQE.js} +13 -12
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as d, jsxs as x } from "react/jsx-runtime";
|
|
2
|
-
import { B as A } from "../../index-
|
|
2
|
+
import { B as A } from "../../index-BPIwhwks.js";
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import { g as m, a as f, P as e } from "../../generateUtilityClasses-BCID9NF1.js";
|
|
5
|
-
import { u as C, s as g, c as y, a as b } from "../../
|
|
6
|
-
import { P as U } from "../../Paper-
|
|
5
|
+
import { u as C, s as g, c as y, a as b } from "../../DefaultPropsProvider-DVX_ssOt.js";
|
|
6
|
+
import { P as U } from "../../Paper-oafkOzNM.js";
|
|
7
7
|
import { a as N } from "../../useTimeout-DmOXPFt0.js";
|
|
8
|
-
import { T as v } from "../../Typography-
|
|
8
|
+
import { T as v } from "../../Typography-CTrRb9FL.js";
|
|
9
9
|
function I(o) {
|
|
10
10
|
return m("MuiCard", o);
|
|
11
11
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as l, jsxs as I } from "react/jsx-runtime";
|
|
2
2
|
import * as u from "react";
|
|
3
3
|
import { useState as Z } from "react";
|
|
4
|
-
import { f as X, c as lo, F as io, a as co, b as po } from "../../FormLabel-
|
|
4
|
+
import { f as X, c as lo, F as io, a as co, b as po } from "../../FormLabel-D4ON51Wt.js";
|
|
5
5
|
import { a as $, g as B, c as M, P as o } from "../../generateUtilityClasses-BCID9NF1.js";
|
|
6
|
-
import { u as _, c as G, s as N, a as L, m as V, r as Y
|
|
7
|
-
import { a as A, u as
|
|
6
|
+
import { u as _, c as G, s as N, a as L, m as V, r as Y } from "../../DefaultPropsProvider-DVX_ssOt.js";
|
|
7
|
+
import { a as A, u as uo } from "../../useFormControl-BGLuGvqS.js";
|
|
8
|
+
import { u as fo } from "../../useForkRef-9kN4DArm.js";
|
|
8
9
|
import { u as mo } from "../../useId-CK6Kn3Tn.js";
|
|
9
|
-
import { u as oo } from "../../useSlot-
|
|
10
|
-
import { T as J } from "../../Typography-
|
|
10
|
+
import { u as oo } from "../../useSlot-DKccmcQE.js";
|
|
11
|
+
import { T as J } from "../../Typography-CTrRb9FL.js";
|
|
11
12
|
import { r as eo, c as K } from "../../useTimeout-DmOXPFt0.js";
|
|
12
|
-
import { S as bo } from "../../SwitchBase-
|
|
13
|
-
import { c as ro } from "../../createSvgIcon-
|
|
13
|
+
import { S as bo } from "../../SwitchBase-V2UoemN5.js";
|
|
14
|
+
import { c as ro } from "../../createSvgIcon-C0YrvByi.js";
|
|
14
15
|
function yo(e) {
|
|
15
16
|
return B("MuiFormControlLabel", e);
|
|
16
17
|
}
|
|
@@ -711,7 +712,7 @@ const Go = (e) => {
|
|
|
711
712
|
onChange: d,
|
|
712
713
|
value: m,
|
|
713
714
|
...f
|
|
714
|
-
} = r, h = u.useRef(null), P = Go(r), [S, R] =
|
|
715
|
+
} = r, h = u.useRef(null), P = Go(r), [S, R] = uo({
|
|
715
716
|
controlled: m,
|
|
716
717
|
default: p,
|
|
717
718
|
name: "RadioGroup"
|
|
@@ -722,7 +723,7 @@ const Go = (e) => {
|
|
|
722
723
|
n || (n = h.current.querySelector("input:not(:disabled)")), n && n.focus();
|
|
723
724
|
}
|
|
724
725
|
}), []);
|
|
725
|
-
const w =
|
|
726
|
+
const w = fo(t, h), b = mo(c), F = u.useMemo(() => ({
|
|
726
727
|
name: b,
|
|
727
728
|
onChange(n) {
|
|
728
729
|
R(n.target.value), d && d(n, n.target.value);
|
|
@@ -775,7 +776,7 @@ process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
|
775
776
|
*/
|
|
776
777
|
value: o.any
|
|
777
778
|
});
|
|
778
|
-
function
|
|
779
|
+
function Ko({
|
|
779
780
|
label: e,
|
|
780
781
|
options: r,
|
|
781
782
|
defaultValue: t,
|
|
@@ -834,5 +835,5 @@ function Jo({
|
|
|
834
835
|
);
|
|
835
836
|
}
|
|
836
837
|
export {
|
|
837
|
-
|
|
838
|
+
Ko as RadioButtonGroup
|
|
838
839
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
1
|
interface HorizontalLinearStepperProps {
|
|
4
2
|
steps: string[];
|
|
5
3
|
activeStep?: number;
|
|
6
|
-
|
|
7
|
-
stepperSx?: SxProps<Theme>;
|
|
4
|
+
alternativeLabel?: boolean;
|
|
8
5
|
}
|
|
9
|
-
export declare function Stepper({ steps, activeStep,
|
|
6
|
+
export declare function Stepper({ steps, activeStep, alternativeLabel, }: HorizontalLinearStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
10
7
|
export {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as w, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { Stepper as ee } from "@mui/material";
|
|
3
3
|
import { B as te } from "../../Box-DPlM16yK.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as b from "react";
|
|
5
5
|
import { g as D, a as V, P as e } from "../../generateUtilityClasses-BCID9NF1.js";
|
|
6
|
-
import { u as
|
|
6
|
+
import { u as _, s as L, c as j, a as k, m as R } from "../../DefaultPropsProvider-DVX_ssOt.js";
|
|
7
7
|
import { i as oe } from "../../integerPropType-BihGt2aU.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { c as H, S as ne } from "../../createSvgIcon-
|
|
10
|
-
const
|
|
11
|
-
process.env.NODE_ENV !== "production" && (
|
|
12
|
-
const
|
|
13
|
-
process.env.NODE_ENV !== "production" && (
|
|
14
|
-
function
|
|
8
|
+
import { u as z } from "../../useSlot-DKccmcQE.js";
|
|
9
|
+
import { c as H, S as ne } from "../../createSvgIcon-C0YrvByi.js";
|
|
10
|
+
const F = /* @__PURE__ */ b.createContext({});
|
|
11
|
+
process.env.NODE_ENV !== "production" && (F.displayName = "StepperContext");
|
|
12
|
+
const W = /* @__PURE__ */ b.createContext({});
|
|
13
|
+
process.env.NODE_ENV !== "production" && (W.displayName = "StepContext");
|
|
14
|
+
function ae(t) {
|
|
15
15
|
return D("MuiStep", t);
|
|
16
16
|
}
|
|
17
17
|
V("MuiStep", ["root", "horizontal", "vertical", "alternativeLabel", "completed"]);
|
|
18
|
-
const
|
|
18
|
+
const re = (t) => {
|
|
19
19
|
const {
|
|
20
20
|
classes: o,
|
|
21
21
|
orientation: n,
|
|
22
|
-
alternativeLabel:
|
|
23
|
-
completed:
|
|
22
|
+
alternativeLabel: a,
|
|
23
|
+
completed: r
|
|
24
24
|
} = t;
|
|
25
|
-
return
|
|
26
|
-
root: ["root", n,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
25
|
+
return k({
|
|
26
|
+
root: ["root", n, a && "alternativeLabel", r && "completed"]
|
|
27
|
+
}, ae, o);
|
|
28
|
+
}, se = L("div", {
|
|
29
29
|
name: "MuiStep",
|
|
30
30
|
slot: "Root",
|
|
31
31
|
overridesResolver: (t, o) => {
|
|
@@ -52,60 +52,60 @@ const ae = (t) => {
|
|
|
52
52
|
position: "relative"
|
|
53
53
|
}
|
|
54
54
|
}]
|
|
55
|
-
}), J = /* @__PURE__ */
|
|
56
|
-
const
|
|
55
|
+
}), J = /* @__PURE__ */ b.forwardRef(function(o, n) {
|
|
56
|
+
const a = _({
|
|
57
57
|
props: o,
|
|
58
58
|
name: "MuiStep"
|
|
59
59
|
}), {
|
|
60
|
-
active:
|
|
61
|
-
children:
|
|
62
|
-
className:
|
|
63
|
-
component:
|
|
60
|
+
active: r,
|
|
61
|
+
children: c,
|
|
62
|
+
className: m,
|
|
63
|
+
component: l = "div",
|
|
64
64
|
completed: p,
|
|
65
65
|
disabled: u,
|
|
66
66
|
expanded: d = !1,
|
|
67
|
-
index:
|
|
68
|
-
last:
|
|
67
|
+
index: i,
|
|
68
|
+
last: v,
|
|
69
69
|
...$
|
|
70
|
-
} =
|
|
70
|
+
} = a, {
|
|
71
71
|
activeStep: I,
|
|
72
|
-
connector:
|
|
73
|
-
alternativeLabel:
|
|
74
|
-
orientation:
|
|
72
|
+
connector: C,
|
|
73
|
+
alternativeLabel: T,
|
|
74
|
+
orientation: M,
|
|
75
75
|
nonLinear: O
|
|
76
|
-
} =
|
|
77
|
-
let [x = !1, g = !1,
|
|
78
|
-
I ===
|
|
79
|
-
const
|
|
80
|
-
index:
|
|
81
|
-
last:
|
|
76
|
+
} = b.useContext(F);
|
|
77
|
+
let [x = !1, g = !1, S = !1] = [r, p, u];
|
|
78
|
+
I === i ? x = r !== void 0 ? r : !0 : !O && I > i ? g = p !== void 0 ? p : !0 : !O && I < i && (S = u !== void 0 ? u : !0);
|
|
79
|
+
const P = b.useMemo(() => ({
|
|
80
|
+
index: i,
|
|
81
|
+
last: v,
|
|
82
82
|
expanded: d,
|
|
83
|
-
icon:
|
|
83
|
+
icon: i + 1,
|
|
84
84
|
active: x,
|
|
85
85
|
completed: g,
|
|
86
|
-
disabled:
|
|
87
|
-
}), [
|
|
88
|
-
...
|
|
86
|
+
disabled: S
|
|
87
|
+
}), [i, v, d, x, g, S]), f = {
|
|
88
|
+
...a,
|
|
89
89
|
active: x,
|
|
90
|
-
orientation:
|
|
91
|
-
alternativeLabel:
|
|
90
|
+
orientation: M,
|
|
91
|
+
alternativeLabel: T,
|
|
92
92
|
completed: g,
|
|
93
|
-
disabled:
|
|
93
|
+
disabled: S,
|
|
94
94
|
expanded: d,
|
|
95
|
-
component:
|
|
96
|
-
},
|
|
97
|
-
as:
|
|
98
|
-
className: j(
|
|
95
|
+
component: l
|
|
96
|
+
}, N = re(f), h = /* @__PURE__ */ w(se, {
|
|
97
|
+
as: l,
|
|
98
|
+
className: j(N.root, m),
|
|
99
99
|
ref: n,
|
|
100
100
|
ownerState: f,
|
|
101
101
|
...$,
|
|
102
|
-
children: [
|
|
102
|
+
children: [C && T && i !== 0 ? C : null, c]
|
|
103
103
|
});
|
|
104
|
-
return /* @__PURE__ */ s(
|
|
105
|
-
value:
|
|
106
|
-
children:
|
|
107
|
-
children: [
|
|
108
|
-
}) :
|
|
104
|
+
return /* @__PURE__ */ s(W.Provider, {
|
|
105
|
+
value: P,
|
|
106
|
+
children: C && !T && i !== 0 ? /* @__PURE__ */ w(b.Fragment, {
|
|
107
|
+
children: [C, h]
|
|
108
|
+
}) : h
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
111
|
process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
@@ -163,7 +163,7 @@ process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
|
163
163
|
*/
|
|
164
164
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
165
165
|
});
|
|
166
|
-
const
|
|
166
|
+
const le = H(/* @__PURE__ */ s("path", {
|
|
167
167
|
d: "M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"
|
|
168
168
|
}), "CheckCircle"), ie = H(/* @__PURE__ */ s("path", {
|
|
169
169
|
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
@@ -171,20 +171,20 @@ const se = H(/* @__PURE__ */ s("path", {
|
|
|
171
171
|
function ce(t) {
|
|
172
172
|
return D("MuiStepIcon", t);
|
|
173
173
|
}
|
|
174
|
-
const
|
|
174
|
+
const E = V("MuiStepIcon", ["root", "active", "completed", "error", "text"]);
|
|
175
175
|
var G;
|
|
176
176
|
const pe = (t) => {
|
|
177
177
|
const {
|
|
178
178
|
classes: o,
|
|
179
179
|
active: n,
|
|
180
|
-
completed:
|
|
181
|
-
error:
|
|
180
|
+
completed: a,
|
|
181
|
+
error: r
|
|
182
182
|
} = t;
|
|
183
|
-
return
|
|
184
|
-
root: ["root", n && "active",
|
|
183
|
+
return k({
|
|
184
|
+
root: ["root", n && "active", a && "completed", r && "error"],
|
|
185
185
|
text: ["text"]
|
|
186
186
|
}, ce, o);
|
|
187
|
-
}, U =
|
|
187
|
+
}, U = L(ne, {
|
|
188
188
|
name: "MuiStepIcon",
|
|
189
189
|
slot: "Root"
|
|
190
190
|
})(R(({
|
|
@@ -195,16 +195,16 @@ const pe = (t) => {
|
|
|
195
195
|
duration: t.transitions.duration.shortest
|
|
196
196
|
}),
|
|
197
197
|
color: (t.vars || t).palette.text.disabled,
|
|
198
|
-
[`&.${
|
|
198
|
+
[`&.${E.completed}`]: {
|
|
199
199
|
color: (t.vars || t).palette.primary.main
|
|
200
200
|
},
|
|
201
|
-
[`&.${
|
|
201
|
+
[`&.${E.active}`]: {
|
|
202
202
|
color: (t.vars || t).palette.primary.main
|
|
203
203
|
},
|
|
204
|
-
[`&.${
|
|
204
|
+
[`&.${E.error}`]: {
|
|
205
205
|
color: (t.vars || t).palette.error.main
|
|
206
206
|
}
|
|
207
|
-
}))), de =
|
|
207
|
+
}))), de = L("text", {
|
|
208
208
|
name: "MuiStepIcon",
|
|
209
209
|
slot: "Text"
|
|
210
210
|
})(R(({
|
|
@@ -213,39 +213,39 @@ const pe = (t) => {
|
|
|
213
213
|
fill: (t.vars || t).palette.primary.contrastText,
|
|
214
214
|
fontSize: t.typography.caption.fontSize,
|
|
215
215
|
fontFamily: t.typography.fontFamily
|
|
216
|
-
}))), K = /* @__PURE__ */
|
|
217
|
-
const
|
|
216
|
+
}))), K = /* @__PURE__ */ b.forwardRef(function(o, n) {
|
|
217
|
+
const a = _({
|
|
218
218
|
props: o,
|
|
219
219
|
name: "MuiStepIcon"
|
|
220
220
|
}), {
|
|
221
|
-
active:
|
|
222
|
-
className:
|
|
223
|
-
completed:
|
|
224
|
-
error:
|
|
221
|
+
active: r = !1,
|
|
222
|
+
className: c,
|
|
223
|
+
completed: m = !1,
|
|
224
|
+
error: l = !1,
|
|
225
225
|
icon: p,
|
|
226
226
|
...u
|
|
227
|
-
} =
|
|
228
|
-
...
|
|
229
|
-
active:
|
|
230
|
-
completed:
|
|
231
|
-
error:
|
|
232
|
-
},
|
|
227
|
+
} = a, d = {
|
|
228
|
+
...a,
|
|
229
|
+
active: r,
|
|
230
|
+
completed: m,
|
|
231
|
+
error: l
|
|
232
|
+
}, i = pe(d);
|
|
233
233
|
if (typeof p == "number" || typeof p == "string") {
|
|
234
|
-
const
|
|
235
|
-
return
|
|
234
|
+
const v = j(c, i.root);
|
|
235
|
+
return l ? /* @__PURE__ */ s(U, {
|
|
236
236
|
as: ie,
|
|
237
|
-
className:
|
|
237
|
+
className: v,
|
|
238
238
|
ref: n,
|
|
239
239
|
ownerState: d,
|
|
240
240
|
...u
|
|
241
|
-
}) :
|
|
242
|
-
as:
|
|
243
|
-
className:
|
|
241
|
+
}) : m ? /* @__PURE__ */ s(U, {
|
|
242
|
+
as: le,
|
|
243
|
+
className: v,
|
|
244
244
|
ref: n,
|
|
245
245
|
ownerState: d,
|
|
246
246
|
...u
|
|
247
|
-
}) : /* @__PURE__ */
|
|
248
|
-
className:
|
|
247
|
+
}) : /* @__PURE__ */ w(U, {
|
|
248
|
+
className: v,
|
|
249
249
|
ref: n,
|
|
250
250
|
ownerState: d,
|
|
251
251
|
...u,
|
|
@@ -254,7 +254,7 @@ const pe = (t) => {
|
|
|
254
254
|
cy: "12",
|
|
255
255
|
r: "12"
|
|
256
256
|
})), /* @__PURE__ */ s(de, {
|
|
257
|
-
className:
|
|
257
|
+
className: i.text,
|
|
258
258
|
x: "12",
|
|
259
259
|
y: "12",
|
|
260
260
|
textAnchor: "middle",
|
|
@@ -303,26 +303,26 @@ process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
|
303
303
|
*/
|
|
304
304
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
305
305
|
});
|
|
306
|
-
function
|
|
306
|
+
function me(t) {
|
|
307
307
|
return D("MuiStepLabel", t);
|
|
308
308
|
}
|
|
309
|
-
const y = V("MuiStepLabel", ["root", "horizontal", "vertical", "label", "active", "completed", "error", "disabled", "iconContainer", "alternativeLabel", "labelContainer"]),
|
|
309
|
+
const y = V("MuiStepLabel", ["root", "horizontal", "vertical", "label", "active", "completed", "error", "disabled", "iconContainer", "alternativeLabel", "labelContainer"]), be = (t) => {
|
|
310
310
|
const {
|
|
311
311
|
classes: o,
|
|
312
312
|
orientation: n,
|
|
313
|
-
active:
|
|
314
|
-
completed:
|
|
315
|
-
error:
|
|
316
|
-
disabled:
|
|
317
|
-
alternativeLabel:
|
|
313
|
+
active: a,
|
|
314
|
+
completed: r,
|
|
315
|
+
error: c,
|
|
316
|
+
disabled: m,
|
|
317
|
+
alternativeLabel: l
|
|
318
318
|
} = t;
|
|
319
|
-
return
|
|
320
|
-
root: ["root", n,
|
|
321
|
-
label: ["label",
|
|
322
|
-
iconContainer: ["iconContainer",
|
|
323
|
-
labelContainer: ["labelContainer",
|
|
324
|
-
},
|
|
325
|
-
}, ue =
|
|
319
|
+
return k({
|
|
320
|
+
root: ["root", n, c && "error", m && "disabled", l && "alternativeLabel"],
|
|
321
|
+
label: ["label", a && "active", r && "completed", c && "error", m && "disabled", l && "alternativeLabel"],
|
|
322
|
+
iconContainer: ["iconContainer", a && "active", r && "completed", c && "error", m && "disabled", l && "alternativeLabel"],
|
|
323
|
+
labelContainer: ["labelContainer", l && "alternativeLabel"]
|
|
324
|
+
}, me, o);
|
|
325
|
+
}, ue = L("span", {
|
|
326
326
|
name: "MuiStepLabel",
|
|
327
327
|
slot: "Root",
|
|
328
328
|
overridesResolver: (t, o) => {
|
|
@@ -349,7 +349,7 @@ const y = V("MuiStepLabel", ["root", "horizontal", "vertical", "label", "active"
|
|
|
349
349
|
padding: "8px 0"
|
|
350
350
|
}
|
|
351
351
|
}]
|
|
352
|
-
}), fe =
|
|
352
|
+
}), fe = L("span", {
|
|
353
353
|
name: "MuiStepLabel",
|
|
354
354
|
slot: "Label"
|
|
355
355
|
})(R(({
|
|
@@ -374,7 +374,7 @@ const y = V("MuiStepLabel", ["root", "horizontal", "vertical", "label", "active"
|
|
|
374
374
|
[`&.${y.error}`]: {
|
|
375
375
|
color: (t.vars || t).palette.error.main
|
|
376
376
|
}
|
|
377
|
-
}))),
|
|
377
|
+
}))), ve = L("span", {
|
|
378
378
|
name: "MuiStepLabel",
|
|
379
379
|
slot: "IconContainer"
|
|
380
380
|
})({
|
|
@@ -384,7 +384,7 @@ const y = V("MuiStepLabel", ["root", "horizontal", "vertical", "label", "active"
|
|
|
384
384
|
[`&.${y.alternativeLabel}`]: {
|
|
385
385
|
paddingRight: 0
|
|
386
386
|
}
|
|
387
|
-
}),
|
|
387
|
+
}), Se = L("span", {
|
|
388
388
|
name: "MuiStepLabel",
|
|
389
389
|
slot: "LabelContainer"
|
|
390
390
|
})(R(({
|
|
@@ -395,90 +395,90 @@ const y = V("MuiStepLabel", ["root", "horizontal", "vertical", "label", "active"
|
|
|
395
395
|
[`&.${y.alternativeLabel}`]: {
|
|
396
396
|
textAlign: "center"
|
|
397
397
|
}
|
|
398
|
-
}))),
|
|
399
|
-
const
|
|
398
|
+
}))), A = /* @__PURE__ */ b.forwardRef(function(o, n) {
|
|
399
|
+
const a = _({
|
|
400
400
|
props: o,
|
|
401
401
|
name: "MuiStepLabel"
|
|
402
402
|
}), {
|
|
403
|
-
children:
|
|
404
|
-
className:
|
|
405
|
-
componentsProps:
|
|
406
|
-
error:
|
|
403
|
+
children: r,
|
|
404
|
+
className: c,
|
|
405
|
+
componentsProps: m = {},
|
|
406
|
+
error: l = !1,
|
|
407
407
|
icon: p,
|
|
408
408
|
optional: u,
|
|
409
409
|
slots: d = {},
|
|
410
|
-
slotProps:
|
|
411
|
-
StepIconComponent:
|
|
410
|
+
slotProps: i = {},
|
|
411
|
+
StepIconComponent: v,
|
|
412
412
|
StepIconProps: $,
|
|
413
413
|
...I
|
|
414
|
-
} =
|
|
415
|
-
alternativeLabel:
|
|
416
|
-
orientation:
|
|
417
|
-
} =
|
|
418
|
-
active:
|
|
414
|
+
} = a, {
|
|
415
|
+
alternativeLabel: C,
|
|
416
|
+
orientation: T
|
|
417
|
+
} = b.useContext(F), {
|
|
418
|
+
active: M,
|
|
419
419
|
disabled: O,
|
|
420
420
|
completed: x,
|
|
421
421
|
icon: g
|
|
422
|
-
} =
|
|
423
|
-
let
|
|
424
|
-
|
|
422
|
+
} = b.useContext(W), S = p || g;
|
|
423
|
+
let P = v;
|
|
424
|
+
S && !P && (P = K);
|
|
425
425
|
const f = {
|
|
426
|
-
...
|
|
427
|
-
active:
|
|
428
|
-
alternativeLabel:
|
|
426
|
+
...a,
|
|
427
|
+
active: M,
|
|
428
|
+
alternativeLabel: C,
|
|
429
429
|
completed: x,
|
|
430
430
|
disabled: O,
|
|
431
|
-
error:
|
|
432
|
-
orientation:
|
|
433
|
-
},
|
|
431
|
+
error: l,
|
|
432
|
+
orientation: T
|
|
433
|
+
}, N = be(f), h = {
|
|
434
434
|
slots: d,
|
|
435
435
|
slotProps: {
|
|
436
436
|
stepIcon: $,
|
|
437
|
-
...
|
|
438
|
-
...
|
|
437
|
+
...m,
|
|
438
|
+
...i
|
|
439
439
|
}
|
|
440
|
-
}, [Q, X] =
|
|
440
|
+
}, [Q, X] = z("root", {
|
|
441
441
|
elementType: ue,
|
|
442
442
|
externalForwardedProps: {
|
|
443
|
-
...
|
|
443
|
+
...h,
|
|
444
444
|
...I
|
|
445
445
|
},
|
|
446
446
|
ownerState: f,
|
|
447
447
|
ref: n,
|
|
448
|
-
className: j(
|
|
449
|
-
}), [Y, B] =
|
|
448
|
+
className: j(N.root, c)
|
|
449
|
+
}), [Y, B] = z("label", {
|
|
450
450
|
elementType: fe,
|
|
451
|
-
externalForwardedProps:
|
|
451
|
+
externalForwardedProps: h,
|
|
452
452
|
ownerState: f
|
|
453
|
-
}), [q, Z] =
|
|
454
|
-
elementType:
|
|
455
|
-
externalForwardedProps:
|
|
453
|
+
}), [q, Z] = z("stepIcon", {
|
|
454
|
+
elementType: P,
|
|
455
|
+
externalForwardedProps: h,
|
|
456
456
|
ownerState: f
|
|
457
457
|
});
|
|
458
|
-
return /* @__PURE__ */
|
|
458
|
+
return /* @__PURE__ */ w(Q, {
|
|
459
459
|
...X,
|
|
460
|
-
children: [
|
|
461
|
-
className:
|
|
460
|
+
children: [S || q ? /* @__PURE__ */ s(ve, {
|
|
461
|
+
className: N.iconContainer,
|
|
462
462
|
ownerState: f,
|
|
463
463
|
children: /* @__PURE__ */ s(q, {
|
|
464
464
|
completed: x,
|
|
465
|
-
active:
|
|
466
|
-
error:
|
|
467
|
-
icon:
|
|
465
|
+
active: M,
|
|
466
|
+
error: l,
|
|
467
|
+
icon: S,
|
|
468
468
|
...Z
|
|
469
469
|
})
|
|
470
|
-
}) : null, /* @__PURE__ */
|
|
471
|
-
className:
|
|
470
|
+
}) : null, /* @__PURE__ */ w(Se, {
|
|
471
|
+
className: N.labelContainer,
|
|
472
472
|
ownerState: f,
|
|
473
|
-
children: [
|
|
473
|
+
children: [r ? /* @__PURE__ */ s(Y, {
|
|
474
474
|
...B,
|
|
475
|
-
className: j(
|
|
476
|
-
children:
|
|
475
|
+
className: j(N.label, B?.className),
|
|
476
|
+
children: r
|
|
477
477
|
}) : null, u]
|
|
478
478
|
})]
|
|
479
479
|
});
|
|
480
480
|
});
|
|
481
|
-
process.env.NODE_ENV !== "production" && (
|
|
481
|
+
process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
482
482
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
483
483
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
484
484
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -549,38 +549,14 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
|
549
549
|
*/
|
|
550
550
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
551
551
|
});
|
|
552
|
-
|
|
553
|
-
function
|
|
552
|
+
A.muiName = "StepLabel";
|
|
553
|
+
function Te({
|
|
554
554
|
steps: t,
|
|
555
555
|
activeStep: o = 0,
|
|
556
|
-
|
|
557
|
-
stepperSx: r
|
|
556
|
+
alternativeLabel: n = !0
|
|
558
557
|
}) {
|
|
559
|
-
|
|
560
|
-
"& .MuiStepIcon-root": {
|
|
561
|
-
color: "#bdbdbd",
|
|
562
|
-
width: 32,
|
|
563
|
-
height: 32,
|
|
564
|
-
"&.Mui-active": { color: "#27A4E8" },
|
|
565
|
-
"&.Mui-completed": { color: "#27A4E8" }
|
|
566
|
-
},
|
|
567
|
-
"& .MuiStepLabel-root .Mui-active .MuiStepIcon-text": {
|
|
568
|
-
fill: "white"
|
|
569
|
-
},
|
|
570
|
-
"& .MuiStepLabel-label": {
|
|
571
|
-
color: "#6B7C93",
|
|
572
|
-
fontSize: "14px",
|
|
573
|
-
"&.Mui-active": { color: "#000000", fontWeight: 600 },
|
|
574
|
-
"&.Mui-completed": { color: "#000000" }
|
|
575
|
-
},
|
|
576
|
-
"& .MuiStepConnector-line": {
|
|
577
|
-
borderColor: "#e0e0e0",
|
|
578
|
-
borderTopWidth: 1
|
|
579
|
-
},
|
|
580
|
-
...r ?? {}
|
|
581
|
-
};
|
|
582
|
-
return /* @__PURE__ */ s(te, { sx: { width: "100%", ...n ?? {} }, children: /* @__PURE__ */ s(ee, { activeStep: o, sx: a, children: t.map((l) => /* @__PURE__ */ s(J, { children: /* @__PURE__ */ s(F, { children: l }) }, l)) }) });
|
|
558
|
+
return /* @__PURE__ */ s(te, { sx: { width: "100%" }, children: /* @__PURE__ */ s(ee, { activeStep: o, alternativeLabel: n, children: t.map((a) => /* @__PURE__ */ s(J, { children: /* @__PURE__ */ s(A, { children: a }) }, a)) }) });
|
|
583
559
|
}
|
|
584
560
|
export {
|
|
585
|
-
|
|
561
|
+
Te as Stepper
|
|
586
562
|
};
|