@fangzsx/component-library 0.0.14 → 0.0.16
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-qMhxbNdC.js → ButtonBase-DxZEqM87.js} +15 -14
- package/dist/{FormLabel-DKoCtSGZ.js → FormLabel-DLyFlUyL.js} +7 -6
- package/dist/{Paper-DyRh03We.js → Paper-DZg6u5tT.js} +50 -77
- package/dist/{SwitchBase-DStPyUhD.js → SwitchBase-BPRcMkqu.js} +23 -21
- package/dist/{Typography-B0rSrz7H.js → Typography-DMROEdKW.js} +5 -4
- package/dist/components/AppBarPublic/index.js +8 -7
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Checkbox/index.js +23 -22
- package/dist/components/CheckboxGroup/index.js +47 -34
- package/dist/components/MediaCardWithAction/index.js +7 -6
- package/dist/components/RadioButtonGroup/index.js +20 -18
- package/dist/components/Stepper/index.d.ts +11 -0
- package/dist/components/Stepper/index.js +607 -0
- package/dist/components/TextFieldInput/index.js +503 -482
- package/dist/{createSvgIcon-Dj0SJuc1.js → createSvgIcon-ChKzptBc.js} +2 -1
- package/dist/{index-o1i1vy-V.js → index-1CH5DDiw.js} +1 -1
- package/dist/{index-CoBGCD2e.js → index-B08hLYdM.js} +24 -23
- package/dist/integerPropType-BihGt2aU.js +31 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +7 -5
- package/dist/{mergeSlotProps-C-n2ing7.js → mergeSlotProps-CADAqXOb.js} +1 -1
- package/dist/{useTimeout-BWi4JTOH.js → useForkRef-gLJikozA.js} +170 -277
- package/dist/useFormControl-BGLuGvqS.js +38 -0
- package/dist/useSlot-jPRhj-MO.js +125 -0
- package/dist/useTimeout-DmOXPFt0.js +111 -0
- package/package.json +1 -1
- package/dist/useSlot-S2pEBHE8.js +0 -161
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
import { jsxs as P, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { Stepper as ee } from "@mui/material";
|
|
3
|
+
import { B as te } from "../../Box-DPlM16yK.js";
|
|
4
|
+
import * as u from "react";
|
|
5
|
+
import { g as A, a as D, P as e } from "../../generateUtilityClasses-BCID9NF1.js";
|
|
6
|
+
import { u as V, s as C, c as j, a as W, m as R } from "../../useForkRef-gLJikozA.js";
|
|
7
|
+
import { i as oe } from "../../integerPropType-BihGt2aU.js";
|
|
8
|
+
import { u as $ } from "../../useSlot-jPRhj-MO.js";
|
|
9
|
+
import { c as H, S as ne } from "../../createSvgIcon-ChKzptBc.js";
|
|
10
|
+
const _ = /* @__PURE__ */ u.createContext({});
|
|
11
|
+
process.env.NODE_ENV !== "production" && (_.displayName = "StepperContext");
|
|
12
|
+
const k = /* @__PURE__ */ u.createContext({});
|
|
13
|
+
process.env.NODE_ENV !== "production" && (k.displayName = "StepContext");
|
|
14
|
+
function re(t) {
|
|
15
|
+
return A("MuiStep", t);
|
|
16
|
+
}
|
|
17
|
+
D("MuiStep", ["root", "horizontal", "vertical", "alternativeLabel", "completed"]);
|
|
18
|
+
const ae = (t) => {
|
|
19
|
+
const {
|
|
20
|
+
classes: o,
|
|
21
|
+
orientation: n,
|
|
22
|
+
alternativeLabel: r,
|
|
23
|
+
completed: a
|
|
24
|
+
} = t;
|
|
25
|
+
return W({
|
|
26
|
+
root: ["root", n, r && "alternativeLabel", a && "completed"]
|
|
27
|
+
}, re, o);
|
|
28
|
+
}, le = C("div", {
|
|
29
|
+
name: "MuiStep",
|
|
30
|
+
slot: "Root",
|
|
31
|
+
overridesResolver: (t, o) => {
|
|
32
|
+
const {
|
|
33
|
+
ownerState: n
|
|
34
|
+
} = t;
|
|
35
|
+
return [o.root, o[n.orientation], n.alternativeLabel && o.alternativeLabel, n.completed && o.completed];
|
|
36
|
+
}
|
|
37
|
+
})({
|
|
38
|
+
variants: [{
|
|
39
|
+
props: {
|
|
40
|
+
orientation: "horizontal"
|
|
41
|
+
},
|
|
42
|
+
style: {
|
|
43
|
+
paddingLeft: 8,
|
|
44
|
+
paddingRight: 8
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
props: {
|
|
48
|
+
alternativeLabel: !0
|
|
49
|
+
},
|
|
50
|
+
style: {
|
|
51
|
+
flex: 1,
|
|
52
|
+
position: "relative"
|
|
53
|
+
}
|
|
54
|
+
}]
|
|
55
|
+
}), J = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
56
|
+
const r = V({
|
|
57
|
+
props: o,
|
|
58
|
+
name: "MuiStep"
|
|
59
|
+
}), {
|
|
60
|
+
active: a,
|
|
61
|
+
children: l,
|
|
62
|
+
className: b,
|
|
63
|
+
component: i = "div",
|
|
64
|
+
completed: p,
|
|
65
|
+
disabled: m,
|
|
66
|
+
expanded: d = !1,
|
|
67
|
+
index: c,
|
|
68
|
+
last: S,
|
|
69
|
+
...E
|
|
70
|
+
} = r, {
|
|
71
|
+
activeStep: N,
|
|
72
|
+
connector: L,
|
|
73
|
+
alternativeLabel: I,
|
|
74
|
+
orientation: w,
|
|
75
|
+
nonLinear: O
|
|
76
|
+
} = u.useContext(_);
|
|
77
|
+
let [x = !1, M = !1, v = !1] = [a, p, m];
|
|
78
|
+
N === c ? x = a !== void 0 ? a : !0 : !O && N > c ? M = p !== void 0 ? p : !0 : !O && N < c && (v = m !== void 0 ? m : !0);
|
|
79
|
+
const T = u.useMemo(() => ({
|
|
80
|
+
index: c,
|
|
81
|
+
last: S,
|
|
82
|
+
expanded: d,
|
|
83
|
+
icon: c + 1,
|
|
84
|
+
active: x,
|
|
85
|
+
completed: M,
|
|
86
|
+
disabled: v
|
|
87
|
+
}), [c, S, d, x, M, v]), f = {
|
|
88
|
+
...r,
|
|
89
|
+
active: x,
|
|
90
|
+
orientation: w,
|
|
91
|
+
alternativeLabel: I,
|
|
92
|
+
completed: M,
|
|
93
|
+
disabled: v,
|
|
94
|
+
expanded: d,
|
|
95
|
+
component: i
|
|
96
|
+
}, h = ae(f), g = /* @__PURE__ */ P(le, {
|
|
97
|
+
as: i,
|
|
98
|
+
className: j(h.root, b),
|
|
99
|
+
ref: n,
|
|
100
|
+
ownerState: f,
|
|
101
|
+
...E,
|
|
102
|
+
children: [L && I && c !== 0 ? L : null, l]
|
|
103
|
+
});
|
|
104
|
+
return /* @__PURE__ */ s(k.Provider, {
|
|
105
|
+
value: T,
|
|
106
|
+
children: L && !I && c !== 0 ? /* @__PURE__ */ P(u.Fragment, {
|
|
107
|
+
children: [L, g]
|
|
108
|
+
}) : g
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
112
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
113
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
114
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
115
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
116
|
+
/**
|
|
117
|
+
* Sets the step as active. Is passed to child components.
|
|
118
|
+
*/
|
|
119
|
+
active: e.bool,
|
|
120
|
+
/**
|
|
121
|
+
* Should be `Step` sub-components such as `StepLabel`, `StepContent`.
|
|
122
|
+
*/
|
|
123
|
+
children: e.node,
|
|
124
|
+
/**
|
|
125
|
+
* Override or extend the styles applied to the component.
|
|
126
|
+
*/
|
|
127
|
+
classes: e.object,
|
|
128
|
+
/**
|
|
129
|
+
* @ignore
|
|
130
|
+
*/
|
|
131
|
+
className: e.string,
|
|
132
|
+
/**
|
|
133
|
+
* Mark the step as completed. Is passed to child components.
|
|
134
|
+
*/
|
|
135
|
+
completed: e.bool,
|
|
136
|
+
/**
|
|
137
|
+
* The component used for the root node.
|
|
138
|
+
* Either a string to use a HTML element or a component.
|
|
139
|
+
*/
|
|
140
|
+
component: e.elementType,
|
|
141
|
+
/**
|
|
142
|
+
* If `true`, the step is disabled, will also disable the button if
|
|
143
|
+
* `StepButton` is a child of `Step`. Is passed to child components.
|
|
144
|
+
*/
|
|
145
|
+
disabled: e.bool,
|
|
146
|
+
/**
|
|
147
|
+
* Expand the step.
|
|
148
|
+
* @default false
|
|
149
|
+
*/
|
|
150
|
+
expanded: e.bool,
|
|
151
|
+
/**
|
|
152
|
+
* The position of the step.
|
|
153
|
+
* The prop defaults to the value inherited from the parent Stepper component.
|
|
154
|
+
*/
|
|
155
|
+
index: oe,
|
|
156
|
+
/**
|
|
157
|
+
* If `true`, the Step is displayed as rendered last.
|
|
158
|
+
* The prop defaults to the value inherited from the parent Stepper component.
|
|
159
|
+
*/
|
|
160
|
+
last: e.bool,
|
|
161
|
+
/**
|
|
162
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
163
|
+
*/
|
|
164
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
165
|
+
});
|
|
166
|
+
const se = H(/* @__PURE__ */ s("path", {
|
|
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
|
+
}), "CheckCircle"), ie = H(/* @__PURE__ */ s("path", {
|
|
169
|
+
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
170
|
+
}), "Warning");
|
|
171
|
+
function ce(t) {
|
|
172
|
+
return A("MuiStepIcon", t);
|
|
173
|
+
}
|
|
174
|
+
const z = D("MuiStepIcon", ["root", "active", "completed", "error", "text"]);
|
|
175
|
+
var G;
|
|
176
|
+
const pe = (t) => {
|
|
177
|
+
const {
|
|
178
|
+
classes: o,
|
|
179
|
+
active: n,
|
|
180
|
+
completed: r,
|
|
181
|
+
error: a
|
|
182
|
+
} = t;
|
|
183
|
+
return W({
|
|
184
|
+
root: ["root", n && "active", r && "completed", a && "error"],
|
|
185
|
+
text: ["text"]
|
|
186
|
+
}, ce, o);
|
|
187
|
+
}, U = C(ne, {
|
|
188
|
+
name: "MuiStepIcon",
|
|
189
|
+
slot: "Root"
|
|
190
|
+
})(R(({
|
|
191
|
+
theme: t
|
|
192
|
+
}) => ({
|
|
193
|
+
display: "block",
|
|
194
|
+
transition: t.transitions.create("color", {
|
|
195
|
+
duration: t.transitions.duration.shortest
|
|
196
|
+
}),
|
|
197
|
+
color: (t.vars || t).palette.text.disabled,
|
|
198
|
+
[`&.${z.completed}`]: {
|
|
199
|
+
color: (t.vars || t).palette.primary.main
|
|
200
|
+
},
|
|
201
|
+
[`&.${z.active}`]: {
|
|
202
|
+
color: (t.vars || t).palette.primary.main
|
|
203
|
+
},
|
|
204
|
+
[`&.${z.error}`]: {
|
|
205
|
+
color: (t.vars || t).palette.error.main
|
|
206
|
+
}
|
|
207
|
+
}))), de = C("text", {
|
|
208
|
+
name: "MuiStepIcon",
|
|
209
|
+
slot: "Text"
|
|
210
|
+
})(R(({
|
|
211
|
+
theme: t
|
|
212
|
+
}) => ({
|
|
213
|
+
fill: (t.vars || t).palette.primary.contrastText,
|
|
214
|
+
fontSize: t.typography.caption.fontSize,
|
|
215
|
+
fontFamily: t.typography.fontFamily
|
|
216
|
+
}))), K = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
217
|
+
const r = V({
|
|
218
|
+
props: o,
|
|
219
|
+
name: "MuiStepIcon"
|
|
220
|
+
}), {
|
|
221
|
+
active: a = !1,
|
|
222
|
+
className: l,
|
|
223
|
+
completed: b = !1,
|
|
224
|
+
error: i = !1,
|
|
225
|
+
icon: p,
|
|
226
|
+
...m
|
|
227
|
+
} = r, d = {
|
|
228
|
+
...r,
|
|
229
|
+
active: a,
|
|
230
|
+
completed: b,
|
|
231
|
+
error: i
|
|
232
|
+
}, c = pe(d);
|
|
233
|
+
if (typeof p == "number" || typeof p == "string") {
|
|
234
|
+
const S = j(l, c.root);
|
|
235
|
+
return i ? /* @__PURE__ */ s(U, {
|
|
236
|
+
as: ie,
|
|
237
|
+
className: S,
|
|
238
|
+
ref: n,
|
|
239
|
+
ownerState: d,
|
|
240
|
+
...m
|
|
241
|
+
}) : b ? /* @__PURE__ */ s(U, {
|
|
242
|
+
as: se,
|
|
243
|
+
className: S,
|
|
244
|
+
ref: n,
|
|
245
|
+
ownerState: d,
|
|
246
|
+
...m
|
|
247
|
+
}) : /* @__PURE__ */ P(U, {
|
|
248
|
+
className: S,
|
|
249
|
+
ref: n,
|
|
250
|
+
ownerState: d,
|
|
251
|
+
...m,
|
|
252
|
+
children: [G || (G = /* @__PURE__ */ s("circle", {
|
|
253
|
+
cx: "12",
|
|
254
|
+
cy: "12",
|
|
255
|
+
r: "12"
|
|
256
|
+
})), /* @__PURE__ */ s(de, {
|
|
257
|
+
className: c.text,
|
|
258
|
+
x: "12",
|
|
259
|
+
y: "12",
|
|
260
|
+
textAnchor: "middle",
|
|
261
|
+
dominantBaseline: "central",
|
|
262
|
+
ownerState: d,
|
|
263
|
+
children: p
|
|
264
|
+
})]
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
return p;
|
|
268
|
+
});
|
|
269
|
+
process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
270
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
271
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
272
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
273
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
274
|
+
/**
|
|
275
|
+
* Whether this step is active.
|
|
276
|
+
* @default false
|
|
277
|
+
*/
|
|
278
|
+
active: e.bool,
|
|
279
|
+
/**
|
|
280
|
+
* Override or extend the styles applied to the component.
|
|
281
|
+
*/
|
|
282
|
+
classes: e.object,
|
|
283
|
+
/**
|
|
284
|
+
* @ignore
|
|
285
|
+
*/
|
|
286
|
+
className: e.string,
|
|
287
|
+
/**
|
|
288
|
+
* Mark the step as completed. Is passed to child components.
|
|
289
|
+
* @default false
|
|
290
|
+
*/
|
|
291
|
+
completed: e.bool,
|
|
292
|
+
/**
|
|
293
|
+
* If `true`, the step is marked as failed.
|
|
294
|
+
* @default false
|
|
295
|
+
*/
|
|
296
|
+
error: e.bool,
|
|
297
|
+
/**
|
|
298
|
+
* The label displayed in the step icon.
|
|
299
|
+
*/
|
|
300
|
+
icon: e.node,
|
|
301
|
+
/**
|
|
302
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
303
|
+
*/
|
|
304
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
305
|
+
});
|
|
306
|
+
function be(t) {
|
|
307
|
+
return A("MuiStepLabel", t);
|
|
308
|
+
}
|
|
309
|
+
const y = D("MuiStepLabel", ["root", "horizontal", "vertical", "label", "active", "completed", "error", "disabled", "iconContainer", "alternativeLabel", "labelContainer"]), ue = (t) => {
|
|
310
|
+
const {
|
|
311
|
+
classes: o,
|
|
312
|
+
orientation: n,
|
|
313
|
+
active: r,
|
|
314
|
+
completed: a,
|
|
315
|
+
error: l,
|
|
316
|
+
disabled: b,
|
|
317
|
+
alternativeLabel: i
|
|
318
|
+
} = t;
|
|
319
|
+
return W({
|
|
320
|
+
root: ["root", n, l && "error", b && "disabled", i && "alternativeLabel"],
|
|
321
|
+
label: ["label", r && "active", a && "completed", l && "error", b && "disabled", i && "alternativeLabel"],
|
|
322
|
+
iconContainer: ["iconContainer", r && "active", a && "completed", l && "error", b && "disabled", i && "alternativeLabel"],
|
|
323
|
+
labelContainer: ["labelContainer", i && "alternativeLabel"]
|
|
324
|
+
}, be, o);
|
|
325
|
+
}, me = C("span", {
|
|
326
|
+
name: "MuiStepLabel",
|
|
327
|
+
slot: "Root",
|
|
328
|
+
overridesResolver: (t, o) => {
|
|
329
|
+
const {
|
|
330
|
+
ownerState: n
|
|
331
|
+
} = t;
|
|
332
|
+
return [o.root, o[n.orientation]];
|
|
333
|
+
}
|
|
334
|
+
})({
|
|
335
|
+
display: "flex",
|
|
336
|
+
alignItems: "center",
|
|
337
|
+
[`&.${y.alternativeLabel}`]: {
|
|
338
|
+
flexDirection: "column"
|
|
339
|
+
},
|
|
340
|
+
[`&.${y.disabled}`]: {
|
|
341
|
+
cursor: "default"
|
|
342
|
+
},
|
|
343
|
+
variants: [{
|
|
344
|
+
props: {
|
|
345
|
+
orientation: "vertical"
|
|
346
|
+
},
|
|
347
|
+
style: {
|
|
348
|
+
textAlign: "left",
|
|
349
|
+
padding: "8px 0"
|
|
350
|
+
}
|
|
351
|
+
}]
|
|
352
|
+
}), fe = C("span", {
|
|
353
|
+
name: "MuiStepLabel",
|
|
354
|
+
slot: "Label"
|
|
355
|
+
})(R(({
|
|
356
|
+
theme: t
|
|
357
|
+
}) => ({
|
|
358
|
+
...t.typography.body2,
|
|
359
|
+
display: "block",
|
|
360
|
+
transition: t.transitions.create("color", {
|
|
361
|
+
duration: t.transitions.duration.shortest
|
|
362
|
+
}),
|
|
363
|
+
[`&.${y.active}`]: {
|
|
364
|
+
color: (t.vars || t).palette.text.primary,
|
|
365
|
+
fontWeight: 500
|
|
366
|
+
},
|
|
367
|
+
[`&.${y.completed}`]: {
|
|
368
|
+
color: (t.vars || t).palette.text.primary,
|
|
369
|
+
fontWeight: 500
|
|
370
|
+
},
|
|
371
|
+
[`&.${y.alternativeLabel}`]: {
|
|
372
|
+
marginTop: 16
|
|
373
|
+
},
|
|
374
|
+
[`&.${y.error}`]: {
|
|
375
|
+
color: (t.vars || t).palette.error.main
|
|
376
|
+
}
|
|
377
|
+
}))), Se = C("span", {
|
|
378
|
+
name: "MuiStepLabel",
|
|
379
|
+
slot: "IconContainer"
|
|
380
|
+
})({
|
|
381
|
+
flexShrink: 0,
|
|
382
|
+
display: "flex",
|
|
383
|
+
paddingRight: 8,
|
|
384
|
+
[`&.${y.alternativeLabel}`]: {
|
|
385
|
+
paddingRight: 0
|
|
386
|
+
}
|
|
387
|
+
}), ve = C("span", {
|
|
388
|
+
name: "MuiStepLabel",
|
|
389
|
+
slot: "LabelContainer"
|
|
390
|
+
})(R(({
|
|
391
|
+
theme: t
|
|
392
|
+
}) => ({
|
|
393
|
+
width: "100%",
|
|
394
|
+
color: (t.vars || t).palette.text.secondary,
|
|
395
|
+
[`&.${y.alternativeLabel}`]: {
|
|
396
|
+
textAlign: "center"
|
|
397
|
+
}
|
|
398
|
+
}))), F = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
399
|
+
const r = V({
|
|
400
|
+
props: o,
|
|
401
|
+
name: "MuiStepLabel"
|
|
402
|
+
}), {
|
|
403
|
+
children: a,
|
|
404
|
+
className: l,
|
|
405
|
+
componentsProps: b = {},
|
|
406
|
+
error: i = !1,
|
|
407
|
+
icon: p,
|
|
408
|
+
optional: m,
|
|
409
|
+
slots: d = {},
|
|
410
|
+
slotProps: c = {},
|
|
411
|
+
StepIconComponent: S,
|
|
412
|
+
StepIconProps: E,
|
|
413
|
+
...N
|
|
414
|
+
} = r, {
|
|
415
|
+
alternativeLabel: L,
|
|
416
|
+
orientation: I
|
|
417
|
+
} = u.useContext(_), {
|
|
418
|
+
active: w,
|
|
419
|
+
disabled: O,
|
|
420
|
+
completed: x,
|
|
421
|
+
icon: M
|
|
422
|
+
} = u.useContext(k), v = p || M;
|
|
423
|
+
let T = S;
|
|
424
|
+
v && !T && (T = K);
|
|
425
|
+
const f = {
|
|
426
|
+
...r,
|
|
427
|
+
active: w,
|
|
428
|
+
alternativeLabel: L,
|
|
429
|
+
completed: x,
|
|
430
|
+
disabled: O,
|
|
431
|
+
error: i,
|
|
432
|
+
orientation: I
|
|
433
|
+
}, h = ue(f), g = {
|
|
434
|
+
slots: d,
|
|
435
|
+
slotProps: {
|
|
436
|
+
stepIcon: E,
|
|
437
|
+
...b,
|
|
438
|
+
...c
|
|
439
|
+
}
|
|
440
|
+
}, [Q, X] = $("root", {
|
|
441
|
+
elementType: me,
|
|
442
|
+
externalForwardedProps: {
|
|
443
|
+
...g,
|
|
444
|
+
...N
|
|
445
|
+
},
|
|
446
|
+
ownerState: f,
|
|
447
|
+
ref: n,
|
|
448
|
+
className: j(h.root, l)
|
|
449
|
+
}), [Y, B] = $("label", {
|
|
450
|
+
elementType: fe,
|
|
451
|
+
externalForwardedProps: g,
|
|
452
|
+
ownerState: f
|
|
453
|
+
}), [q, Z] = $("stepIcon", {
|
|
454
|
+
elementType: T,
|
|
455
|
+
externalForwardedProps: g,
|
|
456
|
+
ownerState: f
|
|
457
|
+
});
|
|
458
|
+
return /* @__PURE__ */ P(Q, {
|
|
459
|
+
...X,
|
|
460
|
+
children: [v || q ? /* @__PURE__ */ s(Se, {
|
|
461
|
+
className: h.iconContainer,
|
|
462
|
+
ownerState: f,
|
|
463
|
+
children: /* @__PURE__ */ s(q, {
|
|
464
|
+
completed: x,
|
|
465
|
+
active: w,
|
|
466
|
+
error: i,
|
|
467
|
+
icon: v,
|
|
468
|
+
...Z
|
|
469
|
+
})
|
|
470
|
+
}) : null, /* @__PURE__ */ P(ve, {
|
|
471
|
+
className: h.labelContainer,
|
|
472
|
+
ownerState: f,
|
|
473
|
+
children: [a ? /* @__PURE__ */ s(Y, {
|
|
474
|
+
...B,
|
|
475
|
+
className: j(h.label, B?.className),
|
|
476
|
+
children: a
|
|
477
|
+
}) : null, m]
|
|
478
|
+
})]
|
|
479
|
+
});
|
|
480
|
+
});
|
|
481
|
+
process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
482
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
483
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
484
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
485
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
486
|
+
/**
|
|
487
|
+
* In most cases will simply be a string containing a title for the label.
|
|
488
|
+
*/
|
|
489
|
+
children: e.node,
|
|
490
|
+
/**
|
|
491
|
+
* Override or extend the styles applied to the component.
|
|
492
|
+
*/
|
|
493
|
+
classes: e.object,
|
|
494
|
+
/**
|
|
495
|
+
* @ignore
|
|
496
|
+
*/
|
|
497
|
+
className: e.string,
|
|
498
|
+
/**
|
|
499
|
+
* The props used for each slot inside.
|
|
500
|
+
* @default {}
|
|
501
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
502
|
+
*/
|
|
503
|
+
componentsProps: e.shape({
|
|
504
|
+
label: e.object
|
|
505
|
+
}),
|
|
506
|
+
/**
|
|
507
|
+
* If `true`, the step is marked as failed.
|
|
508
|
+
* @default false
|
|
509
|
+
*/
|
|
510
|
+
error: e.bool,
|
|
511
|
+
/**
|
|
512
|
+
* Override the default label of the step icon.
|
|
513
|
+
*/
|
|
514
|
+
icon: e.node,
|
|
515
|
+
/**
|
|
516
|
+
* The optional node to display.
|
|
517
|
+
*/
|
|
518
|
+
optional: e.node,
|
|
519
|
+
/**
|
|
520
|
+
* The props used for each slot inside.
|
|
521
|
+
* @default {}
|
|
522
|
+
*/
|
|
523
|
+
slotProps: e.shape({
|
|
524
|
+
label: e.oneOfType([e.func, e.object]),
|
|
525
|
+
root: e.oneOfType([e.func, e.object]),
|
|
526
|
+
stepIcon: e.oneOfType([e.func, e.object])
|
|
527
|
+
}),
|
|
528
|
+
/**
|
|
529
|
+
* The components used for each slot inside.
|
|
530
|
+
* @default {}
|
|
531
|
+
*/
|
|
532
|
+
slots: e.shape({
|
|
533
|
+
label: e.elementType,
|
|
534
|
+
root: e.elementType,
|
|
535
|
+
stepIcon: e.elementType
|
|
536
|
+
}),
|
|
537
|
+
/**
|
|
538
|
+
* The component to render in place of the [`StepIcon`](https://mui.com/material-ui/api/step-icon/).
|
|
539
|
+
* @deprecated Use `slots.stepIcon` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
540
|
+
*/
|
|
541
|
+
StepIconComponent: e.elementType,
|
|
542
|
+
/**
|
|
543
|
+
* Props applied to the [`StepIcon`](https://mui.com/material-ui/api/step-icon/) element.
|
|
544
|
+
* @deprecated Use `slotProps.stepIcon` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
545
|
+
*/
|
|
546
|
+
StepIconProps: e.object,
|
|
547
|
+
/**
|
|
548
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
549
|
+
*/
|
|
550
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
551
|
+
});
|
|
552
|
+
F.muiName = "StepLabel";
|
|
553
|
+
function Ie({
|
|
554
|
+
steps: t,
|
|
555
|
+
activeStep: o = 0,
|
|
556
|
+
sx: n,
|
|
557
|
+
stepperSx: r
|
|
558
|
+
}) {
|
|
559
|
+
const a = {
|
|
560
|
+
"& .MuiStepLabel-root .Mui-completed": {
|
|
561
|
+
color: "#27A4E8"
|
|
562
|
+
},
|
|
563
|
+
"& .MuiStepLabel-root .Mui-active": {
|
|
564
|
+
color: "#27A4E8"
|
|
565
|
+
},
|
|
566
|
+
"& .MuiStepLabel-root .Mui-active .MuiStepIcon-text": {
|
|
567
|
+
fill: "white"
|
|
568
|
+
},
|
|
569
|
+
"& .MuiStepIcon-root": {
|
|
570
|
+
color: "#bdbdbd",
|
|
571
|
+
width: "32px",
|
|
572
|
+
height: "32px",
|
|
573
|
+
"&.Mui-active": {
|
|
574
|
+
color: "#27A4E8"
|
|
575
|
+
},
|
|
576
|
+
"&.Mui-completed": {
|
|
577
|
+
color: "#27A4E8"
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"& .MuiStepLabel-label": {
|
|
581
|
+
color: "#6B7C93",
|
|
582
|
+
fontSize: "14px",
|
|
583
|
+
"&.Mui-active": {
|
|
584
|
+
color: "#000000",
|
|
585
|
+
fontWeight: 600
|
|
586
|
+
},
|
|
587
|
+
"&.Mui-completed": {
|
|
588
|
+
color: "#000000"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"& .MuiStepConnector-line": {
|
|
592
|
+
borderColor: "#e0e0e0",
|
|
593
|
+
borderTopWidth: 1
|
|
594
|
+
},
|
|
595
|
+
"& .MuiStepConnector-root.Mui-active .MuiStepConnector-line": {
|
|
596
|
+
borderColor: "#e0e0e0"
|
|
597
|
+
},
|
|
598
|
+
"& .MuiStepConnector-root.Mui-completed .MuiStepConnector-line": {
|
|
599
|
+
borderColor: "#e0e0e0"
|
|
600
|
+
},
|
|
601
|
+
...r
|
|
602
|
+
};
|
|
603
|
+
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.label }) }, l.label)) }) });
|
|
604
|
+
}
|
|
605
|
+
export {
|
|
606
|
+
Ie as Stepper
|
|
607
|
+
};
|