@cgi-learning-hub/ui 1.6.0-dev.1747905856 → 1.6.0-dev.1747921053
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/{Alert-DBgzh1CV.js → Alert-CBW5GoJI.js} +131 -128
- package/dist/{Alert-B42sqOEW.cjs → Alert-DHG4SpUx.cjs} +1 -1
- package/dist/{Autocomplete-vH2Up7_E.js → Autocomplete-BY5PBnFO.js} +8 -7
- package/dist/{Autocomplete-DWREh3mY.cjs → Autocomplete-E2lL4isp.cjs} +4 -4
- package/dist/{CardContent-DaZl2i3G.js → CardContent-BiCWtbyk.js} +1 -1
- package/dist/{CardContent-ji0_AneN.cjs → CardContent-DfNASczU.cjs} +1 -1
- package/dist/{DatePicker-ehvdOpes.cjs → DatePicker-BBFC1Zoi.cjs} +1 -1
- package/dist/{DatePicker-Bw2Q4r7J.js → DatePicker-CwDmetzW.js} +4 -4
- package/dist/{Dialog-D6WzY_HJ.cjs → Dialog-CdrDjE9Y.cjs} +1 -1
- package/dist/{Dialog-TIA9lSzZ.js → Dialog-i7-wUv6w.js} +1 -1
- package/dist/{DialogTitle-3J6aq9qI.cjs → DialogTitle-CjrNCn9F.cjs} +1 -1
- package/dist/{DialogTitle-Dwy3CaSV.js → DialogTitle-DRNVW7R2.js} +1 -1
- package/dist/{Menu-DL9W9Ad_.cjs → Menu-B5k8imF-.cjs} +5 -5
- package/dist/{Menu-B43ouCWx.js → Menu-BBziZ0k7.js} +14 -13
- package/dist/Paper-DWhwBCNx.cjs +2 -0
- package/dist/Paper-fiQZbcci.js +158 -0
- package/dist/{Select-DaVDiPRr.js → Select-B7uzsMmD.js} +1 -1
- package/dist/{Select-AcDK5nam.cjs → Select-C1DzOJfC.cjs} +1 -1
- package/dist/Stepper-DOTvtRRL.js +971 -0
- package/dist/Stepper-Dk1iWstN.cjs +1 -0
- package/dist/{TextField-C8VKBQV3.cjs → TextField-C8gcAU1R.cjs} +1 -1
- package/dist/{TextField-J1kMLPQz.js → TextField-EWjMXgtu.js} +1 -1
- package/dist/ToggleButtonGroup-DcXHH5wq.cjs +138 -0
- package/dist/{ToggleButtonGroup-BLPwuacW.js → ToggleButtonGroup-Ddg6NHao.js} +2721 -3564
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +1 -1
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.es.js +392 -388
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +1 -1
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +1 -1
- package/dist/components/stories/Stepper.stories.cjs.js +1 -0
- package/dist/components/stories/Stepper.stories.d.ts +7 -0
- package/dist/components/stories/Stepper.stories.es.js +161 -0
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/TreeView.stories.cjs.js +1 -1
- package/dist/components/stories/TreeView.stories.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +392 -388
- package/dist/integerPropType-Ched4o4e.cjs +1 -0
- package/dist/integerPropType-D-nm5Xmm.js +31 -0
- package/package.json +1 -1
- package/dist/Paper-984iTz4H.js +0 -186
- package/dist/Paper-Bh9CKUCb.cjs +0 -2
- package/dist/ToggleButtonGroup-D5EDQM0v.cjs +0 -138
|
@@ -0,0 +1,971 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { P as e } from "./index-Sy88PpwE.js";
|
|
3
|
+
import { F as P, G as z, H as T } from "./generateUtilityClasses-DngCqveO.js";
|
|
4
|
+
import { jsxs as D, jsx as b } from "react/jsx-runtime";
|
|
5
|
+
import { u as $, s as S, c as E } from "./DefaultPropsProvider-hFv1J_xl.js";
|
|
6
|
+
import { i as J } from "./integerPropType-D-nm5Xmm.js";
|
|
7
|
+
import { i as ne } from "./isMuiElement-DnSE4qG4.js";
|
|
8
|
+
import { m as V } from "./memoTheme-nmt7i1dS.js";
|
|
9
|
+
import { u as k } from "./useSlot-WWh43uDP.js";
|
|
10
|
+
import { c as K, S as re } from "./createSvgIcon-BlKmtOkV.js";
|
|
11
|
+
import { B as ae } from "./ButtonBase-Chb99sDQ.js";
|
|
12
|
+
import { c as Q } from "./capitalize-BHFotl9B.js";
|
|
13
|
+
const w = /* @__PURE__ */ l.createContext({});
|
|
14
|
+
process.env.NODE_ENV !== "production" && (w.displayName = "StepperContext");
|
|
15
|
+
function He() {
|
|
16
|
+
return l.useContext(w);
|
|
17
|
+
}
|
|
18
|
+
const B = /* @__PURE__ */ l.createContext({});
|
|
19
|
+
process.env.NODE_ENV !== "production" && (B.displayName = "StepContext");
|
|
20
|
+
function Ge() {
|
|
21
|
+
return l.useContext(B);
|
|
22
|
+
}
|
|
23
|
+
function se(t) {
|
|
24
|
+
return z("MuiStep", t);
|
|
25
|
+
}
|
|
26
|
+
const qe = P("MuiStep", ["root", "horizontal", "vertical", "alternativeLabel", "completed"]), le = (t) => {
|
|
27
|
+
const {
|
|
28
|
+
classes: o,
|
|
29
|
+
orientation: n,
|
|
30
|
+
alternativeLabel: r,
|
|
31
|
+
completed: a
|
|
32
|
+
} = t;
|
|
33
|
+
return E({
|
|
34
|
+
root: ["root", n, r && "alternativeLabel", a && "completed"]
|
|
35
|
+
}, se, o);
|
|
36
|
+
}, ie = S("div", {
|
|
37
|
+
name: "MuiStep",
|
|
38
|
+
slot: "Root",
|
|
39
|
+
overridesResolver: (t, o) => {
|
|
40
|
+
const {
|
|
41
|
+
ownerState: n
|
|
42
|
+
} = t;
|
|
43
|
+
return [o.root, o[n.orientation], n.alternativeLabel && o.alternativeLabel, n.completed && o.completed];
|
|
44
|
+
}
|
|
45
|
+
})({
|
|
46
|
+
variants: [{
|
|
47
|
+
props: {
|
|
48
|
+
orientation: "horizontal"
|
|
49
|
+
},
|
|
50
|
+
style: {
|
|
51
|
+
paddingLeft: 8,
|
|
52
|
+
paddingRight: 8
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
props: {
|
|
56
|
+
alternativeLabel: !0
|
|
57
|
+
},
|
|
58
|
+
style: {
|
|
59
|
+
flex: 1,
|
|
60
|
+
position: "relative"
|
|
61
|
+
}
|
|
62
|
+
}]
|
|
63
|
+
}), ce = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
64
|
+
const r = $({
|
|
65
|
+
props: o,
|
|
66
|
+
name: "MuiStep"
|
|
67
|
+
}), {
|
|
68
|
+
active: a,
|
|
69
|
+
children: i,
|
|
70
|
+
className: d,
|
|
71
|
+
component: c = "div",
|
|
72
|
+
completed: u,
|
|
73
|
+
disabled: v,
|
|
74
|
+
expanded: p = !1,
|
|
75
|
+
index: s,
|
|
76
|
+
last: m,
|
|
77
|
+
...x
|
|
78
|
+
} = r, {
|
|
79
|
+
activeStep: y,
|
|
80
|
+
connector: f,
|
|
81
|
+
alternativeLabel: N,
|
|
82
|
+
orientation: M,
|
|
83
|
+
nonLinear: R
|
|
84
|
+
} = l.useContext(w);
|
|
85
|
+
let [C = !1, I = !1, h = !1] = [a, u, v];
|
|
86
|
+
y === s ? C = a !== void 0 ? a : !0 : !R && y > s ? I = u !== void 0 ? u : !0 : !R && y < s && (h = v !== void 0 ? v : !0);
|
|
87
|
+
const U = l.useMemo(() => ({
|
|
88
|
+
index: s,
|
|
89
|
+
last: m,
|
|
90
|
+
expanded: p,
|
|
91
|
+
icon: s + 1,
|
|
92
|
+
active: C,
|
|
93
|
+
completed: I,
|
|
94
|
+
disabled: h
|
|
95
|
+
}), [s, m, p, C, I, h]), L = {
|
|
96
|
+
...r,
|
|
97
|
+
active: C,
|
|
98
|
+
orientation: M,
|
|
99
|
+
alternativeLabel: N,
|
|
100
|
+
completed: I,
|
|
101
|
+
disabled: h,
|
|
102
|
+
expanded: p,
|
|
103
|
+
component: c
|
|
104
|
+
}, O = le(L), j = /* @__PURE__ */ D(ie, {
|
|
105
|
+
as: c,
|
|
106
|
+
className: T(O.root, d),
|
|
107
|
+
ref: n,
|
|
108
|
+
ownerState: L,
|
|
109
|
+
...x,
|
|
110
|
+
children: [f && N && s !== 0 ? f : null, i]
|
|
111
|
+
});
|
|
112
|
+
return /* @__PURE__ */ b(B.Provider, {
|
|
113
|
+
value: U,
|
|
114
|
+
children: f && !N && s !== 0 ? /* @__PURE__ */ D(l.Fragment, {
|
|
115
|
+
children: [f, j]
|
|
116
|
+
}) : j
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
process.env.NODE_ENV !== "production" && (ce.propTypes = {
|
|
120
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
121
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
122
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
123
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
124
|
+
/**
|
|
125
|
+
* Sets the step as active. Is passed to child components.
|
|
126
|
+
*/
|
|
127
|
+
active: e.bool,
|
|
128
|
+
/**
|
|
129
|
+
* Should be `Step` sub-components such as `StepLabel`, `StepContent`.
|
|
130
|
+
*/
|
|
131
|
+
children: e.node,
|
|
132
|
+
/**
|
|
133
|
+
* Override or extend the styles applied to the component.
|
|
134
|
+
*/
|
|
135
|
+
classes: e.object,
|
|
136
|
+
/**
|
|
137
|
+
* @ignore
|
|
138
|
+
*/
|
|
139
|
+
className: e.string,
|
|
140
|
+
/**
|
|
141
|
+
* Mark the step as completed. Is passed to child components.
|
|
142
|
+
*/
|
|
143
|
+
completed: e.bool,
|
|
144
|
+
/**
|
|
145
|
+
* The component used for the root node.
|
|
146
|
+
* Either a string to use a HTML element or a component.
|
|
147
|
+
*/
|
|
148
|
+
component: e.elementType,
|
|
149
|
+
/**
|
|
150
|
+
* If `true`, the step is disabled, will also disable the button if
|
|
151
|
+
* `StepButton` is a child of `Step`. Is passed to child components.
|
|
152
|
+
*/
|
|
153
|
+
disabled: e.bool,
|
|
154
|
+
/**
|
|
155
|
+
* Expand the step.
|
|
156
|
+
* @default false
|
|
157
|
+
*/
|
|
158
|
+
expanded: e.bool,
|
|
159
|
+
/**
|
|
160
|
+
* The position of the step.
|
|
161
|
+
* The prop defaults to the value inherited from the parent Stepper component.
|
|
162
|
+
*/
|
|
163
|
+
index: J,
|
|
164
|
+
/**
|
|
165
|
+
* If `true`, the Step is displayed as rendered last.
|
|
166
|
+
* The prop defaults to the value inherited from the parent Stepper component.
|
|
167
|
+
*/
|
|
168
|
+
last: e.bool,
|
|
169
|
+
/**
|
|
170
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
171
|
+
*/
|
|
172
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
173
|
+
});
|
|
174
|
+
const pe = K(/* @__PURE__ */ b("path", {
|
|
175
|
+
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"
|
|
176
|
+
}), "CheckCircle"), de = K(/* @__PURE__ */ b("path", {
|
|
177
|
+
d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"
|
|
178
|
+
}), "Warning");
|
|
179
|
+
function ue(t) {
|
|
180
|
+
return z("MuiStepIcon", t);
|
|
181
|
+
}
|
|
182
|
+
const F = P("MuiStepIcon", ["root", "active", "completed", "error", "text"]);
|
|
183
|
+
var G;
|
|
184
|
+
const be = (t) => {
|
|
185
|
+
const {
|
|
186
|
+
classes: o,
|
|
187
|
+
active: n,
|
|
188
|
+
completed: r,
|
|
189
|
+
error: a
|
|
190
|
+
} = t;
|
|
191
|
+
return E({
|
|
192
|
+
root: ["root", n && "active", r && "completed", a && "error"],
|
|
193
|
+
text: ["text"]
|
|
194
|
+
}, ue, o);
|
|
195
|
+
}, W = S(re, {
|
|
196
|
+
name: "MuiStepIcon",
|
|
197
|
+
slot: "Root",
|
|
198
|
+
overridesResolver: (t, o) => o.root
|
|
199
|
+
})(V(({
|
|
200
|
+
theme: t
|
|
201
|
+
}) => ({
|
|
202
|
+
display: "block",
|
|
203
|
+
transition: t.transitions.create("color", {
|
|
204
|
+
duration: t.transitions.duration.shortest
|
|
205
|
+
}),
|
|
206
|
+
color: (t.vars || t).palette.text.disabled,
|
|
207
|
+
[`&.${F.completed}`]: {
|
|
208
|
+
color: (t.vars || t).palette.primary.main
|
|
209
|
+
},
|
|
210
|
+
[`&.${F.active}`]: {
|
|
211
|
+
color: (t.vars || t).palette.primary.main
|
|
212
|
+
},
|
|
213
|
+
[`&.${F.error}`]: {
|
|
214
|
+
color: (t.vars || t).palette.error.main
|
|
215
|
+
}
|
|
216
|
+
}))), ve = S("text", {
|
|
217
|
+
name: "MuiStepIcon",
|
|
218
|
+
slot: "Text",
|
|
219
|
+
overridesResolver: (t, o) => o.text
|
|
220
|
+
})(V(({
|
|
221
|
+
theme: t
|
|
222
|
+
}) => ({
|
|
223
|
+
fill: (t.vars || t).palette.primary.contrastText,
|
|
224
|
+
fontSize: t.typography.caption.fontSize,
|
|
225
|
+
fontFamily: t.typography.fontFamily
|
|
226
|
+
}))), X = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
227
|
+
const r = $({
|
|
228
|
+
props: o,
|
|
229
|
+
name: "MuiStepIcon"
|
|
230
|
+
}), {
|
|
231
|
+
active: a = !1,
|
|
232
|
+
className: i,
|
|
233
|
+
completed: d = !1,
|
|
234
|
+
error: c = !1,
|
|
235
|
+
icon: u,
|
|
236
|
+
...v
|
|
237
|
+
} = r, p = {
|
|
238
|
+
...r,
|
|
239
|
+
active: a,
|
|
240
|
+
completed: d,
|
|
241
|
+
error: c
|
|
242
|
+
}, s = be(p);
|
|
243
|
+
if (typeof u == "number" || typeof u == "string") {
|
|
244
|
+
const m = T(i, s.root);
|
|
245
|
+
return c ? /* @__PURE__ */ b(W, {
|
|
246
|
+
as: de,
|
|
247
|
+
className: m,
|
|
248
|
+
ref: n,
|
|
249
|
+
ownerState: p,
|
|
250
|
+
...v
|
|
251
|
+
}) : d ? /* @__PURE__ */ b(W, {
|
|
252
|
+
as: pe,
|
|
253
|
+
className: m,
|
|
254
|
+
ref: n,
|
|
255
|
+
ownerState: p,
|
|
256
|
+
...v
|
|
257
|
+
}) : /* @__PURE__ */ D(W, {
|
|
258
|
+
className: m,
|
|
259
|
+
ref: n,
|
|
260
|
+
ownerState: p,
|
|
261
|
+
...v,
|
|
262
|
+
children: [G || (G = /* @__PURE__ */ b("circle", {
|
|
263
|
+
cx: "12",
|
|
264
|
+
cy: "12",
|
|
265
|
+
r: "12"
|
|
266
|
+
})), /* @__PURE__ */ b(ve, {
|
|
267
|
+
className: s.text,
|
|
268
|
+
x: "12",
|
|
269
|
+
y: "12",
|
|
270
|
+
textAnchor: "middle",
|
|
271
|
+
dominantBaseline: "central",
|
|
272
|
+
ownerState: p,
|
|
273
|
+
children: u
|
|
274
|
+
})]
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
return u;
|
|
278
|
+
});
|
|
279
|
+
process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
280
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
281
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
282
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
283
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
284
|
+
/**
|
|
285
|
+
* Whether this step is active.
|
|
286
|
+
* @default false
|
|
287
|
+
*/
|
|
288
|
+
active: e.bool,
|
|
289
|
+
/**
|
|
290
|
+
* Override or extend the styles applied to the component.
|
|
291
|
+
*/
|
|
292
|
+
classes: e.object,
|
|
293
|
+
/**
|
|
294
|
+
* @ignore
|
|
295
|
+
*/
|
|
296
|
+
className: e.string,
|
|
297
|
+
/**
|
|
298
|
+
* Mark the step as completed. Is passed to child components.
|
|
299
|
+
* @default false
|
|
300
|
+
*/
|
|
301
|
+
completed: e.bool,
|
|
302
|
+
/**
|
|
303
|
+
* If `true`, the step is marked as failed.
|
|
304
|
+
* @default false
|
|
305
|
+
*/
|
|
306
|
+
error: e.bool,
|
|
307
|
+
/**
|
|
308
|
+
* The label displayed in the step icon.
|
|
309
|
+
*/
|
|
310
|
+
icon: e.node,
|
|
311
|
+
/**
|
|
312
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
313
|
+
*/
|
|
314
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
315
|
+
});
|
|
316
|
+
function me(t) {
|
|
317
|
+
return z("MuiStepLabel", t);
|
|
318
|
+
}
|
|
319
|
+
const g = P("MuiStepLabel", ["root", "horizontal", "vertical", "label", "active", "completed", "error", "disabled", "iconContainer", "alternativeLabel", "labelContainer"]), fe = (t) => {
|
|
320
|
+
const {
|
|
321
|
+
classes: o,
|
|
322
|
+
orientation: n,
|
|
323
|
+
active: r,
|
|
324
|
+
completed: a,
|
|
325
|
+
error: i,
|
|
326
|
+
disabled: d,
|
|
327
|
+
alternativeLabel: c
|
|
328
|
+
} = t;
|
|
329
|
+
return E({
|
|
330
|
+
root: ["root", n, i && "error", d && "disabled", c && "alternativeLabel"],
|
|
331
|
+
label: ["label", r && "active", a && "completed", i && "error", d && "disabled", c && "alternativeLabel"],
|
|
332
|
+
iconContainer: ["iconContainer", r && "active", a && "completed", i && "error", d && "disabled", c && "alternativeLabel"],
|
|
333
|
+
labelContainer: ["labelContainer", c && "alternativeLabel"]
|
|
334
|
+
}, me, o);
|
|
335
|
+
}, Se = S("span", {
|
|
336
|
+
name: "MuiStepLabel",
|
|
337
|
+
slot: "Root",
|
|
338
|
+
overridesResolver: (t, o) => {
|
|
339
|
+
const {
|
|
340
|
+
ownerState: n
|
|
341
|
+
} = t;
|
|
342
|
+
return [o.root, o[n.orientation]];
|
|
343
|
+
}
|
|
344
|
+
})({
|
|
345
|
+
display: "flex",
|
|
346
|
+
alignItems: "center",
|
|
347
|
+
[`&.${g.alternativeLabel}`]: {
|
|
348
|
+
flexDirection: "column"
|
|
349
|
+
},
|
|
350
|
+
[`&.${g.disabled}`]: {
|
|
351
|
+
cursor: "default"
|
|
352
|
+
},
|
|
353
|
+
variants: [{
|
|
354
|
+
props: {
|
|
355
|
+
orientation: "vertical"
|
|
356
|
+
},
|
|
357
|
+
style: {
|
|
358
|
+
textAlign: "left",
|
|
359
|
+
padding: "8px 0"
|
|
360
|
+
}
|
|
361
|
+
}]
|
|
362
|
+
}), ye = S("span", {
|
|
363
|
+
name: "MuiStepLabel",
|
|
364
|
+
slot: "Label",
|
|
365
|
+
overridesResolver: (t, o) => o.label
|
|
366
|
+
})(V(({
|
|
367
|
+
theme: t
|
|
368
|
+
}) => ({
|
|
369
|
+
...t.typography.body2,
|
|
370
|
+
display: "block",
|
|
371
|
+
transition: t.transitions.create("color", {
|
|
372
|
+
duration: t.transitions.duration.shortest
|
|
373
|
+
}),
|
|
374
|
+
[`&.${g.active}`]: {
|
|
375
|
+
color: (t.vars || t).palette.text.primary,
|
|
376
|
+
fontWeight: 500
|
|
377
|
+
},
|
|
378
|
+
[`&.${g.completed}`]: {
|
|
379
|
+
color: (t.vars || t).palette.text.primary,
|
|
380
|
+
fontWeight: 500
|
|
381
|
+
},
|
|
382
|
+
[`&.${g.alternativeLabel}`]: {
|
|
383
|
+
marginTop: 16
|
|
384
|
+
},
|
|
385
|
+
[`&.${g.error}`]: {
|
|
386
|
+
color: (t.vars || t).palette.error.main
|
|
387
|
+
}
|
|
388
|
+
}))), Ce = S("span", {
|
|
389
|
+
name: "MuiStepLabel",
|
|
390
|
+
slot: "IconContainer",
|
|
391
|
+
overridesResolver: (t, o) => o.iconContainer
|
|
392
|
+
})({
|
|
393
|
+
flexShrink: 0,
|
|
394
|
+
display: "flex",
|
|
395
|
+
paddingRight: 8,
|
|
396
|
+
[`&.${g.alternativeLabel}`]: {
|
|
397
|
+
paddingRight: 0
|
|
398
|
+
}
|
|
399
|
+
}), xe = S("span", {
|
|
400
|
+
name: "MuiStepLabel",
|
|
401
|
+
slot: "LabelContainer",
|
|
402
|
+
overridesResolver: (t, o) => o.labelContainer
|
|
403
|
+
})(V(({
|
|
404
|
+
theme: t
|
|
405
|
+
}) => ({
|
|
406
|
+
width: "100%",
|
|
407
|
+
color: (t.vars || t).palette.text.secondary,
|
|
408
|
+
[`&.${g.alternativeLabel}`]: {
|
|
409
|
+
textAlign: "center"
|
|
410
|
+
}
|
|
411
|
+
}))), A = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
412
|
+
const r = $({
|
|
413
|
+
props: o,
|
|
414
|
+
name: "MuiStepLabel"
|
|
415
|
+
}), {
|
|
416
|
+
children: a,
|
|
417
|
+
className: i,
|
|
418
|
+
componentsProps: d = {},
|
|
419
|
+
error: c = !1,
|
|
420
|
+
icon: u,
|
|
421
|
+
optional: v,
|
|
422
|
+
slots: p = {},
|
|
423
|
+
slotProps: s = {},
|
|
424
|
+
StepIconComponent: m,
|
|
425
|
+
StepIconProps: x,
|
|
426
|
+
...y
|
|
427
|
+
} = r, {
|
|
428
|
+
alternativeLabel: f,
|
|
429
|
+
orientation: N
|
|
430
|
+
} = l.useContext(w), {
|
|
431
|
+
active: M,
|
|
432
|
+
disabled: R,
|
|
433
|
+
completed: C,
|
|
434
|
+
icon: I
|
|
435
|
+
} = l.useContext(B), h = u || I;
|
|
436
|
+
let U = m;
|
|
437
|
+
h && !U && (U = X);
|
|
438
|
+
const L = {
|
|
439
|
+
...r,
|
|
440
|
+
active: M,
|
|
441
|
+
alternativeLabel: f,
|
|
442
|
+
completed: C,
|
|
443
|
+
disabled: R,
|
|
444
|
+
error: c,
|
|
445
|
+
orientation: N
|
|
446
|
+
}, O = fe(L), j = {
|
|
447
|
+
slots: p,
|
|
448
|
+
slotProps: {
|
|
449
|
+
stepIcon: x,
|
|
450
|
+
...d,
|
|
451
|
+
...s
|
|
452
|
+
}
|
|
453
|
+
}, [Z, ee] = k("root", {
|
|
454
|
+
elementType: Se,
|
|
455
|
+
externalForwardedProps: {
|
|
456
|
+
...j,
|
|
457
|
+
...y
|
|
458
|
+
},
|
|
459
|
+
ownerState: L,
|
|
460
|
+
ref: n,
|
|
461
|
+
className: T(O.root, i)
|
|
462
|
+
}), [te, _] = k("label", {
|
|
463
|
+
elementType: ye,
|
|
464
|
+
externalForwardedProps: j,
|
|
465
|
+
ownerState: L
|
|
466
|
+
}), [H, oe] = k("stepIcon", {
|
|
467
|
+
elementType: U,
|
|
468
|
+
externalForwardedProps: j,
|
|
469
|
+
ownerState: L
|
|
470
|
+
});
|
|
471
|
+
return /* @__PURE__ */ D(Z, {
|
|
472
|
+
...ee,
|
|
473
|
+
children: [h || H ? /* @__PURE__ */ b(Ce, {
|
|
474
|
+
className: O.iconContainer,
|
|
475
|
+
ownerState: L,
|
|
476
|
+
children: /* @__PURE__ */ b(H, {
|
|
477
|
+
completed: C,
|
|
478
|
+
active: M,
|
|
479
|
+
error: c,
|
|
480
|
+
icon: h,
|
|
481
|
+
...oe
|
|
482
|
+
})
|
|
483
|
+
}) : null, /* @__PURE__ */ D(xe, {
|
|
484
|
+
className: O.labelContainer,
|
|
485
|
+
ownerState: L,
|
|
486
|
+
children: [a ? /* @__PURE__ */ b(te, {
|
|
487
|
+
..._,
|
|
488
|
+
className: T(O.label, _ == null ? void 0 : _.className),
|
|
489
|
+
children: a
|
|
490
|
+
}) : null, v]
|
|
491
|
+
})]
|
|
492
|
+
});
|
|
493
|
+
});
|
|
494
|
+
process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
495
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
496
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
497
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
498
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
499
|
+
/**
|
|
500
|
+
* In most cases will simply be a string containing a title for the label.
|
|
501
|
+
*/
|
|
502
|
+
children: e.node,
|
|
503
|
+
/**
|
|
504
|
+
* Override or extend the styles applied to the component.
|
|
505
|
+
*/
|
|
506
|
+
classes: e.object,
|
|
507
|
+
/**
|
|
508
|
+
* @ignore
|
|
509
|
+
*/
|
|
510
|
+
className: e.string,
|
|
511
|
+
/**
|
|
512
|
+
* The props used for each slot inside.
|
|
513
|
+
* @default {}
|
|
514
|
+
* @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.
|
|
515
|
+
*/
|
|
516
|
+
componentsProps: e.shape({
|
|
517
|
+
label: e.object
|
|
518
|
+
}),
|
|
519
|
+
/**
|
|
520
|
+
* If `true`, the step is marked as failed.
|
|
521
|
+
* @default false
|
|
522
|
+
*/
|
|
523
|
+
error: e.bool,
|
|
524
|
+
/**
|
|
525
|
+
* Override the default label of the step icon.
|
|
526
|
+
*/
|
|
527
|
+
icon: e.node,
|
|
528
|
+
/**
|
|
529
|
+
* The optional node to display.
|
|
530
|
+
*/
|
|
531
|
+
optional: e.node,
|
|
532
|
+
/**
|
|
533
|
+
* The props used for each slot inside.
|
|
534
|
+
* @default {}
|
|
535
|
+
*/
|
|
536
|
+
slotProps: e.shape({
|
|
537
|
+
label: e.oneOfType([e.func, e.object]),
|
|
538
|
+
root: e.oneOfType([e.func, e.object]),
|
|
539
|
+
stepIcon: e.oneOfType([e.func, e.object])
|
|
540
|
+
}),
|
|
541
|
+
/**
|
|
542
|
+
* The components used for each slot inside.
|
|
543
|
+
* @default {}
|
|
544
|
+
*/
|
|
545
|
+
slots: e.shape({
|
|
546
|
+
label: e.elementType,
|
|
547
|
+
root: e.elementType,
|
|
548
|
+
stepIcon: e.elementType
|
|
549
|
+
}),
|
|
550
|
+
/**
|
|
551
|
+
* The component to render in place of the [`StepIcon`](https://mui.com/material-ui/api/step-icon/).
|
|
552
|
+
* @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.
|
|
553
|
+
*/
|
|
554
|
+
StepIconComponent: e.elementType,
|
|
555
|
+
/**
|
|
556
|
+
* Props applied to the [`StepIcon`](https://mui.com/material-ui/api/step-icon/) element.
|
|
557
|
+
* @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.
|
|
558
|
+
*/
|
|
559
|
+
StepIconProps: e.object,
|
|
560
|
+
/**
|
|
561
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
562
|
+
*/
|
|
563
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
564
|
+
});
|
|
565
|
+
A.muiName = "StepLabel";
|
|
566
|
+
function Le(t) {
|
|
567
|
+
return z("MuiStepButton", t);
|
|
568
|
+
}
|
|
569
|
+
const q = P("MuiStepButton", ["root", "horizontal", "vertical", "touchRipple"]), he = (t) => {
|
|
570
|
+
const {
|
|
571
|
+
classes: o,
|
|
572
|
+
orientation: n
|
|
573
|
+
} = t;
|
|
574
|
+
return E({
|
|
575
|
+
root: ["root", n],
|
|
576
|
+
touchRipple: ["touchRipple"]
|
|
577
|
+
}, Le, o);
|
|
578
|
+
}, ge = S(ae, {
|
|
579
|
+
name: "MuiStepButton",
|
|
580
|
+
slot: "Root",
|
|
581
|
+
overridesResolver: (t, o) => {
|
|
582
|
+
const {
|
|
583
|
+
ownerState: n
|
|
584
|
+
} = t;
|
|
585
|
+
return [{
|
|
586
|
+
[`& .${q.touchRipple}`]: o.touchRipple
|
|
587
|
+
}, o.root, o[n.orientation]];
|
|
588
|
+
}
|
|
589
|
+
})({
|
|
590
|
+
width: "100%",
|
|
591
|
+
padding: "24px 16px",
|
|
592
|
+
margin: "-24px -16px",
|
|
593
|
+
boxSizing: "content-box",
|
|
594
|
+
[`& .${q.touchRipple}`]: {
|
|
595
|
+
color: "rgba(0, 0, 0, 0.3)"
|
|
596
|
+
},
|
|
597
|
+
variants: [{
|
|
598
|
+
props: {
|
|
599
|
+
orientation: "vertical"
|
|
600
|
+
},
|
|
601
|
+
style: {
|
|
602
|
+
justifyContent: "flex-start",
|
|
603
|
+
padding: "8px",
|
|
604
|
+
margin: "-8px"
|
|
605
|
+
}
|
|
606
|
+
}]
|
|
607
|
+
}), Ne = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
608
|
+
const r = $({
|
|
609
|
+
props: o,
|
|
610
|
+
name: "MuiStepButton"
|
|
611
|
+
}), {
|
|
612
|
+
children: a,
|
|
613
|
+
className: i,
|
|
614
|
+
icon: d,
|
|
615
|
+
optional: c,
|
|
616
|
+
...u
|
|
617
|
+
} = r, {
|
|
618
|
+
disabled: v,
|
|
619
|
+
active: p
|
|
620
|
+
} = l.useContext(B), {
|
|
621
|
+
orientation: s
|
|
622
|
+
} = l.useContext(w), m = {
|
|
623
|
+
...r,
|
|
624
|
+
orientation: s
|
|
625
|
+
}, x = he(m), y = {
|
|
626
|
+
icon: d,
|
|
627
|
+
optional: c
|
|
628
|
+
}, f = ne(a, ["StepLabel"]) ? /* @__PURE__ */ l.cloneElement(a, y) : /* @__PURE__ */ b(A, {
|
|
629
|
+
...y,
|
|
630
|
+
children: a
|
|
631
|
+
});
|
|
632
|
+
return /* @__PURE__ */ b(ge, {
|
|
633
|
+
focusRipple: !0,
|
|
634
|
+
disabled: v,
|
|
635
|
+
TouchRippleProps: {
|
|
636
|
+
className: x.touchRipple
|
|
637
|
+
},
|
|
638
|
+
className: T(x.root, i),
|
|
639
|
+
ref: n,
|
|
640
|
+
ownerState: m,
|
|
641
|
+
"aria-current": p ? "step" : void 0,
|
|
642
|
+
...u,
|
|
643
|
+
children: f
|
|
644
|
+
});
|
|
645
|
+
});
|
|
646
|
+
process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
647
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
648
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
649
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
650
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
651
|
+
/**
|
|
652
|
+
* Can be a `StepLabel` or a node to place inside `StepLabel` as children.
|
|
653
|
+
*/
|
|
654
|
+
children: e.node,
|
|
655
|
+
/**
|
|
656
|
+
* Override or extend the styles applied to the component.
|
|
657
|
+
*/
|
|
658
|
+
classes: e.object,
|
|
659
|
+
/**
|
|
660
|
+
* @ignore
|
|
661
|
+
*/
|
|
662
|
+
className: e.string,
|
|
663
|
+
/**
|
|
664
|
+
* The icon displayed by the step label.
|
|
665
|
+
*/
|
|
666
|
+
icon: e.node,
|
|
667
|
+
/**
|
|
668
|
+
* The optional node to display.
|
|
669
|
+
*/
|
|
670
|
+
optional: e.node,
|
|
671
|
+
/**
|
|
672
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
673
|
+
*/
|
|
674
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
675
|
+
});
|
|
676
|
+
function Re(t) {
|
|
677
|
+
return z("MuiStepper", t);
|
|
678
|
+
}
|
|
679
|
+
const Je = P("MuiStepper", ["root", "horizontal", "vertical", "nonLinear", "alternativeLabel"]);
|
|
680
|
+
function Te(t) {
|
|
681
|
+
return z("MuiStepConnector", t);
|
|
682
|
+
}
|
|
683
|
+
P("MuiStepConnector", ["root", "horizontal", "vertical", "alternativeLabel", "active", "completed", "disabled", "line", "lineHorizontal", "lineVertical"]);
|
|
684
|
+
const we = (t) => {
|
|
685
|
+
const {
|
|
686
|
+
classes: o,
|
|
687
|
+
orientation: n,
|
|
688
|
+
alternativeLabel: r,
|
|
689
|
+
active: a,
|
|
690
|
+
completed: i,
|
|
691
|
+
disabled: d
|
|
692
|
+
} = t, c = {
|
|
693
|
+
root: ["root", n, r && "alternativeLabel", a && "active", i && "completed", d && "disabled"],
|
|
694
|
+
line: ["line", `line${Q(n)}`]
|
|
695
|
+
};
|
|
696
|
+
return E(c, Te, o);
|
|
697
|
+
}, Me = S("div", {
|
|
698
|
+
name: "MuiStepConnector",
|
|
699
|
+
slot: "Root",
|
|
700
|
+
overridesResolver: (t, o) => {
|
|
701
|
+
const {
|
|
702
|
+
ownerState: n
|
|
703
|
+
} = t;
|
|
704
|
+
return [o.root, o[n.orientation], n.alternativeLabel && o.alternativeLabel, n.completed && o.completed];
|
|
705
|
+
}
|
|
706
|
+
})({
|
|
707
|
+
flex: "1 1 auto",
|
|
708
|
+
variants: [{
|
|
709
|
+
props: {
|
|
710
|
+
orientation: "vertical"
|
|
711
|
+
},
|
|
712
|
+
style: {
|
|
713
|
+
marginLeft: 12
|
|
714
|
+
// half icon
|
|
715
|
+
}
|
|
716
|
+
}, {
|
|
717
|
+
props: {
|
|
718
|
+
alternativeLabel: !0
|
|
719
|
+
},
|
|
720
|
+
style: {
|
|
721
|
+
position: "absolute",
|
|
722
|
+
top: 12,
|
|
723
|
+
left: "calc(-50% + 20px)",
|
|
724
|
+
right: "calc(50% + 20px)"
|
|
725
|
+
}
|
|
726
|
+
}]
|
|
727
|
+
}), Ie = S("span", {
|
|
728
|
+
name: "MuiStepConnector",
|
|
729
|
+
slot: "Line",
|
|
730
|
+
overridesResolver: (t, o) => {
|
|
731
|
+
const {
|
|
732
|
+
ownerState: n
|
|
733
|
+
} = t;
|
|
734
|
+
return [o.line, o[`line${Q(n.orientation)}`]];
|
|
735
|
+
}
|
|
736
|
+
})(V(({
|
|
737
|
+
theme: t
|
|
738
|
+
}) => {
|
|
739
|
+
const o = t.palette.mode === "light" ? t.palette.grey[400] : t.palette.grey[600];
|
|
740
|
+
return {
|
|
741
|
+
display: "block",
|
|
742
|
+
borderColor: t.vars ? t.vars.palette.StepConnector.border : o,
|
|
743
|
+
variants: [{
|
|
744
|
+
props: {
|
|
745
|
+
orientation: "horizontal"
|
|
746
|
+
},
|
|
747
|
+
style: {
|
|
748
|
+
borderTopStyle: "solid",
|
|
749
|
+
borderTopWidth: 1
|
|
750
|
+
}
|
|
751
|
+
}, {
|
|
752
|
+
props: {
|
|
753
|
+
orientation: "vertical"
|
|
754
|
+
},
|
|
755
|
+
style: {
|
|
756
|
+
borderLeftStyle: "solid",
|
|
757
|
+
borderLeftWidth: 1,
|
|
758
|
+
minHeight: 24
|
|
759
|
+
}
|
|
760
|
+
}]
|
|
761
|
+
};
|
|
762
|
+
})), Y = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
763
|
+
const r = $({
|
|
764
|
+
props: o,
|
|
765
|
+
name: "MuiStepConnector"
|
|
766
|
+
}), {
|
|
767
|
+
className: a,
|
|
768
|
+
...i
|
|
769
|
+
} = r, {
|
|
770
|
+
alternativeLabel: d,
|
|
771
|
+
orientation: c = "horizontal"
|
|
772
|
+
} = l.useContext(w), {
|
|
773
|
+
active: u,
|
|
774
|
+
disabled: v,
|
|
775
|
+
completed: p
|
|
776
|
+
} = l.useContext(B), s = {
|
|
777
|
+
...r,
|
|
778
|
+
alternativeLabel: d,
|
|
779
|
+
orientation: c,
|
|
780
|
+
active: u,
|
|
781
|
+
completed: p,
|
|
782
|
+
disabled: v
|
|
783
|
+
}, m = we(s);
|
|
784
|
+
return /* @__PURE__ */ b(Me, {
|
|
785
|
+
className: T(m.root, a),
|
|
786
|
+
ref: n,
|
|
787
|
+
ownerState: s,
|
|
788
|
+
...i,
|
|
789
|
+
children: /* @__PURE__ */ b(Ie, {
|
|
790
|
+
className: m.line,
|
|
791
|
+
ownerState: s
|
|
792
|
+
})
|
|
793
|
+
});
|
|
794
|
+
});
|
|
795
|
+
process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
796
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
797
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
798
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
799
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
800
|
+
/**
|
|
801
|
+
* Override or extend the styles applied to the component.
|
|
802
|
+
*/
|
|
803
|
+
classes: e.object,
|
|
804
|
+
/**
|
|
805
|
+
* @ignore
|
|
806
|
+
*/
|
|
807
|
+
className: e.string,
|
|
808
|
+
/**
|
|
809
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
810
|
+
*/
|
|
811
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
812
|
+
});
|
|
813
|
+
const Oe = (t) => {
|
|
814
|
+
const {
|
|
815
|
+
orientation: o,
|
|
816
|
+
nonLinear: n,
|
|
817
|
+
alternativeLabel: r,
|
|
818
|
+
classes: a
|
|
819
|
+
} = t;
|
|
820
|
+
return E({
|
|
821
|
+
root: ["root", o, n && "nonLinear", r && "alternativeLabel"]
|
|
822
|
+
}, Re, a);
|
|
823
|
+
}, je = S("div", {
|
|
824
|
+
name: "MuiStepper",
|
|
825
|
+
slot: "Root",
|
|
826
|
+
overridesResolver: (t, o) => {
|
|
827
|
+
const {
|
|
828
|
+
ownerState: n
|
|
829
|
+
} = t;
|
|
830
|
+
return [o.root, o[n.orientation], n.alternativeLabel && o.alternativeLabel, n.nonLinear && o.nonLinear];
|
|
831
|
+
}
|
|
832
|
+
})({
|
|
833
|
+
display: "flex",
|
|
834
|
+
variants: [{
|
|
835
|
+
props: {
|
|
836
|
+
orientation: "horizontal"
|
|
837
|
+
},
|
|
838
|
+
style: {
|
|
839
|
+
flexDirection: "row",
|
|
840
|
+
alignItems: "center"
|
|
841
|
+
}
|
|
842
|
+
}, {
|
|
843
|
+
props: {
|
|
844
|
+
orientation: "vertical"
|
|
845
|
+
},
|
|
846
|
+
style: {
|
|
847
|
+
flexDirection: "column"
|
|
848
|
+
}
|
|
849
|
+
}, {
|
|
850
|
+
props: {
|
|
851
|
+
alternativeLabel: !0
|
|
852
|
+
},
|
|
853
|
+
style: {
|
|
854
|
+
alignItems: "flex-start"
|
|
855
|
+
}
|
|
856
|
+
}]
|
|
857
|
+
}), Pe = /* @__PURE__ */ b(Y, {}), ze = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
858
|
+
const r = $({
|
|
859
|
+
props: o,
|
|
860
|
+
name: "MuiStepper"
|
|
861
|
+
}), {
|
|
862
|
+
activeStep: a = 0,
|
|
863
|
+
alternativeLabel: i = !1,
|
|
864
|
+
children: d,
|
|
865
|
+
className: c,
|
|
866
|
+
component: u = "div",
|
|
867
|
+
connector: v = Pe,
|
|
868
|
+
nonLinear: p = !1,
|
|
869
|
+
orientation: s = "horizontal",
|
|
870
|
+
...m
|
|
871
|
+
} = r, x = {
|
|
872
|
+
...r,
|
|
873
|
+
nonLinear: p,
|
|
874
|
+
alternativeLabel: i,
|
|
875
|
+
orientation: s,
|
|
876
|
+
component: u
|
|
877
|
+
}, y = Oe(x), f = l.Children.toArray(d).filter(Boolean), N = f.map((R, C) => /* @__PURE__ */ l.cloneElement(R, {
|
|
878
|
+
index: C,
|
|
879
|
+
last: C + 1 === f.length,
|
|
880
|
+
...R.props
|
|
881
|
+
})), M = l.useMemo(() => ({
|
|
882
|
+
activeStep: a,
|
|
883
|
+
alternativeLabel: i,
|
|
884
|
+
connector: v,
|
|
885
|
+
nonLinear: p,
|
|
886
|
+
orientation: s
|
|
887
|
+
}), [a, i, v, p, s]);
|
|
888
|
+
return /* @__PURE__ */ b(w.Provider, {
|
|
889
|
+
value: M,
|
|
890
|
+
children: /* @__PURE__ */ b(je, {
|
|
891
|
+
as: u,
|
|
892
|
+
ownerState: x,
|
|
893
|
+
className: T(y.root, c),
|
|
894
|
+
ref: n,
|
|
895
|
+
...m,
|
|
896
|
+
children: N
|
|
897
|
+
})
|
|
898
|
+
});
|
|
899
|
+
});
|
|
900
|
+
process.env.NODE_ENV !== "production" && (ze.propTypes = {
|
|
901
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
902
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
903
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
904
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
905
|
+
/**
|
|
906
|
+
* Set the active step (zero based index).
|
|
907
|
+
* Set to -1 to disable all the steps.
|
|
908
|
+
* @default 0
|
|
909
|
+
*/
|
|
910
|
+
activeStep: J,
|
|
911
|
+
/**
|
|
912
|
+
* If set to 'true' and orientation is horizontal,
|
|
913
|
+
* then the step label will be positioned under the icon.
|
|
914
|
+
* @default false
|
|
915
|
+
*/
|
|
916
|
+
alternativeLabel: e.bool,
|
|
917
|
+
/**
|
|
918
|
+
* Two or more `<Step />` components.
|
|
919
|
+
*/
|
|
920
|
+
children: e.node,
|
|
921
|
+
/**
|
|
922
|
+
* Override or extend the styles applied to the component.
|
|
923
|
+
*/
|
|
924
|
+
classes: e.object,
|
|
925
|
+
/**
|
|
926
|
+
* @ignore
|
|
927
|
+
*/
|
|
928
|
+
className: e.string,
|
|
929
|
+
/**
|
|
930
|
+
* The component used for the root node.
|
|
931
|
+
* Either a string to use a HTML element or a component.
|
|
932
|
+
*/
|
|
933
|
+
component: e.elementType,
|
|
934
|
+
/**
|
|
935
|
+
* An element to be placed between each step.
|
|
936
|
+
* @default <StepConnector />
|
|
937
|
+
*/
|
|
938
|
+
connector: e.element,
|
|
939
|
+
/**
|
|
940
|
+
* If set the `Stepper` will not assist in controlling steps for linear flow.
|
|
941
|
+
* @default false
|
|
942
|
+
*/
|
|
943
|
+
nonLinear: e.bool,
|
|
944
|
+
/**
|
|
945
|
+
* The component orientation (layout flow direction).
|
|
946
|
+
* @default 'horizontal'
|
|
947
|
+
*/
|
|
948
|
+
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
949
|
+
/**
|
|
950
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
951
|
+
*/
|
|
952
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
953
|
+
});
|
|
954
|
+
export {
|
|
955
|
+
ce as S,
|
|
956
|
+
Ne as a,
|
|
957
|
+
A as b,
|
|
958
|
+
ze as c,
|
|
959
|
+
B as d,
|
|
960
|
+
q as e,
|
|
961
|
+
Le as f,
|
|
962
|
+
se as g,
|
|
963
|
+
g as h,
|
|
964
|
+
me as i,
|
|
965
|
+
Je as j,
|
|
966
|
+
w as k,
|
|
967
|
+
Re as l,
|
|
968
|
+
He as m,
|
|
969
|
+
qe as s,
|
|
970
|
+
Ge as u
|
|
971
|
+
};
|