jcicl 0.0.17 → 0.0.19
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/.chunks/ButtonBase.js +2 -1
- package/.chunks/DefaultPropsProvider.js +10 -10
- package/.chunks/ListContext.js +6 -0
- package/.chunks/Menu.js +489 -628
- package/.chunks/NavLink.js +436 -0
- package/.chunks/NavLinkButton.js +259 -0
- package/.chunks/TransitionGroupContext.js +69 -297
- package/.chunks/emotion-react.browser.esm.js +231 -0
- package/.chunks/index.js +131 -0
- package/.chunks/isHostComponent.js +17 -0
- package/README.md +1 -7
- package/base/Avatar/Avatar/Avatar.d.ts +8 -0
- package/base/Avatar/Avatar/Avatar.js +38 -0
- package/base/Avatar/Avatar/index.js +2 -2
- package/base/Avatar/AvatarWithImage/AvatarWithImage.d.ts +10 -0
- package/{.chunks → base/Avatar/AvatarWithImage}/AvatarWithImage.js +9 -8
- package/base/Avatar/AvatarWithImage/index.js +2 -2
- package/base/Avatar/index.js +3 -3
- package/base/Button/Button.d.ts +7 -0
- package/{.chunks → base/Button}/Button.js +7 -6
- package/base/Button/index.js +2 -2
- package/base/Divider/Divider.d.ts +10 -0
- package/{.chunks → base/Divider}/Divider.js +12 -11
- package/base/Divider/index.js +2 -2
- package/base/Flex/Flex.d.ts +19 -0
- package/{.chunks → base/Flex}/Flex.js +7 -7
- package/base/Flex/index.js +2 -2
- package/base/Grid/Grid.d.ts +14 -0
- package/base/Grid/Grid.js +19 -0
- package/base/Grid/index.js +2 -2
- package/base/Input/Input.d.ts +3 -0
- package/{.chunks → base/Input}/Input.js +21 -18
- package/base/Input/index.js +2 -2
- package/base/index.js +12 -12
- package/composite/ContactCard/ContactCard.d.ts +2 -0
- package/composite/ContactCard/ContactCard.js +1 -0
- package/composite/ContactListItem/ContactListItem.d.ts +1 -0
- package/composite/ContactListItem/ContactListItem.js +1 -0
- package/index.js +19 -17
- package/package.json +1 -1
- package/supercomposite/AppBar/AppBar.d.ts +5 -0
- package/{.chunks → supercomposite/AppBar}/AppBar.js +14 -13
- package/supercomposite/AppBar/index.js +2 -2
- package/supercomposite/AppHeader/AppHeader.d.ts +7 -0
- package/supercomposite/AppHeader/AppHeader.js +31 -0
- package/supercomposite/AppHeader/index.js +2 -2
- package/supercomposite/CompactNav/CompactNav.d.ts +17 -0
- package/{.chunks → supercomposite/CompactNav}/CompactNav.js +14 -12
- package/supercomposite/CompactNav/index.js +2 -2
- package/supercomposite/Nav/Nav.d.ts +13 -0
- package/supercomposite/Nav/Nav.js +626 -0
- package/supercomposite/Nav/index.js +1 -1
- package/supercomposite/Nav/subcomponents/NavItem/NavItem.d.ts +3 -0
- package/supercomposite/Nav/subcomponents/NavItem/NavItem.js +34 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLink.d.ts +3 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLink.js +8 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkButton.d.ts +19 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkButton.js +8 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkText.d.ts +8 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkText.js +425 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavMenu.d.ts +20 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavMenu.js +432 -0
- package/supercomposite/Nav/subcomponents/NavItem/types.d.ts +12 -0
- package/supercomposite/Nav/subcomponents/NavItem/types.js +1 -0
- package/supercomposite/Nav/types.d.ts +2 -0
- package/supercomposite/Nav/types.js +1 -0
- package/supercomposite/index.js +6 -6
- package/templates/AppContainer/AppContainer.d.ts +10 -0
- package/templates/AppContainer/AppContainer.js +73 -0
- package/templates/AppContainer/index.js +2 -2
- package/templates/BasicPage/BasicPage.d.ts +9 -0
- package/templates/BasicPage/BasicPage.js +31 -0
- package/templates/BasicPage/index.js +2 -2
- package/templates/index.js +4 -4
- package/.chunks/AppContainer.js +0 -70
- package/.chunks/AppHeader.js +0 -31
- package/.chunks/Avatar.js +0 -38
- package/.chunks/BasicPage.js +0 -31
- package/.chunks/Grid.js +0 -18
- package/.chunks/Nav.js +0 -2139
package/.chunks/Nav.js
DELETED
|
@@ -1,2139 +0,0 @@
|
|
|
1
|
-
import { jsx as s, jsxs as H, Fragment as $t } from "react/jsx-runtime";
|
|
2
|
-
import * as m from "react";
|
|
3
|
-
import { useState as ft, createElement as Zt } from "react";
|
|
4
|
-
import { n as X, i as It } from "./emotion-styled.browser.esm.js";
|
|
5
|
-
import { c as pt } from "./createSvgIcon.js";
|
|
6
|
-
import z from "../assets/theme.js";
|
|
7
|
-
import { D as ht } from "./Divider.js";
|
|
8
|
-
import { P as e, a as J, g as q, s as V, r as Nt, e as Y, u as K, c as j, b as Q, d as it, h as te } from "./DefaultPropsProvider.js";
|
|
9
|
-
import { e as ee, H as oe, u as mt, g as ne, o as Ot, T as kt, d as re, r as ie, a as lt, M as se, P as ae, b as le, i as ce, L as _, c as Mt, f as xt, h as pe, j as de, k as ue } from "./Menu.js";
|
|
10
|
-
import { m as tt } from "./memoTheme.js";
|
|
11
|
-
import { c as fe } from "./createSimplePaletteValueFilter.js";
|
|
12
|
-
import { B as he } from "./ButtonBase.js";
|
|
13
|
-
import { f as Dt, c as dt, g as me, e as Bt, b as ge } from "./TransitionGroupContext.js";
|
|
14
|
-
function ye(t, o, n) {
|
|
15
|
-
const r = o.getBoundingClientRect(), i = n && n.getBoundingClientRect(), c = Ot(o);
|
|
16
|
-
let a;
|
|
17
|
-
if (o.fakeTransform)
|
|
18
|
-
a = o.fakeTransform;
|
|
19
|
-
else {
|
|
20
|
-
const p = c.getComputedStyle(o);
|
|
21
|
-
a = p.getPropertyValue("-webkit-transform") || p.getPropertyValue("transform");
|
|
22
|
-
}
|
|
23
|
-
let l = 0, d = 0;
|
|
24
|
-
if (a && a !== "none" && typeof a == "string") {
|
|
25
|
-
const p = a.split("(")[1].split(")")[0].split(",");
|
|
26
|
-
l = parseInt(p[4], 10), d = parseInt(p[5], 10);
|
|
27
|
-
}
|
|
28
|
-
return t === "left" ? i ? `translateX(${i.right + l - r.left}px)` : `translateX(${c.innerWidth + l - r.left}px)` : t === "right" ? i ? `translateX(-${r.right - i.left - l}px)` : `translateX(-${r.left + r.width - l}px)` : t === "up" ? i ? `translateY(${i.bottom + d - r.top}px)` : `translateY(${c.innerHeight + d - r.top}px)` : i ? `translateY(-${r.top - i.top + r.height - d}px)` : `translateY(-${r.top + r.height - d}px)`;
|
|
29
|
-
}
|
|
30
|
-
function At(t) {
|
|
31
|
-
return typeof t == "function" ? t() : t;
|
|
32
|
-
}
|
|
33
|
-
function st(t, o, n) {
|
|
34
|
-
const r = At(n), i = ye(t, o, r);
|
|
35
|
-
i && (o.style.webkitTransform = i, o.style.transform = i);
|
|
36
|
-
}
|
|
37
|
-
const zt = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
38
|
-
const r = mt(), i = {
|
|
39
|
-
enter: r.transitions.easing.easeOut,
|
|
40
|
-
exit: r.transitions.easing.sharp
|
|
41
|
-
}, c = {
|
|
42
|
-
enter: r.transitions.duration.enteringScreen,
|
|
43
|
-
exit: r.transitions.duration.leavingScreen
|
|
44
|
-
}, {
|
|
45
|
-
addEndListener: a,
|
|
46
|
-
appear: l = !0,
|
|
47
|
-
children: d,
|
|
48
|
-
container: p,
|
|
49
|
-
direction: g = "down",
|
|
50
|
-
easing: S = i,
|
|
51
|
-
in: b,
|
|
52
|
-
onEnter: y,
|
|
53
|
-
onEntered: h,
|
|
54
|
-
onEntering: x,
|
|
55
|
-
onExit: C,
|
|
56
|
-
onExited: v,
|
|
57
|
-
onExiting: I,
|
|
58
|
-
style: E,
|
|
59
|
-
timeout: k = c,
|
|
60
|
-
// eslint-disable-next-line react/prop-types
|
|
61
|
-
TransitionComponent: F = kt,
|
|
62
|
-
...L
|
|
63
|
-
} = o, w = m.useRef(null), N = dt(ne(d), w, n), M = (u) => (P) => {
|
|
64
|
-
u && (P === void 0 ? u(w.current) : u(w.current, P));
|
|
65
|
-
}, T = M((u, P) => {
|
|
66
|
-
st(g, u, p), ie(u), y && y(u, P);
|
|
67
|
-
}), R = M((u, P) => {
|
|
68
|
-
const nt = lt({
|
|
69
|
-
timeout: k,
|
|
70
|
-
style: E,
|
|
71
|
-
easing: S
|
|
72
|
-
}, {
|
|
73
|
-
mode: "enter"
|
|
74
|
-
});
|
|
75
|
-
u.style.webkitTransition = r.transitions.create("-webkit-transform", {
|
|
76
|
-
...nt
|
|
77
|
-
}), u.style.transition = r.transitions.create("transform", {
|
|
78
|
-
...nt
|
|
79
|
-
}), u.style.webkitTransform = "none", u.style.transform = "none", x && x(u, P);
|
|
80
|
-
}), D = M(h), $ = M(I), O = M((u) => {
|
|
81
|
-
const P = lt({
|
|
82
|
-
timeout: k,
|
|
83
|
-
style: E,
|
|
84
|
-
easing: S
|
|
85
|
-
}, {
|
|
86
|
-
mode: "exit"
|
|
87
|
-
});
|
|
88
|
-
u.style.webkitTransition = r.transitions.create("-webkit-transform", P), u.style.transition = r.transitions.create("transform", P), st(g, u, p), C && C(u);
|
|
89
|
-
}), B = M((u) => {
|
|
90
|
-
u.style.webkitTransition = "", u.style.transition = "", v && v(u);
|
|
91
|
-
}), W = (u) => {
|
|
92
|
-
a && a(w.current, u);
|
|
93
|
-
}, U = m.useCallback(() => {
|
|
94
|
-
w.current && st(g, w.current, p);
|
|
95
|
-
}, [g, p]);
|
|
96
|
-
return m.useEffect(() => {
|
|
97
|
-
if (b || g === "down" || g === "right")
|
|
98
|
-
return;
|
|
99
|
-
const u = re(() => {
|
|
100
|
-
w.current && st(g, w.current, p);
|
|
101
|
-
}), P = Ot(w.current);
|
|
102
|
-
return P.addEventListener("resize", u), () => {
|
|
103
|
-
u.clear(), P.removeEventListener("resize", u);
|
|
104
|
-
};
|
|
105
|
-
}, [g, b, p]), m.useEffect(() => {
|
|
106
|
-
b || U();
|
|
107
|
-
}, [b, U]), /* @__PURE__ */ s(F, {
|
|
108
|
-
nodeRef: w,
|
|
109
|
-
onEnter: T,
|
|
110
|
-
onEntered: D,
|
|
111
|
-
onEntering: R,
|
|
112
|
-
onExit: O,
|
|
113
|
-
onExited: B,
|
|
114
|
-
onExiting: $,
|
|
115
|
-
addEndListener: W,
|
|
116
|
-
appear: l,
|
|
117
|
-
in: b,
|
|
118
|
-
timeout: k,
|
|
119
|
-
...L,
|
|
120
|
-
children: (u, P) => /* @__PURE__ */ m.cloneElement(d, {
|
|
121
|
-
ref: N,
|
|
122
|
-
style: {
|
|
123
|
-
visibility: u === "exited" && !b ? "hidden" : void 0,
|
|
124
|
-
...E,
|
|
125
|
-
...d.props.style
|
|
126
|
-
},
|
|
127
|
-
...P
|
|
128
|
-
})
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
process.env.NODE_ENV !== "production" && (zt.propTypes = {
|
|
132
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
133
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
134
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
135
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
136
|
-
/**
|
|
137
|
-
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
138
|
-
* node and a done callback. Allows for more fine grained transition end
|
|
139
|
-
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
140
|
-
*/
|
|
141
|
-
addEndListener: e.func,
|
|
142
|
-
/**
|
|
143
|
-
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
144
|
-
* Set this to `false` to disable this behavior.
|
|
145
|
-
* @default true
|
|
146
|
-
*/
|
|
147
|
-
appear: e.bool,
|
|
148
|
-
/**
|
|
149
|
-
* A single child content element.
|
|
150
|
-
*/
|
|
151
|
-
children: ee.isRequired,
|
|
152
|
-
/**
|
|
153
|
-
* An HTML element, or a function that returns one.
|
|
154
|
-
* It's used to set the container the Slide is transitioning from.
|
|
155
|
-
*/
|
|
156
|
-
container: Dt(e.oneOfType([oe, e.func]), (t) => {
|
|
157
|
-
if (t.open) {
|
|
158
|
-
const o = At(t.container);
|
|
159
|
-
if (o && o.nodeType === 1) {
|
|
160
|
-
const n = o.getBoundingClientRect();
|
|
161
|
-
if (process.env.NODE_ENV !== "test" && n.top === 0 && n.left === 0 && n.right === 0 && n.bottom === 0)
|
|
162
|
-
return new Error(["MUI: The `container` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
163
|
-
`));
|
|
164
|
-
} else if (!o || typeof o.getBoundingClientRect != "function" || o.contextElement != null && o.contextElement.nodeType !== 1)
|
|
165
|
-
return new Error(["MUI: The `container` prop provided to the component is invalid.", "It should be an HTML element instance."].join(`
|
|
166
|
-
`));
|
|
167
|
-
}
|
|
168
|
-
return null;
|
|
169
|
-
}),
|
|
170
|
-
/**
|
|
171
|
-
* Direction the child node will enter from.
|
|
172
|
-
* @default 'down'
|
|
173
|
-
*/
|
|
174
|
-
direction: e.oneOf(["down", "left", "right", "up"]),
|
|
175
|
-
/**
|
|
176
|
-
* The transition timing function.
|
|
177
|
-
* You may specify a single easing or a object containing enter and exit values.
|
|
178
|
-
* @default {
|
|
179
|
-
* enter: theme.transitions.easing.easeOut,
|
|
180
|
-
* exit: theme.transitions.easing.sharp,
|
|
181
|
-
* }
|
|
182
|
-
*/
|
|
183
|
-
easing: e.oneOfType([e.shape({
|
|
184
|
-
enter: e.string,
|
|
185
|
-
exit: e.string
|
|
186
|
-
}), e.string]),
|
|
187
|
-
/**
|
|
188
|
-
* If `true`, the component will transition in.
|
|
189
|
-
*/
|
|
190
|
-
in: e.bool,
|
|
191
|
-
/**
|
|
192
|
-
* @ignore
|
|
193
|
-
*/
|
|
194
|
-
onEnter: e.func,
|
|
195
|
-
/**
|
|
196
|
-
* @ignore
|
|
197
|
-
*/
|
|
198
|
-
onEntered: e.func,
|
|
199
|
-
/**
|
|
200
|
-
* @ignore
|
|
201
|
-
*/
|
|
202
|
-
onEntering: e.func,
|
|
203
|
-
/**
|
|
204
|
-
* @ignore
|
|
205
|
-
*/
|
|
206
|
-
onExit: e.func,
|
|
207
|
-
/**
|
|
208
|
-
* @ignore
|
|
209
|
-
*/
|
|
210
|
-
onExited: e.func,
|
|
211
|
-
/**
|
|
212
|
-
* @ignore
|
|
213
|
-
*/
|
|
214
|
-
onExiting: e.func,
|
|
215
|
-
/**
|
|
216
|
-
* @ignore
|
|
217
|
-
*/
|
|
218
|
-
style: e.object,
|
|
219
|
-
/**
|
|
220
|
-
* The duration for the transition, in milliseconds.
|
|
221
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
222
|
-
* @default {
|
|
223
|
-
* enter: theme.transitions.duration.enteringScreen,
|
|
224
|
-
* exit: theme.transitions.duration.leavingScreen,
|
|
225
|
-
* }
|
|
226
|
-
*/
|
|
227
|
-
timeout: e.oneOfType([e.number, e.shape({
|
|
228
|
-
appear: e.number,
|
|
229
|
-
enter: e.number,
|
|
230
|
-
exit: e.number
|
|
231
|
-
})])
|
|
232
|
-
});
|
|
233
|
-
function be(t) {
|
|
234
|
-
return J("MuiDrawer", t);
|
|
235
|
-
}
|
|
236
|
-
q("MuiDrawer", ["root", "docked", "paper", "paperAnchorLeft", "paperAnchorRight", "paperAnchorTop", "paperAnchorBottom", "paperAnchorDockedLeft", "paperAnchorDockedRight", "paperAnchorDockedTop", "paperAnchorDockedBottom", "modal"]);
|
|
237
|
-
const jt = (t, o) => {
|
|
238
|
-
const {
|
|
239
|
-
ownerState: n
|
|
240
|
-
} = t;
|
|
241
|
-
return [o.root, (n.variant === "permanent" || n.variant === "persistent") && o.docked, o.modal];
|
|
242
|
-
}, xe = (t) => {
|
|
243
|
-
const {
|
|
244
|
-
classes: o,
|
|
245
|
-
anchor: n,
|
|
246
|
-
variant: r
|
|
247
|
-
} = t, i = {
|
|
248
|
-
root: ["root"],
|
|
249
|
-
docked: [(r === "permanent" || r === "persistent") && "docked"],
|
|
250
|
-
modal: ["modal"],
|
|
251
|
-
paper: ["paper", `paperAnchor${Y(n)}`, r !== "temporary" && `paperAnchorDocked${Y(n)}`]
|
|
252
|
-
};
|
|
253
|
-
return Q(i, be, o);
|
|
254
|
-
}, ve = V(se, {
|
|
255
|
-
name: "MuiDrawer",
|
|
256
|
-
slot: "Root",
|
|
257
|
-
overridesResolver: jt
|
|
258
|
-
})(tt(({
|
|
259
|
-
theme: t
|
|
260
|
-
}) => ({
|
|
261
|
-
zIndex: (t.vars || t).zIndex.drawer
|
|
262
|
-
}))), vt = V("div", {
|
|
263
|
-
shouldForwardProp: Nt,
|
|
264
|
-
name: "MuiDrawer",
|
|
265
|
-
slot: "Docked",
|
|
266
|
-
skipVariantsResolver: !1,
|
|
267
|
-
overridesResolver: jt
|
|
268
|
-
})({
|
|
269
|
-
flex: "0 0 auto"
|
|
270
|
-
}), we = V(ae, {
|
|
271
|
-
name: "MuiDrawer",
|
|
272
|
-
slot: "Paper",
|
|
273
|
-
overridesResolver: (t, o) => {
|
|
274
|
-
const {
|
|
275
|
-
ownerState: n
|
|
276
|
-
} = t;
|
|
277
|
-
return [o.paper, o[`paperAnchor${Y(n.anchor)}`], n.variant !== "temporary" && o[`paperAnchorDocked${Y(n.anchor)}`]];
|
|
278
|
-
}
|
|
279
|
-
})(tt(({
|
|
280
|
-
theme: t
|
|
281
|
-
}) => ({
|
|
282
|
-
overflowY: "auto",
|
|
283
|
-
display: "flex",
|
|
284
|
-
flexDirection: "column",
|
|
285
|
-
height: "100%",
|
|
286
|
-
flex: "1 0 auto",
|
|
287
|
-
zIndex: (t.vars || t).zIndex.drawer,
|
|
288
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
289
|
-
WebkitOverflowScrolling: "touch",
|
|
290
|
-
// temporary style
|
|
291
|
-
position: "fixed",
|
|
292
|
-
top: 0,
|
|
293
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
294
|
-
// At some point, it would be better to keep it for keyboard users.
|
|
295
|
-
// :focus-ring CSS pseudo-class will help.
|
|
296
|
-
outline: 0,
|
|
297
|
-
variants: [{
|
|
298
|
-
props: {
|
|
299
|
-
anchor: "left"
|
|
300
|
-
},
|
|
301
|
-
style: {
|
|
302
|
-
left: 0
|
|
303
|
-
}
|
|
304
|
-
}, {
|
|
305
|
-
props: {
|
|
306
|
-
anchor: "top"
|
|
307
|
-
},
|
|
308
|
-
style: {
|
|
309
|
-
top: 0,
|
|
310
|
-
left: 0,
|
|
311
|
-
right: 0,
|
|
312
|
-
height: "auto",
|
|
313
|
-
maxHeight: "100%"
|
|
314
|
-
}
|
|
315
|
-
}, {
|
|
316
|
-
props: {
|
|
317
|
-
anchor: "right"
|
|
318
|
-
},
|
|
319
|
-
style: {
|
|
320
|
-
right: 0
|
|
321
|
-
}
|
|
322
|
-
}, {
|
|
323
|
-
props: {
|
|
324
|
-
anchor: "bottom"
|
|
325
|
-
},
|
|
326
|
-
style: {
|
|
327
|
-
top: "auto",
|
|
328
|
-
left: 0,
|
|
329
|
-
bottom: 0,
|
|
330
|
-
right: 0,
|
|
331
|
-
height: "auto",
|
|
332
|
-
maxHeight: "100%"
|
|
333
|
-
}
|
|
334
|
-
}, {
|
|
335
|
-
props: ({
|
|
336
|
-
ownerState: o
|
|
337
|
-
}) => o.anchor === "left" && o.variant !== "temporary",
|
|
338
|
-
style: {
|
|
339
|
-
borderRight: `1px solid ${(t.vars || t).palette.divider}`
|
|
340
|
-
}
|
|
341
|
-
}, {
|
|
342
|
-
props: ({
|
|
343
|
-
ownerState: o
|
|
344
|
-
}) => o.anchor === "top" && o.variant !== "temporary",
|
|
345
|
-
style: {
|
|
346
|
-
borderBottom: `1px solid ${(t.vars || t).palette.divider}`
|
|
347
|
-
}
|
|
348
|
-
}, {
|
|
349
|
-
props: ({
|
|
350
|
-
ownerState: o
|
|
351
|
-
}) => o.anchor === "right" && o.variant !== "temporary",
|
|
352
|
-
style: {
|
|
353
|
-
borderLeft: `1px solid ${(t.vars || t).palette.divider}`
|
|
354
|
-
}
|
|
355
|
-
}, {
|
|
356
|
-
props: ({
|
|
357
|
-
ownerState: o
|
|
358
|
-
}) => o.anchor === "bottom" && o.variant !== "temporary",
|
|
359
|
-
style: {
|
|
360
|
-
borderTop: `1px solid ${(t.vars || t).palette.divider}`
|
|
361
|
-
}
|
|
362
|
-
}]
|
|
363
|
-
}))), Vt = {
|
|
364
|
-
left: "right",
|
|
365
|
-
right: "left",
|
|
366
|
-
top: "down",
|
|
367
|
-
bottom: "up"
|
|
368
|
-
};
|
|
369
|
-
function Ce(t) {
|
|
370
|
-
return ["left", "right"].includes(t);
|
|
371
|
-
}
|
|
372
|
-
function Te({
|
|
373
|
-
direction: t
|
|
374
|
-
}, o) {
|
|
375
|
-
return t === "rtl" && Ce(o) ? Vt[o] : o;
|
|
376
|
-
}
|
|
377
|
-
const Ft = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
378
|
-
const r = K({
|
|
379
|
-
props: o,
|
|
380
|
-
name: "MuiDrawer"
|
|
381
|
-
}), i = mt(), c = le(), a = {
|
|
382
|
-
enter: i.transitions.duration.enteringScreen,
|
|
383
|
-
exit: i.transitions.duration.leavingScreen
|
|
384
|
-
}, {
|
|
385
|
-
anchor: l = "left",
|
|
386
|
-
BackdropProps: d,
|
|
387
|
-
children: p,
|
|
388
|
-
className: g,
|
|
389
|
-
elevation: S = 16,
|
|
390
|
-
hideBackdrop: b = !1,
|
|
391
|
-
ModalProps: {
|
|
392
|
-
BackdropProps: y,
|
|
393
|
-
...h
|
|
394
|
-
} = {},
|
|
395
|
-
onClose: x,
|
|
396
|
-
open: C = !1,
|
|
397
|
-
PaperProps: v = {},
|
|
398
|
-
SlideProps: I,
|
|
399
|
-
// eslint-disable-next-line react/prop-types
|
|
400
|
-
TransitionComponent: E = zt,
|
|
401
|
-
transitionDuration: k = a,
|
|
402
|
-
variant: F = "temporary",
|
|
403
|
-
...L
|
|
404
|
-
} = r, w = m.useRef(!1);
|
|
405
|
-
m.useEffect(() => {
|
|
406
|
-
w.current = !0;
|
|
407
|
-
}, []);
|
|
408
|
-
const N = Te({
|
|
409
|
-
direction: c ? "rtl" : "ltr"
|
|
410
|
-
}, l), T = {
|
|
411
|
-
...r,
|
|
412
|
-
anchor: l,
|
|
413
|
-
elevation: S,
|
|
414
|
-
open: C,
|
|
415
|
-
variant: F,
|
|
416
|
-
...L
|
|
417
|
-
}, R = xe(T), D = /* @__PURE__ */ s(we, {
|
|
418
|
-
elevation: F === "temporary" ? S : 0,
|
|
419
|
-
square: !0,
|
|
420
|
-
...v,
|
|
421
|
-
className: j(R.paper, v.className),
|
|
422
|
-
ownerState: T,
|
|
423
|
-
children: p
|
|
424
|
-
});
|
|
425
|
-
if (F === "permanent")
|
|
426
|
-
return /* @__PURE__ */ s(vt, {
|
|
427
|
-
className: j(R.root, R.docked, g),
|
|
428
|
-
ownerState: T,
|
|
429
|
-
ref: n,
|
|
430
|
-
...L,
|
|
431
|
-
children: D
|
|
432
|
-
});
|
|
433
|
-
const $ = /* @__PURE__ */ s(E, {
|
|
434
|
-
in: C,
|
|
435
|
-
direction: Vt[N],
|
|
436
|
-
timeout: k,
|
|
437
|
-
appear: w.current,
|
|
438
|
-
...I,
|
|
439
|
-
children: D
|
|
440
|
-
});
|
|
441
|
-
return F === "persistent" ? /* @__PURE__ */ s(vt, {
|
|
442
|
-
className: j(R.root, R.docked, g),
|
|
443
|
-
ownerState: T,
|
|
444
|
-
ref: n,
|
|
445
|
-
...L,
|
|
446
|
-
children: $
|
|
447
|
-
}) : /* @__PURE__ */ s(ve, {
|
|
448
|
-
BackdropProps: {
|
|
449
|
-
...d,
|
|
450
|
-
...y,
|
|
451
|
-
transitionDuration: k
|
|
452
|
-
},
|
|
453
|
-
className: j(R.root, R.modal, g),
|
|
454
|
-
open: C,
|
|
455
|
-
ownerState: T,
|
|
456
|
-
onClose: x,
|
|
457
|
-
hideBackdrop: b,
|
|
458
|
-
ref: n,
|
|
459
|
-
...L,
|
|
460
|
-
...h,
|
|
461
|
-
children: $
|
|
462
|
-
});
|
|
463
|
-
});
|
|
464
|
-
process.env.NODE_ENV !== "production" && (Ft.propTypes = {
|
|
465
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
466
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
467
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
468
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
469
|
-
/**
|
|
470
|
-
* Side from which the drawer will appear.
|
|
471
|
-
* @default 'left'
|
|
472
|
-
*/
|
|
473
|
-
anchor: e.oneOf(["bottom", "left", "right", "top"]),
|
|
474
|
-
/**
|
|
475
|
-
* @ignore
|
|
476
|
-
*/
|
|
477
|
-
BackdropProps: e.object,
|
|
478
|
-
/**
|
|
479
|
-
* The content of the component.
|
|
480
|
-
*/
|
|
481
|
-
children: e.node,
|
|
482
|
-
/**
|
|
483
|
-
* Override or extend the styles applied to the component.
|
|
484
|
-
*/
|
|
485
|
-
classes: e.object,
|
|
486
|
-
/**
|
|
487
|
-
* @ignore
|
|
488
|
-
*/
|
|
489
|
-
className: e.string,
|
|
490
|
-
/**
|
|
491
|
-
* The elevation of the drawer.
|
|
492
|
-
* @default 16
|
|
493
|
-
*/
|
|
494
|
-
elevation: ce,
|
|
495
|
-
/**
|
|
496
|
-
* If `true`, the backdrop is not rendered.
|
|
497
|
-
* @default false
|
|
498
|
-
*/
|
|
499
|
-
hideBackdrop: e.bool,
|
|
500
|
-
/**
|
|
501
|
-
* Props applied to the [`Modal`](https://mui.com/material-ui/api/modal/) element.
|
|
502
|
-
* @default {}
|
|
503
|
-
*/
|
|
504
|
-
ModalProps: e.object,
|
|
505
|
-
/**
|
|
506
|
-
* Callback fired when the component requests to be closed.
|
|
507
|
-
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
508
|
-
*
|
|
509
|
-
* @param {object} event The event source of the callback.
|
|
510
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
511
|
-
*/
|
|
512
|
-
onClose: e.func,
|
|
513
|
-
/**
|
|
514
|
-
* If `true`, the component is shown.
|
|
515
|
-
* @default false
|
|
516
|
-
*/
|
|
517
|
-
open: e.bool,
|
|
518
|
-
/**
|
|
519
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
520
|
-
* @default {}
|
|
521
|
-
*/
|
|
522
|
-
PaperProps: e.object,
|
|
523
|
-
/**
|
|
524
|
-
* Props applied to the [`Slide`](https://mui.com/material-ui/api/slide/) element.
|
|
525
|
-
*/
|
|
526
|
-
SlideProps: e.object,
|
|
527
|
-
/**
|
|
528
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
529
|
-
*/
|
|
530
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
531
|
-
/**
|
|
532
|
-
* The duration for the transition, in milliseconds.
|
|
533
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
534
|
-
* @default {
|
|
535
|
-
* enter: theme.transitions.duration.enteringScreen,
|
|
536
|
-
* exit: theme.transitions.duration.leavingScreen,
|
|
537
|
-
* }
|
|
538
|
-
*/
|
|
539
|
-
transitionDuration: e.oneOfType([e.number, e.shape({
|
|
540
|
-
appear: e.number,
|
|
541
|
-
enter: e.number,
|
|
542
|
-
exit: e.number
|
|
543
|
-
})]),
|
|
544
|
-
/**
|
|
545
|
-
* The variant to use.
|
|
546
|
-
* @default 'temporary'
|
|
547
|
-
*/
|
|
548
|
-
variant: e.oneOf(["permanent", "persistent", "temporary"])
|
|
549
|
-
});
|
|
550
|
-
function Ee(t) {
|
|
551
|
-
return J("MuiListItem", t);
|
|
552
|
-
}
|
|
553
|
-
q("MuiListItem", ["root", "container", "dense", "alignItemsFlexStart", "divider", "gutters", "padding", "secondaryAction"]);
|
|
554
|
-
function Se(t) {
|
|
555
|
-
return J("MuiListItemButton", t);
|
|
556
|
-
}
|
|
557
|
-
const Z = q("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]), Re = (t, o) => {
|
|
558
|
-
const {
|
|
559
|
-
ownerState: n
|
|
560
|
-
} = t;
|
|
561
|
-
return [o.root, n.dense && o.dense, n.alignItems === "flex-start" && o.alignItemsFlexStart, n.divider && o.divider, !n.disableGutters && o.gutters];
|
|
562
|
-
}, Pe = (t) => {
|
|
563
|
-
const {
|
|
564
|
-
alignItems: o,
|
|
565
|
-
classes: n,
|
|
566
|
-
dense: r,
|
|
567
|
-
disabled: i,
|
|
568
|
-
disableGutters: c,
|
|
569
|
-
divider: a,
|
|
570
|
-
selected: l
|
|
571
|
-
} = t, p = Q({
|
|
572
|
-
root: ["root", r && "dense", !c && "gutters", a && "divider", i && "disabled", o === "flex-start" && "alignItemsFlexStart", l && "selected"]
|
|
573
|
-
}, Se, n);
|
|
574
|
-
return {
|
|
575
|
-
...n,
|
|
576
|
-
...p
|
|
577
|
-
};
|
|
578
|
-
}, Le = V(he, {
|
|
579
|
-
shouldForwardProp: (t) => Nt(t) || t === "classes",
|
|
580
|
-
name: "MuiListItemButton",
|
|
581
|
-
slot: "Root",
|
|
582
|
-
overridesResolver: Re
|
|
583
|
-
})(tt(({
|
|
584
|
-
theme: t
|
|
585
|
-
}) => ({
|
|
586
|
-
display: "flex",
|
|
587
|
-
flexGrow: 1,
|
|
588
|
-
justifyContent: "flex-start",
|
|
589
|
-
alignItems: "center",
|
|
590
|
-
position: "relative",
|
|
591
|
-
textDecoration: "none",
|
|
592
|
-
minWidth: 0,
|
|
593
|
-
boxSizing: "border-box",
|
|
594
|
-
textAlign: "left",
|
|
595
|
-
paddingTop: 8,
|
|
596
|
-
paddingBottom: 8,
|
|
597
|
-
transition: t.transitions.create("background-color", {
|
|
598
|
-
duration: t.transitions.duration.shortest
|
|
599
|
-
}),
|
|
600
|
-
"&:hover": {
|
|
601
|
-
textDecoration: "none",
|
|
602
|
-
backgroundColor: (t.vars || t).palette.action.hover,
|
|
603
|
-
// Reset on touch devices, it doesn't add specificity
|
|
604
|
-
"@media (hover: none)": {
|
|
605
|
-
backgroundColor: "transparent"
|
|
606
|
-
}
|
|
607
|
-
},
|
|
608
|
-
[`&.${Z.selected}`]: {
|
|
609
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : it(t.palette.primary.main, t.palette.action.selectedOpacity),
|
|
610
|
-
[`&.${Z.focusVisible}`]: {
|
|
611
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : it(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
612
|
-
}
|
|
613
|
-
},
|
|
614
|
-
[`&.${Z.selected}:hover`]: {
|
|
615
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : it(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
|
|
616
|
-
// Reset on touch devices, it doesn't add specificity
|
|
617
|
-
"@media (hover: none)": {
|
|
618
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : it(t.palette.primary.main, t.palette.action.selectedOpacity)
|
|
619
|
-
}
|
|
620
|
-
},
|
|
621
|
-
[`&.${Z.focusVisible}`]: {
|
|
622
|
-
backgroundColor: (t.vars || t).palette.action.focus
|
|
623
|
-
},
|
|
624
|
-
[`&.${Z.disabled}`]: {
|
|
625
|
-
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
626
|
-
},
|
|
627
|
-
variants: [{
|
|
628
|
-
props: ({
|
|
629
|
-
ownerState: o
|
|
630
|
-
}) => o.divider,
|
|
631
|
-
style: {
|
|
632
|
-
borderBottom: `1px solid ${(t.vars || t).palette.divider}`,
|
|
633
|
-
backgroundClip: "padding-box"
|
|
634
|
-
}
|
|
635
|
-
}, {
|
|
636
|
-
props: {
|
|
637
|
-
alignItems: "flex-start"
|
|
638
|
-
},
|
|
639
|
-
style: {
|
|
640
|
-
alignItems: "flex-start"
|
|
641
|
-
}
|
|
642
|
-
}, {
|
|
643
|
-
props: ({
|
|
644
|
-
ownerState: o
|
|
645
|
-
}) => !o.disableGutters,
|
|
646
|
-
style: {
|
|
647
|
-
paddingLeft: 16,
|
|
648
|
-
paddingRight: 16
|
|
649
|
-
}
|
|
650
|
-
}, {
|
|
651
|
-
props: ({
|
|
652
|
-
ownerState: o
|
|
653
|
-
}) => o.dense,
|
|
654
|
-
style: {
|
|
655
|
-
paddingTop: 4,
|
|
656
|
-
paddingBottom: 4
|
|
657
|
-
}
|
|
658
|
-
}]
|
|
659
|
-
}))), Wt = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
660
|
-
const r = K({
|
|
661
|
-
props: o,
|
|
662
|
-
name: "MuiListItemButton"
|
|
663
|
-
}), {
|
|
664
|
-
alignItems: i = "center",
|
|
665
|
-
autoFocus: c = !1,
|
|
666
|
-
component: a = "div",
|
|
667
|
-
children: l,
|
|
668
|
-
dense: d = !1,
|
|
669
|
-
disableGutters: p = !1,
|
|
670
|
-
divider: g = !1,
|
|
671
|
-
focusVisibleClassName: S,
|
|
672
|
-
selected: b = !1,
|
|
673
|
-
className: y,
|
|
674
|
-
...h
|
|
675
|
-
} = r, x = m.useContext(_), C = m.useMemo(() => ({
|
|
676
|
-
dense: d || x.dense || !1,
|
|
677
|
-
alignItems: i,
|
|
678
|
-
disableGutters: p
|
|
679
|
-
}), [i, x.dense, d, p]), v = m.useRef(null);
|
|
680
|
-
me(() => {
|
|
681
|
-
c && (v.current ? v.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."));
|
|
682
|
-
}, [c]);
|
|
683
|
-
const I = {
|
|
684
|
-
...r,
|
|
685
|
-
alignItems: i,
|
|
686
|
-
dense: C.dense,
|
|
687
|
-
disableGutters: p,
|
|
688
|
-
divider: g,
|
|
689
|
-
selected: b
|
|
690
|
-
}, E = Pe(I), k = dt(v, n);
|
|
691
|
-
return /* @__PURE__ */ s(_.Provider, {
|
|
692
|
-
value: C,
|
|
693
|
-
children: /* @__PURE__ */ s(Le, {
|
|
694
|
-
ref: k,
|
|
695
|
-
href: h.href || h.to,
|
|
696
|
-
component: (h.href || h.to) && a === "div" ? "button" : a,
|
|
697
|
-
focusVisibleClassName: j(E.focusVisible, S),
|
|
698
|
-
ownerState: I,
|
|
699
|
-
className: j(E.root, y),
|
|
700
|
-
...h,
|
|
701
|
-
classes: E,
|
|
702
|
-
children: l
|
|
703
|
-
})
|
|
704
|
-
});
|
|
705
|
-
});
|
|
706
|
-
process.env.NODE_ENV !== "production" && (Wt.propTypes = {
|
|
707
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
708
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
709
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
710
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
711
|
-
/**
|
|
712
|
-
* Defines the `align-items` style property.
|
|
713
|
-
* @default 'center'
|
|
714
|
-
*/
|
|
715
|
-
alignItems: e.oneOf(["center", "flex-start"]),
|
|
716
|
-
/**
|
|
717
|
-
* If `true`, the list item is focused during the first mount.
|
|
718
|
-
* Focus will also be triggered if the value changes from false to true.
|
|
719
|
-
* @default false
|
|
720
|
-
*/
|
|
721
|
-
autoFocus: e.bool,
|
|
722
|
-
/**
|
|
723
|
-
* The content of the component if a `ListItemSecondaryAction` is used it must
|
|
724
|
-
* be the last child.
|
|
725
|
-
*/
|
|
726
|
-
children: e.node,
|
|
727
|
-
/**
|
|
728
|
-
* Override or extend the styles applied to the component.
|
|
729
|
-
*/
|
|
730
|
-
classes: e.object,
|
|
731
|
-
/**
|
|
732
|
-
* @ignore
|
|
733
|
-
*/
|
|
734
|
-
className: e.string,
|
|
735
|
-
/**
|
|
736
|
-
* The component used for the root node.
|
|
737
|
-
* Either a string to use a HTML element or a component.
|
|
738
|
-
*/
|
|
739
|
-
component: e.elementType,
|
|
740
|
-
/**
|
|
741
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
742
|
-
* The prop defaults to the value inherited from the parent List component.
|
|
743
|
-
* @default false
|
|
744
|
-
*/
|
|
745
|
-
dense: e.bool,
|
|
746
|
-
/**
|
|
747
|
-
* If `true`, the component is disabled.
|
|
748
|
-
* @default false
|
|
749
|
-
*/
|
|
750
|
-
disabled: e.bool,
|
|
751
|
-
/**
|
|
752
|
-
* If `true`, the left and right padding is removed.
|
|
753
|
-
* @default false
|
|
754
|
-
*/
|
|
755
|
-
disableGutters: e.bool,
|
|
756
|
-
/**
|
|
757
|
-
* If `true`, a 1px light border is added to the bottom of the list item.
|
|
758
|
-
* @default false
|
|
759
|
-
*/
|
|
760
|
-
divider: e.bool,
|
|
761
|
-
/**
|
|
762
|
-
* This prop can help identify which element has keyboard focus.
|
|
763
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
764
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
765
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
766
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
767
|
-
* if needed.
|
|
768
|
-
*/
|
|
769
|
-
focusVisibleClassName: e.string,
|
|
770
|
-
/**
|
|
771
|
-
* @ignore
|
|
772
|
-
*/
|
|
773
|
-
href: e.string,
|
|
774
|
-
/**
|
|
775
|
-
* Use to apply selected styling.
|
|
776
|
-
* @default false
|
|
777
|
-
*/
|
|
778
|
-
selected: e.bool,
|
|
779
|
-
/**
|
|
780
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
781
|
-
*/
|
|
782
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
783
|
-
});
|
|
784
|
-
function $e(t) {
|
|
785
|
-
return J("MuiListItemSecondaryAction", t);
|
|
786
|
-
}
|
|
787
|
-
q("MuiListItemSecondaryAction", ["root", "disableGutters"]);
|
|
788
|
-
const Ie = (t) => {
|
|
789
|
-
const {
|
|
790
|
-
disableGutters: o,
|
|
791
|
-
classes: n
|
|
792
|
-
} = t;
|
|
793
|
-
return Q({
|
|
794
|
-
root: ["root", o && "disableGutters"]
|
|
795
|
-
}, $e, n);
|
|
796
|
-
}, Ne = V("div", {
|
|
797
|
-
name: "MuiListItemSecondaryAction",
|
|
798
|
-
slot: "Root",
|
|
799
|
-
overridesResolver: (t, o) => {
|
|
800
|
-
const {
|
|
801
|
-
ownerState: n
|
|
802
|
-
} = t;
|
|
803
|
-
return [o.root, n.disableGutters && o.disableGutters];
|
|
804
|
-
}
|
|
805
|
-
})({
|
|
806
|
-
position: "absolute",
|
|
807
|
-
right: 16,
|
|
808
|
-
top: "50%",
|
|
809
|
-
transform: "translateY(-50%)",
|
|
810
|
-
variants: [{
|
|
811
|
-
props: ({
|
|
812
|
-
ownerState: t
|
|
813
|
-
}) => t.disableGutters,
|
|
814
|
-
style: {
|
|
815
|
-
right: 0
|
|
816
|
-
}
|
|
817
|
-
}]
|
|
818
|
-
}), gt = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
819
|
-
const r = K({
|
|
820
|
-
props: o,
|
|
821
|
-
name: "MuiListItemSecondaryAction"
|
|
822
|
-
}), {
|
|
823
|
-
className: i,
|
|
824
|
-
...c
|
|
825
|
-
} = r, a = m.useContext(_), l = {
|
|
826
|
-
...r,
|
|
827
|
-
disableGutters: a.disableGutters
|
|
828
|
-
}, d = Ie(l);
|
|
829
|
-
return /* @__PURE__ */ s(Ne, {
|
|
830
|
-
className: j(d.root, i),
|
|
831
|
-
ownerState: l,
|
|
832
|
-
ref: n,
|
|
833
|
-
...c
|
|
834
|
-
});
|
|
835
|
-
});
|
|
836
|
-
process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
837
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
838
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
839
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
840
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
841
|
-
/**
|
|
842
|
-
* The content of the component, normally an `IconButton` or selection control.
|
|
843
|
-
*/
|
|
844
|
-
children: e.node,
|
|
845
|
-
/**
|
|
846
|
-
* Override or extend the styles applied to the component.
|
|
847
|
-
*/
|
|
848
|
-
classes: e.object,
|
|
849
|
-
/**
|
|
850
|
-
* @ignore
|
|
851
|
-
*/
|
|
852
|
-
className: e.string,
|
|
853
|
-
/**
|
|
854
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
855
|
-
*/
|
|
856
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
857
|
-
});
|
|
858
|
-
gt.muiName = "ListItemSecondaryAction";
|
|
859
|
-
const Oe = (t, o) => {
|
|
860
|
-
const {
|
|
861
|
-
ownerState: n
|
|
862
|
-
} = t;
|
|
863
|
-
return [o.root, n.dense && o.dense, n.alignItems === "flex-start" && o.alignItemsFlexStart, n.divider && o.divider, !n.disableGutters && o.gutters, !n.disablePadding && o.padding, n.hasSecondaryAction && o.secondaryAction];
|
|
864
|
-
}, ke = (t) => {
|
|
865
|
-
const {
|
|
866
|
-
alignItems: o,
|
|
867
|
-
classes: n,
|
|
868
|
-
dense: r,
|
|
869
|
-
disableGutters: i,
|
|
870
|
-
disablePadding: c,
|
|
871
|
-
divider: a,
|
|
872
|
-
hasSecondaryAction: l
|
|
873
|
-
} = t;
|
|
874
|
-
return Q({
|
|
875
|
-
root: ["root", r && "dense", !i && "gutters", !c && "padding", a && "divider", o === "flex-start" && "alignItemsFlexStart", l && "secondaryAction"],
|
|
876
|
-
container: ["container"]
|
|
877
|
-
}, Ee, n);
|
|
878
|
-
}, Me = V("div", {
|
|
879
|
-
name: "MuiListItem",
|
|
880
|
-
slot: "Root",
|
|
881
|
-
overridesResolver: Oe
|
|
882
|
-
})(tt(({
|
|
883
|
-
theme: t
|
|
884
|
-
}) => ({
|
|
885
|
-
display: "flex",
|
|
886
|
-
justifyContent: "flex-start",
|
|
887
|
-
alignItems: "center",
|
|
888
|
-
position: "relative",
|
|
889
|
-
textDecoration: "none",
|
|
890
|
-
width: "100%",
|
|
891
|
-
boxSizing: "border-box",
|
|
892
|
-
textAlign: "left",
|
|
893
|
-
variants: [{
|
|
894
|
-
props: ({
|
|
895
|
-
ownerState: o
|
|
896
|
-
}) => !o.disablePadding,
|
|
897
|
-
style: {
|
|
898
|
-
paddingTop: 8,
|
|
899
|
-
paddingBottom: 8
|
|
900
|
-
}
|
|
901
|
-
}, {
|
|
902
|
-
props: ({
|
|
903
|
-
ownerState: o
|
|
904
|
-
}) => !o.disablePadding && o.dense,
|
|
905
|
-
style: {
|
|
906
|
-
paddingTop: 4,
|
|
907
|
-
paddingBottom: 4
|
|
908
|
-
}
|
|
909
|
-
}, {
|
|
910
|
-
props: ({
|
|
911
|
-
ownerState: o
|
|
912
|
-
}) => !o.disablePadding && !o.disableGutters,
|
|
913
|
-
style: {
|
|
914
|
-
paddingLeft: 16,
|
|
915
|
-
paddingRight: 16
|
|
916
|
-
}
|
|
917
|
-
}, {
|
|
918
|
-
props: ({
|
|
919
|
-
ownerState: o
|
|
920
|
-
}) => !o.disablePadding && !!o.secondaryAction,
|
|
921
|
-
style: {
|
|
922
|
-
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
923
|
-
// is absolutely positioned.
|
|
924
|
-
paddingRight: 48
|
|
925
|
-
}
|
|
926
|
-
}, {
|
|
927
|
-
props: ({
|
|
928
|
-
ownerState: o
|
|
929
|
-
}) => !!o.secondaryAction,
|
|
930
|
-
style: {
|
|
931
|
-
[`& > .${Z.root}`]: {
|
|
932
|
-
paddingRight: 48
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
}, {
|
|
936
|
-
props: {
|
|
937
|
-
alignItems: "flex-start"
|
|
938
|
-
},
|
|
939
|
-
style: {
|
|
940
|
-
alignItems: "flex-start"
|
|
941
|
-
}
|
|
942
|
-
}, {
|
|
943
|
-
props: ({
|
|
944
|
-
ownerState: o
|
|
945
|
-
}) => o.divider,
|
|
946
|
-
style: {
|
|
947
|
-
borderBottom: `1px solid ${(t.vars || t).palette.divider}`,
|
|
948
|
-
backgroundClip: "padding-box"
|
|
949
|
-
}
|
|
950
|
-
}, {
|
|
951
|
-
props: ({
|
|
952
|
-
ownerState: o
|
|
953
|
-
}) => o.button,
|
|
954
|
-
style: {
|
|
955
|
-
transition: t.transitions.create("background-color", {
|
|
956
|
-
duration: t.transitions.duration.shortest
|
|
957
|
-
}),
|
|
958
|
-
"&:hover": {
|
|
959
|
-
textDecoration: "none",
|
|
960
|
-
backgroundColor: (t.vars || t).palette.action.hover,
|
|
961
|
-
// Reset on touch devices, it doesn't add specificity
|
|
962
|
-
"@media (hover: none)": {
|
|
963
|
-
backgroundColor: "transparent"
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
}, {
|
|
968
|
-
props: ({
|
|
969
|
-
ownerState: o
|
|
970
|
-
}) => o.hasSecondaryAction,
|
|
971
|
-
style: {
|
|
972
|
-
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
973
|
-
// is absolutely positioned.
|
|
974
|
-
paddingRight: 48
|
|
975
|
-
}
|
|
976
|
-
}]
|
|
977
|
-
}))), De = V("li", {
|
|
978
|
-
name: "MuiListItem",
|
|
979
|
-
slot: "Container",
|
|
980
|
-
overridesResolver: (t, o) => o.container
|
|
981
|
-
})({
|
|
982
|
-
position: "relative"
|
|
983
|
-
}), ut = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
984
|
-
const r = K({
|
|
985
|
-
props: o,
|
|
986
|
-
name: "MuiListItem"
|
|
987
|
-
}), {
|
|
988
|
-
alignItems: i = "center",
|
|
989
|
-
children: c,
|
|
990
|
-
className: a,
|
|
991
|
-
component: l,
|
|
992
|
-
components: d = {},
|
|
993
|
-
componentsProps: p = {},
|
|
994
|
-
ContainerComponent: g = "li",
|
|
995
|
-
ContainerProps: {
|
|
996
|
-
className: S,
|
|
997
|
-
...b
|
|
998
|
-
} = {},
|
|
999
|
-
dense: y = !1,
|
|
1000
|
-
disableGutters: h = !1,
|
|
1001
|
-
disablePadding: x = !1,
|
|
1002
|
-
divider: C = !1,
|
|
1003
|
-
secondaryAction: v,
|
|
1004
|
-
slotProps: I = {},
|
|
1005
|
-
slots: E = {},
|
|
1006
|
-
...k
|
|
1007
|
-
} = r, F = m.useContext(_), L = m.useMemo(() => ({
|
|
1008
|
-
dense: y || F.dense || !1,
|
|
1009
|
-
alignItems: i,
|
|
1010
|
-
disableGutters: h
|
|
1011
|
-
}), [i, F.dense, y, h]), w = m.useRef(null), N = m.Children.toArray(c), M = N.length && Mt(N[N.length - 1], ["ListItemSecondaryAction"]), T = {
|
|
1012
|
-
...r,
|
|
1013
|
-
alignItems: i,
|
|
1014
|
-
dense: L.dense,
|
|
1015
|
-
disableGutters: h,
|
|
1016
|
-
disablePadding: x,
|
|
1017
|
-
divider: C,
|
|
1018
|
-
hasSecondaryAction: M
|
|
1019
|
-
}, R = ke(T), D = dt(w, n), $ = E.root || d.Root || Me, O = I.root || p.root || {}, B = {
|
|
1020
|
-
className: j(R.root, O.className, a),
|
|
1021
|
-
...k
|
|
1022
|
-
};
|
|
1023
|
-
let W = l || "li";
|
|
1024
|
-
return M ? (W = !B.component && !l ? "div" : W, g === "li" && (W === "li" ? W = "div" : B.component === "li" && (B.component = "div")), /* @__PURE__ */ s(_.Provider, {
|
|
1025
|
-
value: L,
|
|
1026
|
-
children: /* @__PURE__ */ H(De, {
|
|
1027
|
-
as: g,
|
|
1028
|
-
className: j(R.container, S),
|
|
1029
|
-
ref: D,
|
|
1030
|
-
ownerState: T,
|
|
1031
|
-
...b,
|
|
1032
|
-
children: [/* @__PURE__ */ s($, {
|
|
1033
|
-
...O,
|
|
1034
|
-
...!xt($) && {
|
|
1035
|
-
as: W,
|
|
1036
|
-
ownerState: {
|
|
1037
|
-
...T,
|
|
1038
|
-
...O.ownerState
|
|
1039
|
-
}
|
|
1040
|
-
},
|
|
1041
|
-
...B,
|
|
1042
|
-
children: N
|
|
1043
|
-
}), N.pop()]
|
|
1044
|
-
})
|
|
1045
|
-
})) : /* @__PURE__ */ s(_.Provider, {
|
|
1046
|
-
value: L,
|
|
1047
|
-
children: /* @__PURE__ */ H($, {
|
|
1048
|
-
...O,
|
|
1049
|
-
as: W,
|
|
1050
|
-
ref: D,
|
|
1051
|
-
...!xt($) && {
|
|
1052
|
-
ownerState: {
|
|
1053
|
-
...T,
|
|
1054
|
-
...O.ownerState
|
|
1055
|
-
}
|
|
1056
|
-
},
|
|
1057
|
-
...B,
|
|
1058
|
-
children: [N, v && /* @__PURE__ */ s(gt, {
|
|
1059
|
-
children: v
|
|
1060
|
-
})]
|
|
1061
|
-
})
|
|
1062
|
-
});
|
|
1063
|
-
});
|
|
1064
|
-
process.env.NODE_ENV !== "production" && (ut.propTypes = {
|
|
1065
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1066
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1067
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1068
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1069
|
-
/**
|
|
1070
|
-
* Defines the `align-items` style property.
|
|
1071
|
-
* @default 'center'
|
|
1072
|
-
*/
|
|
1073
|
-
alignItems: e.oneOf(["center", "flex-start"]),
|
|
1074
|
-
/**
|
|
1075
|
-
* The content of the component if a `ListItemSecondaryAction` is used it must
|
|
1076
|
-
* be the last child.
|
|
1077
|
-
*/
|
|
1078
|
-
children: Dt(e.node, (t) => {
|
|
1079
|
-
const o = m.Children.toArray(t.children);
|
|
1080
|
-
let n = -1;
|
|
1081
|
-
for (let r = o.length - 1; r >= 0; r -= 1) {
|
|
1082
|
-
const i = o[r];
|
|
1083
|
-
if (Mt(i, ["ListItemSecondaryAction"])) {
|
|
1084
|
-
n = r;
|
|
1085
|
-
break;
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
return n !== -1 && n !== o.length - 1 ? new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem.") : null;
|
|
1089
|
-
}),
|
|
1090
|
-
/**
|
|
1091
|
-
* Override or extend the styles applied to the component.
|
|
1092
|
-
*/
|
|
1093
|
-
classes: e.object,
|
|
1094
|
-
/**
|
|
1095
|
-
* @ignore
|
|
1096
|
-
*/
|
|
1097
|
-
className: e.string,
|
|
1098
|
-
/**
|
|
1099
|
-
* The component used for the root node.
|
|
1100
|
-
* Either a string to use a HTML element or a component.
|
|
1101
|
-
*/
|
|
1102
|
-
component: e.elementType,
|
|
1103
|
-
/**
|
|
1104
|
-
* The components used for each slot inside.
|
|
1105
|
-
*
|
|
1106
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1107
|
-
* @default {}
|
|
1108
|
-
*/
|
|
1109
|
-
components: e.shape({
|
|
1110
|
-
Root: e.elementType
|
|
1111
|
-
}),
|
|
1112
|
-
/**
|
|
1113
|
-
* The extra props for the slot components.
|
|
1114
|
-
* You can override the existing props or add new ones.
|
|
1115
|
-
*
|
|
1116
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1117
|
-
* @default {}
|
|
1118
|
-
*/
|
|
1119
|
-
componentsProps: e.shape({
|
|
1120
|
-
root: e.object
|
|
1121
|
-
}),
|
|
1122
|
-
/**
|
|
1123
|
-
* The container component used when a `ListItemSecondaryAction` is the last child.
|
|
1124
|
-
* @default 'li'
|
|
1125
|
-
* @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1126
|
-
*/
|
|
1127
|
-
ContainerComponent: Bt,
|
|
1128
|
-
/**
|
|
1129
|
-
* Props applied to the container component if used.
|
|
1130
|
-
* @default {}
|
|
1131
|
-
* @deprecated Use the `slotProps.root` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1132
|
-
*/
|
|
1133
|
-
ContainerProps: e.object,
|
|
1134
|
-
/**
|
|
1135
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
1136
|
-
* The prop defaults to the value inherited from the parent List component.
|
|
1137
|
-
* @default false
|
|
1138
|
-
*/
|
|
1139
|
-
dense: e.bool,
|
|
1140
|
-
/**
|
|
1141
|
-
* If `true`, the left and right padding is removed.
|
|
1142
|
-
* @default false
|
|
1143
|
-
*/
|
|
1144
|
-
disableGutters: e.bool,
|
|
1145
|
-
/**
|
|
1146
|
-
* If `true`, all padding is removed.
|
|
1147
|
-
* @default false
|
|
1148
|
-
*/
|
|
1149
|
-
disablePadding: e.bool,
|
|
1150
|
-
/**
|
|
1151
|
-
* If `true`, a 1px light border is added to the bottom of the list item.
|
|
1152
|
-
* @default false
|
|
1153
|
-
*/
|
|
1154
|
-
divider: e.bool,
|
|
1155
|
-
/**
|
|
1156
|
-
* The element to display at the end of ListItem.
|
|
1157
|
-
*/
|
|
1158
|
-
secondaryAction: e.node,
|
|
1159
|
-
/**
|
|
1160
|
-
* The extra props for the slot components.
|
|
1161
|
-
* You can override the existing props or add new ones.
|
|
1162
|
-
*
|
|
1163
|
-
* @default {}
|
|
1164
|
-
*/
|
|
1165
|
-
slotProps: e.shape({
|
|
1166
|
-
root: e.object
|
|
1167
|
-
}),
|
|
1168
|
-
/**
|
|
1169
|
-
* The components used for each slot inside.
|
|
1170
|
-
*
|
|
1171
|
-
* @default {}
|
|
1172
|
-
*/
|
|
1173
|
-
slots: e.shape({
|
|
1174
|
-
root: e.elementType
|
|
1175
|
-
}),
|
|
1176
|
-
/**
|
|
1177
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1178
|
-
*/
|
|
1179
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1180
|
-
});
|
|
1181
|
-
const wt = pt(/* @__PURE__ */ s("path", {
|
|
1182
|
-
d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
1183
|
-
}), "ChevronLeft"), Ct = pt(/* @__PURE__ */ s("path", {
|
|
1184
|
-
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
1185
|
-
}), "ChevronRight");
|
|
1186
|
-
function Be(t) {
|
|
1187
|
-
return J("MuiTypography", t);
|
|
1188
|
-
}
|
|
1189
|
-
const Tt = q("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]), Ae = {
|
|
1190
|
-
primary: !0,
|
|
1191
|
-
secondary: !0,
|
|
1192
|
-
error: !0,
|
|
1193
|
-
info: !0,
|
|
1194
|
-
success: !0,
|
|
1195
|
-
warning: !0,
|
|
1196
|
-
textPrimary: !0,
|
|
1197
|
-
textSecondary: !0,
|
|
1198
|
-
textDisabled: !0
|
|
1199
|
-
}, ze = pe(), je = (t) => {
|
|
1200
|
-
const {
|
|
1201
|
-
align: o,
|
|
1202
|
-
gutterBottom: n,
|
|
1203
|
-
noWrap: r,
|
|
1204
|
-
paragraph: i,
|
|
1205
|
-
variant: c,
|
|
1206
|
-
classes: a
|
|
1207
|
-
} = t, l = {
|
|
1208
|
-
root: ["root", c, t.align !== "inherit" && `align${Y(o)}`, n && "gutterBottom", r && "noWrap", i && "paragraph"]
|
|
1209
|
-
};
|
|
1210
|
-
return Q(l, Be, a);
|
|
1211
|
-
}, Ve = V("span", {
|
|
1212
|
-
name: "MuiTypography",
|
|
1213
|
-
slot: "Root",
|
|
1214
|
-
overridesResolver: (t, o) => {
|
|
1215
|
-
const {
|
|
1216
|
-
ownerState: n
|
|
1217
|
-
} = t;
|
|
1218
|
-
return [o.root, n.variant && o[n.variant], n.align !== "inherit" && o[`align${Y(n.align)}`], n.noWrap && o.noWrap, n.gutterBottom && o.gutterBottom, n.paragraph && o.paragraph];
|
|
1219
|
-
}
|
|
1220
|
-
})(tt(({
|
|
1221
|
-
theme: t
|
|
1222
|
-
}) => {
|
|
1223
|
-
var o;
|
|
1224
|
-
return {
|
|
1225
|
-
margin: 0,
|
|
1226
|
-
variants: [{
|
|
1227
|
-
props: {
|
|
1228
|
-
variant: "inherit"
|
|
1229
|
-
},
|
|
1230
|
-
style: {
|
|
1231
|
-
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
1232
|
-
font: "inherit",
|
|
1233
|
-
lineHeight: "inherit",
|
|
1234
|
-
letterSpacing: "inherit"
|
|
1235
|
-
}
|
|
1236
|
-
}, ...Object.entries(t.typography).filter(([n, r]) => n !== "inherit" && r && typeof r == "object").map(([n, r]) => ({
|
|
1237
|
-
props: {
|
|
1238
|
-
variant: n
|
|
1239
|
-
},
|
|
1240
|
-
style: r
|
|
1241
|
-
})), ...Object.entries(t.palette).filter(fe()).map(([n]) => ({
|
|
1242
|
-
props: {
|
|
1243
|
-
color: n
|
|
1244
|
-
},
|
|
1245
|
-
style: {
|
|
1246
|
-
color: (t.vars || t).palette[n].main
|
|
1247
|
-
}
|
|
1248
|
-
})), ...Object.entries(((o = t.palette) == null ? void 0 : o.text) || {}).filter(([, n]) => typeof n == "string").map(([n]) => ({
|
|
1249
|
-
props: {
|
|
1250
|
-
color: `text${Y(n)}`
|
|
1251
|
-
},
|
|
1252
|
-
style: {
|
|
1253
|
-
color: (t.vars || t).palette.text[n]
|
|
1254
|
-
}
|
|
1255
|
-
})), {
|
|
1256
|
-
props: ({
|
|
1257
|
-
ownerState: n
|
|
1258
|
-
}) => n.align !== "inherit",
|
|
1259
|
-
style: {
|
|
1260
|
-
textAlign: "var(--Typography-textAlign)"
|
|
1261
|
-
}
|
|
1262
|
-
}, {
|
|
1263
|
-
props: ({
|
|
1264
|
-
ownerState: n
|
|
1265
|
-
}) => n.noWrap,
|
|
1266
|
-
style: {
|
|
1267
|
-
overflow: "hidden",
|
|
1268
|
-
textOverflow: "ellipsis",
|
|
1269
|
-
whiteSpace: "nowrap"
|
|
1270
|
-
}
|
|
1271
|
-
}, {
|
|
1272
|
-
props: ({
|
|
1273
|
-
ownerState: n
|
|
1274
|
-
}) => n.gutterBottom,
|
|
1275
|
-
style: {
|
|
1276
|
-
marginBottom: "0.35em"
|
|
1277
|
-
}
|
|
1278
|
-
}, {
|
|
1279
|
-
props: ({
|
|
1280
|
-
ownerState: n
|
|
1281
|
-
}) => n.paragraph,
|
|
1282
|
-
style: {
|
|
1283
|
-
marginBottom: 16
|
|
1284
|
-
}
|
|
1285
|
-
}]
|
|
1286
|
-
};
|
|
1287
|
-
})), Et = {
|
|
1288
|
-
h1: "h1",
|
|
1289
|
-
h2: "h2",
|
|
1290
|
-
h3: "h3",
|
|
1291
|
-
h4: "h4",
|
|
1292
|
-
h5: "h5",
|
|
1293
|
-
h6: "h6",
|
|
1294
|
-
subtitle1: "h6",
|
|
1295
|
-
subtitle2: "h6",
|
|
1296
|
-
body1: "p",
|
|
1297
|
-
body2: "p",
|
|
1298
|
-
inherit: "p"
|
|
1299
|
-
}, ot = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
1300
|
-
const {
|
|
1301
|
-
color: r,
|
|
1302
|
-
...i
|
|
1303
|
-
} = K({
|
|
1304
|
-
props: o,
|
|
1305
|
-
name: "MuiTypography"
|
|
1306
|
-
}), c = !Ae[r], a = ze({
|
|
1307
|
-
...i,
|
|
1308
|
-
...c && {
|
|
1309
|
-
color: r
|
|
1310
|
-
}
|
|
1311
|
-
}), {
|
|
1312
|
-
align: l = "inherit",
|
|
1313
|
-
className: d,
|
|
1314
|
-
component: p,
|
|
1315
|
-
gutterBottom: g = !1,
|
|
1316
|
-
noWrap: S = !1,
|
|
1317
|
-
paragraph: b = !1,
|
|
1318
|
-
variant: y = "body1",
|
|
1319
|
-
variantMapping: h = Et,
|
|
1320
|
-
...x
|
|
1321
|
-
} = a, C = {
|
|
1322
|
-
...a,
|
|
1323
|
-
align: l,
|
|
1324
|
-
color: r,
|
|
1325
|
-
className: d,
|
|
1326
|
-
component: p,
|
|
1327
|
-
gutterBottom: g,
|
|
1328
|
-
noWrap: S,
|
|
1329
|
-
paragraph: b,
|
|
1330
|
-
variant: y,
|
|
1331
|
-
variantMapping: h
|
|
1332
|
-
}, v = p || (b ? "p" : h[y] || Et[y]) || "span", I = je(C);
|
|
1333
|
-
return /* @__PURE__ */ s(Ve, {
|
|
1334
|
-
as: v,
|
|
1335
|
-
ref: n,
|
|
1336
|
-
className: j(I.root, d),
|
|
1337
|
-
...x,
|
|
1338
|
-
ownerState: C,
|
|
1339
|
-
style: {
|
|
1340
|
-
...l !== "inherit" && {
|
|
1341
|
-
"--Typography-textAlign": l
|
|
1342
|
-
},
|
|
1343
|
-
...x.style
|
|
1344
|
-
}
|
|
1345
|
-
});
|
|
1346
|
-
});
|
|
1347
|
-
process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
1348
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1349
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1350
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1351
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1352
|
-
/**
|
|
1353
|
-
* Set the text-align on the component.
|
|
1354
|
-
* @default 'inherit'
|
|
1355
|
-
*/
|
|
1356
|
-
align: e.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
1357
|
-
/**
|
|
1358
|
-
* The content of the component.
|
|
1359
|
-
*/
|
|
1360
|
-
children: e.node,
|
|
1361
|
-
/**
|
|
1362
|
-
* Override or extend the styles applied to the component.
|
|
1363
|
-
*/
|
|
1364
|
-
classes: e.object,
|
|
1365
|
-
/**
|
|
1366
|
-
* @ignore
|
|
1367
|
-
*/
|
|
1368
|
-
className: e.string,
|
|
1369
|
-
/**
|
|
1370
|
-
* The color of the component.
|
|
1371
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1372
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
1373
|
-
*/
|
|
1374
|
-
color: e.oneOfType([e.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), e.string]),
|
|
1375
|
-
/**
|
|
1376
|
-
* The component used for the root node.
|
|
1377
|
-
* Either a string to use a HTML element or a component.
|
|
1378
|
-
*/
|
|
1379
|
-
component: e.elementType,
|
|
1380
|
-
/**
|
|
1381
|
-
* If `true`, the text will have a bottom margin.
|
|
1382
|
-
* @default false
|
|
1383
|
-
*/
|
|
1384
|
-
gutterBottom: e.bool,
|
|
1385
|
-
/**
|
|
1386
|
-
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
1387
|
-
*
|
|
1388
|
-
* Note that text overflow can only happen with block or inline-block level elements
|
|
1389
|
-
* (the element needs to have a width in order to overflow).
|
|
1390
|
-
* @default false
|
|
1391
|
-
*/
|
|
1392
|
-
noWrap: e.bool,
|
|
1393
|
-
/**
|
|
1394
|
-
* If `true`, the element will be a paragraph element.
|
|
1395
|
-
* @default false
|
|
1396
|
-
* @deprecated Use the `component` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1397
|
-
*/
|
|
1398
|
-
paragraph: e.bool,
|
|
1399
|
-
/**
|
|
1400
|
-
* @ignore
|
|
1401
|
-
*/
|
|
1402
|
-
style: e.object,
|
|
1403
|
-
/**
|
|
1404
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1405
|
-
*/
|
|
1406
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1407
|
-
/**
|
|
1408
|
-
* Applies the theme typography styles.
|
|
1409
|
-
* @default 'body1'
|
|
1410
|
-
*/
|
|
1411
|
-
variant: e.oneOfType([e.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), e.string]),
|
|
1412
|
-
/**
|
|
1413
|
-
* The component maps the variant prop to a range of different HTML element types.
|
|
1414
|
-
* For instance, subtitle1 to `<h6>`.
|
|
1415
|
-
* If you wish to change that mapping, you can provide your own.
|
|
1416
|
-
* Alternatively, you can use the `component` prop.
|
|
1417
|
-
* @default {
|
|
1418
|
-
* h1: 'h1',
|
|
1419
|
-
* h2: 'h2',
|
|
1420
|
-
* h3: 'h3',
|
|
1421
|
-
* h4: 'h4',
|
|
1422
|
-
* h5: 'h5',
|
|
1423
|
-
* h6: 'h6',
|
|
1424
|
-
* subtitle1: 'h6',
|
|
1425
|
-
* subtitle2: 'h6',
|
|
1426
|
-
* body1: 'p',
|
|
1427
|
-
* body2: 'p',
|
|
1428
|
-
* inherit: 'p',
|
|
1429
|
-
* }
|
|
1430
|
-
*/
|
|
1431
|
-
variantMapping: e.object
|
|
1432
|
-
});
|
|
1433
|
-
function Fe(t) {
|
|
1434
|
-
return J("MuiListItemText", t);
|
|
1435
|
-
}
|
|
1436
|
-
const at = q("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), We = (t) => {
|
|
1437
|
-
const {
|
|
1438
|
-
classes: o,
|
|
1439
|
-
inset: n,
|
|
1440
|
-
primary: r,
|
|
1441
|
-
secondary: i,
|
|
1442
|
-
dense: c
|
|
1443
|
-
} = t;
|
|
1444
|
-
return Q({
|
|
1445
|
-
root: ["root", n && "inset", c && "dense", r && i && "multiline"],
|
|
1446
|
-
primary: ["primary"],
|
|
1447
|
-
secondary: ["secondary"]
|
|
1448
|
-
}, Fe, o);
|
|
1449
|
-
}, Ue = V("div", {
|
|
1450
|
-
name: "MuiListItemText",
|
|
1451
|
-
slot: "Root",
|
|
1452
|
-
overridesResolver: (t, o) => {
|
|
1453
|
-
const {
|
|
1454
|
-
ownerState: n
|
|
1455
|
-
} = t;
|
|
1456
|
-
return [{
|
|
1457
|
-
[`& .${at.primary}`]: o.primary
|
|
1458
|
-
}, {
|
|
1459
|
-
[`& .${at.secondary}`]: o.secondary
|
|
1460
|
-
}, o.root, n.inset && o.inset, n.primary && n.secondary && o.multiline, n.dense && o.dense];
|
|
1461
|
-
}
|
|
1462
|
-
})({
|
|
1463
|
-
flex: "1 1 auto",
|
|
1464
|
-
minWidth: 0,
|
|
1465
|
-
marginTop: 4,
|
|
1466
|
-
marginBottom: 4,
|
|
1467
|
-
[`.${Tt.root}:where(& .${at.primary})`]: {
|
|
1468
|
-
display: "block"
|
|
1469
|
-
},
|
|
1470
|
-
[`.${Tt.root}:where(& .${at.secondary})`]: {
|
|
1471
|
-
display: "block"
|
|
1472
|
-
},
|
|
1473
|
-
variants: [{
|
|
1474
|
-
props: ({
|
|
1475
|
-
ownerState: t
|
|
1476
|
-
}) => t.primary && t.secondary,
|
|
1477
|
-
style: {
|
|
1478
|
-
marginTop: 6,
|
|
1479
|
-
marginBottom: 6
|
|
1480
|
-
}
|
|
1481
|
-
}, {
|
|
1482
|
-
props: ({
|
|
1483
|
-
ownerState: t
|
|
1484
|
-
}) => t.inset,
|
|
1485
|
-
style: {
|
|
1486
|
-
paddingLeft: 56
|
|
1487
|
-
}
|
|
1488
|
-
}]
|
|
1489
|
-
}), Ut = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
1490
|
-
const r = K({
|
|
1491
|
-
props: o,
|
|
1492
|
-
name: "MuiListItemText"
|
|
1493
|
-
}), {
|
|
1494
|
-
children: i,
|
|
1495
|
-
className: c,
|
|
1496
|
-
disableTypography: a = !1,
|
|
1497
|
-
inset: l = !1,
|
|
1498
|
-
primary: d,
|
|
1499
|
-
primaryTypographyProps: p,
|
|
1500
|
-
secondary: g,
|
|
1501
|
-
secondaryTypographyProps: S,
|
|
1502
|
-
...b
|
|
1503
|
-
} = r, {
|
|
1504
|
-
dense: y
|
|
1505
|
-
} = m.useContext(_);
|
|
1506
|
-
let h = d ?? i, x = g;
|
|
1507
|
-
const C = {
|
|
1508
|
-
...r,
|
|
1509
|
-
disableTypography: a,
|
|
1510
|
-
inset: l,
|
|
1511
|
-
primary: !!h,
|
|
1512
|
-
secondary: !!x,
|
|
1513
|
-
dense: y
|
|
1514
|
-
}, v = We(C);
|
|
1515
|
-
return h != null && h.type !== ot && !a && (h = /* @__PURE__ */ s(ot, {
|
|
1516
|
-
variant: y ? "body2" : "body1",
|
|
1517
|
-
className: v.primary,
|
|
1518
|
-
component: p != null && p.variant ? void 0 : "span",
|
|
1519
|
-
...p,
|
|
1520
|
-
children: h
|
|
1521
|
-
})), x != null && x.type !== ot && !a && (x = /* @__PURE__ */ s(ot, {
|
|
1522
|
-
variant: "body2",
|
|
1523
|
-
className: v.secondary,
|
|
1524
|
-
color: "textSecondary",
|
|
1525
|
-
...S,
|
|
1526
|
-
children: x
|
|
1527
|
-
})), /* @__PURE__ */ H(Ue, {
|
|
1528
|
-
className: j(v.root, c),
|
|
1529
|
-
ownerState: C,
|
|
1530
|
-
ref: n,
|
|
1531
|
-
...b,
|
|
1532
|
-
children: [h, x]
|
|
1533
|
-
});
|
|
1534
|
-
});
|
|
1535
|
-
process.env.NODE_ENV !== "production" && (Ut.propTypes = {
|
|
1536
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1537
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1538
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1539
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1540
|
-
/**
|
|
1541
|
-
* Alias for the `primary` prop.
|
|
1542
|
-
*/
|
|
1543
|
-
children: e.node,
|
|
1544
|
-
/**
|
|
1545
|
-
* Override or extend the styles applied to the component.
|
|
1546
|
-
*/
|
|
1547
|
-
classes: e.object,
|
|
1548
|
-
/**
|
|
1549
|
-
* @ignore
|
|
1550
|
-
*/
|
|
1551
|
-
className: e.string,
|
|
1552
|
-
/**
|
|
1553
|
-
* If `true`, the children won't be wrapped by a Typography component.
|
|
1554
|
-
* This can be useful to render an alternative Typography variant by wrapping
|
|
1555
|
-
* the `children` (or `primary`) text, and optional `secondary` text
|
|
1556
|
-
* with the Typography component.
|
|
1557
|
-
* @default false
|
|
1558
|
-
*/
|
|
1559
|
-
disableTypography: e.bool,
|
|
1560
|
-
/**
|
|
1561
|
-
* If `true`, the children are indented.
|
|
1562
|
-
* This should be used if there is no left avatar or left icon.
|
|
1563
|
-
* @default false
|
|
1564
|
-
*/
|
|
1565
|
-
inset: e.bool,
|
|
1566
|
-
/**
|
|
1567
|
-
* The main content element.
|
|
1568
|
-
*/
|
|
1569
|
-
primary: e.node,
|
|
1570
|
-
/**
|
|
1571
|
-
* These props will be forwarded to the primary typography component
|
|
1572
|
-
* (as long as disableTypography is not `true`).
|
|
1573
|
-
*/
|
|
1574
|
-
primaryTypographyProps: e.object,
|
|
1575
|
-
/**
|
|
1576
|
-
* The secondary content element.
|
|
1577
|
-
*/
|
|
1578
|
-
secondary: e.node,
|
|
1579
|
-
/**
|
|
1580
|
-
* These props will be forwarded to the secondary typography component
|
|
1581
|
-
* (as long as disableTypography is not `true`).
|
|
1582
|
-
*/
|
|
1583
|
-
secondaryTypographyProps: e.object,
|
|
1584
|
-
/**
|
|
1585
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1586
|
-
*/
|
|
1587
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1588
|
-
});
|
|
1589
|
-
const Gt = X(Ut, {
|
|
1590
|
-
shouldForwardProp: (t) => t !== "collapsed"
|
|
1591
|
-
})(({ collapsed: t }) => ({
|
|
1592
|
-
marginLeft: t ? 0 : "10px",
|
|
1593
|
-
height: "24px",
|
|
1594
|
-
whiteSpace: "nowrap",
|
|
1595
|
-
width: t ? 0 : "auto",
|
|
1596
|
-
opacity: t ? 0 : 1,
|
|
1597
|
-
transition: "600ms all ease-in-out"
|
|
1598
|
-
})), yt = X(Wt, {
|
|
1599
|
-
shouldForwardProp: (t) => It(t)
|
|
1600
|
-
})(({ menuOrientation: t }) => ({
|
|
1601
|
-
"&:hover": {
|
|
1602
|
-
backgroundColor: z.colors.green
|
|
1603
|
-
},
|
|
1604
|
-
color: z.colors.white,
|
|
1605
|
-
paddingRight: t === "horizontal" ? "16px" : "8px"
|
|
1606
|
-
})), Ge = X(yt, {
|
|
1607
|
-
shouldForwardProp: (t) => It(t)
|
|
1608
|
-
})(({ menuPosition: t }) => ({
|
|
1609
|
-
display: "flex",
|
|
1610
|
-
justifyContent: t === "right" ? "flex-start" : "flex-end",
|
|
1611
|
-
alignItems: "center"
|
|
1612
|
-
})), Ht = ({
|
|
1613
|
-
label: t,
|
|
1614
|
-
icon: o,
|
|
1615
|
-
to: n,
|
|
1616
|
-
openInNewTab: r,
|
|
1617
|
-
collapsed: i,
|
|
1618
|
-
menuOrientation: c
|
|
1619
|
-
}) => {
|
|
1620
|
-
const a = o;
|
|
1621
|
-
return /* @__PURE__ */ s(ut, { disablePadding: !0, children: /* @__PURE__ */ H(
|
|
1622
|
-
yt,
|
|
1623
|
-
{
|
|
1624
|
-
href: n ?? "",
|
|
1625
|
-
target: n && r ? "_blank" : void 0,
|
|
1626
|
-
menuOrientation: c,
|
|
1627
|
-
children: [
|
|
1628
|
-
a && a,
|
|
1629
|
-
/* @__PURE__ */ s(Gt, { primary: t, collapsed: i })
|
|
1630
|
-
]
|
|
1631
|
-
}
|
|
1632
|
-
) }, t);
|
|
1633
|
-
};
|
|
1634
|
-
function He(t) {
|
|
1635
|
-
return J("MuiCollapse", t);
|
|
1636
|
-
}
|
|
1637
|
-
q("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
1638
|
-
const _e = (t) => {
|
|
1639
|
-
const {
|
|
1640
|
-
orientation: o,
|
|
1641
|
-
classes: n
|
|
1642
|
-
} = t, r = {
|
|
1643
|
-
root: ["root", `${o}`],
|
|
1644
|
-
entered: ["entered"],
|
|
1645
|
-
hidden: ["hidden"],
|
|
1646
|
-
wrapper: ["wrapper", `${o}`],
|
|
1647
|
-
wrapperInner: ["wrapperInner", `${o}`]
|
|
1648
|
-
};
|
|
1649
|
-
return Q(r, He, n);
|
|
1650
|
-
}, Ye = V("div", {
|
|
1651
|
-
name: "MuiCollapse",
|
|
1652
|
-
slot: "Root",
|
|
1653
|
-
overridesResolver: (t, o) => {
|
|
1654
|
-
const {
|
|
1655
|
-
ownerState: n
|
|
1656
|
-
} = t;
|
|
1657
|
-
return [o.root, o[n.orientation], n.state === "entered" && o.entered, n.state === "exited" && !n.in && n.collapsedSize === "0px" && o.hidden];
|
|
1658
|
-
}
|
|
1659
|
-
})(tt(({
|
|
1660
|
-
theme: t
|
|
1661
|
-
}) => ({
|
|
1662
|
-
height: 0,
|
|
1663
|
-
overflow: "hidden",
|
|
1664
|
-
transition: t.transitions.create("height"),
|
|
1665
|
-
variants: [{
|
|
1666
|
-
props: {
|
|
1667
|
-
orientation: "horizontal"
|
|
1668
|
-
},
|
|
1669
|
-
style: {
|
|
1670
|
-
height: "auto",
|
|
1671
|
-
width: 0,
|
|
1672
|
-
transition: t.transitions.create("width")
|
|
1673
|
-
}
|
|
1674
|
-
}, {
|
|
1675
|
-
props: {
|
|
1676
|
-
state: "entered"
|
|
1677
|
-
},
|
|
1678
|
-
style: {
|
|
1679
|
-
height: "auto",
|
|
1680
|
-
overflow: "visible"
|
|
1681
|
-
}
|
|
1682
|
-
}, {
|
|
1683
|
-
props: {
|
|
1684
|
-
state: "entered",
|
|
1685
|
-
orientation: "horizontal"
|
|
1686
|
-
},
|
|
1687
|
-
style: {
|
|
1688
|
-
width: "auto"
|
|
1689
|
-
}
|
|
1690
|
-
}, {
|
|
1691
|
-
props: ({
|
|
1692
|
-
ownerState: o
|
|
1693
|
-
}) => o.state === "exited" && !o.in && o.collapsedSize === "0px",
|
|
1694
|
-
style: {
|
|
1695
|
-
visibility: "hidden"
|
|
1696
|
-
}
|
|
1697
|
-
}]
|
|
1698
|
-
}))), Xe = V("div", {
|
|
1699
|
-
name: "MuiCollapse",
|
|
1700
|
-
slot: "Wrapper",
|
|
1701
|
-
overridesResolver: (t, o) => o.wrapper
|
|
1702
|
-
})({
|
|
1703
|
-
// Hack to get children with a negative margin to not falsify the height computation.
|
|
1704
|
-
display: "flex",
|
|
1705
|
-
width: "100%",
|
|
1706
|
-
variants: [{
|
|
1707
|
-
props: {
|
|
1708
|
-
orientation: "horizontal"
|
|
1709
|
-
},
|
|
1710
|
-
style: {
|
|
1711
|
-
width: "auto",
|
|
1712
|
-
height: "100%"
|
|
1713
|
-
}
|
|
1714
|
-
}]
|
|
1715
|
-
}), Je = V("div", {
|
|
1716
|
-
name: "MuiCollapse",
|
|
1717
|
-
slot: "WrapperInner",
|
|
1718
|
-
overridesResolver: (t, o) => o.wrapperInner
|
|
1719
|
-
})({
|
|
1720
|
-
width: "100%",
|
|
1721
|
-
variants: [{
|
|
1722
|
-
props: {
|
|
1723
|
-
orientation: "horizontal"
|
|
1724
|
-
},
|
|
1725
|
-
style: {
|
|
1726
|
-
width: "auto",
|
|
1727
|
-
height: "100%"
|
|
1728
|
-
}
|
|
1729
|
-
}]
|
|
1730
|
-
}), ct = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
1731
|
-
const r = K({
|
|
1732
|
-
props: o,
|
|
1733
|
-
name: "MuiCollapse"
|
|
1734
|
-
}), {
|
|
1735
|
-
addEndListener: i,
|
|
1736
|
-
children: c,
|
|
1737
|
-
className: a,
|
|
1738
|
-
collapsedSize: l = "0px",
|
|
1739
|
-
component: d,
|
|
1740
|
-
easing: p,
|
|
1741
|
-
in: g,
|
|
1742
|
-
onEnter: S,
|
|
1743
|
-
onEntered: b,
|
|
1744
|
-
onEntering: y,
|
|
1745
|
-
onExit: h,
|
|
1746
|
-
onExited: x,
|
|
1747
|
-
onExiting: C,
|
|
1748
|
-
orientation: v = "vertical",
|
|
1749
|
-
style: I,
|
|
1750
|
-
timeout: E = te.standard,
|
|
1751
|
-
// eslint-disable-next-line react/prop-types
|
|
1752
|
-
TransitionComponent: k = kt,
|
|
1753
|
-
...F
|
|
1754
|
-
} = r, L = {
|
|
1755
|
-
...r,
|
|
1756
|
-
orientation: v,
|
|
1757
|
-
collapsedSize: l
|
|
1758
|
-
}, w = _e(L), N = mt(), M = ge(), T = m.useRef(null), R = m.useRef(), D = typeof l == "number" ? `${l}px` : l, $ = v === "horizontal", O = $ ? "width" : "height", B = m.useRef(null), W = dt(n, B), U = (f) => (A) => {
|
|
1759
|
-
if (f) {
|
|
1760
|
-
const G = B.current;
|
|
1761
|
-
A === void 0 ? f(G) : f(G, A);
|
|
1762
|
-
}
|
|
1763
|
-
}, u = () => T.current ? T.current[$ ? "clientWidth" : "clientHeight"] : 0, P = U((f, A) => {
|
|
1764
|
-
T.current && $ && (T.current.style.position = "absolute"), f.style[O] = D, S && S(f, A);
|
|
1765
|
-
}), nt = U((f, A) => {
|
|
1766
|
-
const G = u();
|
|
1767
|
-
T.current && $ && (T.current.style.position = "");
|
|
1768
|
-
const {
|
|
1769
|
-
duration: et,
|
|
1770
|
-
easing: rt
|
|
1771
|
-
} = lt({
|
|
1772
|
-
style: I,
|
|
1773
|
-
timeout: E,
|
|
1774
|
-
easing: p
|
|
1775
|
-
}, {
|
|
1776
|
-
mode: "enter"
|
|
1777
|
-
});
|
|
1778
|
-
if (E === "auto") {
|
|
1779
|
-
const bt = N.transitions.getAutoHeightDuration(G);
|
|
1780
|
-
f.style.transitionDuration = `${bt}ms`, R.current = bt;
|
|
1781
|
-
} else
|
|
1782
|
-
f.style.transitionDuration = typeof et == "string" ? et : `${et}ms`;
|
|
1783
|
-
f.style[O] = `${G}px`, f.style.transitionTimingFunction = rt, y && y(f, A);
|
|
1784
|
-
}), Jt = U((f, A) => {
|
|
1785
|
-
f.style[O] = "auto", b && b(f, A);
|
|
1786
|
-
}), qt = U((f) => {
|
|
1787
|
-
f.style[O] = `${u()}px`, h && h(f);
|
|
1788
|
-
}), Kt = U(x), Qt = U((f) => {
|
|
1789
|
-
const A = u(), {
|
|
1790
|
-
duration: G,
|
|
1791
|
-
easing: et
|
|
1792
|
-
} = lt({
|
|
1793
|
-
style: I,
|
|
1794
|
-
timeout: E,
|
|
1795
|
-
easing: p
|
|
1796
|
-
}, {
|
|
1797
|
-
mode: "exit"
|
|
1798
|
-
});
|
|
1799
|
-
if (E === "auto") {
|
|
1800
|
-
const rt = N.transitions.getAutoHeightDuration(A);
|
|
1801
|
-
f.style.transitionDuration = `${rt}ms`, R.current = rt;
|
|
1802
|
-
} else
|
|
1803
|
-
f.style.transitionDuration = typeof G == "string" ? G : `${G}ms`;
|
|
1804
|
-
f.style[O] = D, f.style.transitionTimingFunction = et, C && C(f);
|
|
1805
|
-
});
|
|
1806
|
-
return /* @__PURE__ */ s(k, {
|
|
1807
|
-
in: g,
|
|
1808
|
-
onEnter: P,
|
|
1809
|
-
onEntered: Jt,
|
|
1810
|
-
onEntering: nt,
|
|
1811
|
-
onExit: qt,
|
|
1812
|
-
onExited: Kt,
|
|
1813
|
-
onExiting: Qt,
|
|
1814
|
-
addEndListener: (f) => {
|
|
1815
|
-
E === "auto" && M.start(R.current || 0, f), i && i(B.current, f);
|
|
1816
|
-
},
|
|
1817
|
-
nodeRef: B,
|
|
1818
|
-
timeout: E === "auto" ? null : E,
|
|
1819
|
-
...F,
|
|
1820
|
-
children: (f, A) => /* @__PURE__ */ s(Ye, {
|
|
1821
|
-
as: d,
|
|
1822
|
-
className: j(w.root, a, {
|
|
1823
|
-
entered: w.entered,
|
|
1824
|
-
exited: !g && D === "0px" && w.hidden
|
|
1825
|
-
}[f]),
|
|
1826
|
-
style: {
|
|
1827
|
-
[$ ? "minWidth" : "minHeight"]: D,
|
|
1828
|
-
...I
|
|
1829
|
-
},
|
|
1830
|
-
ref: W,
|
|
1831
|
-
...A,
|
|
1832
|
-
// `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
|
|
1833
|
-
// that might have been forwarded from the Transition component.
|
|
1834
|
-
ownerState: {
|
|
1835
|
-
...L,
|
|
1836
|
-
state: f
|
|
1837
|
-
},
|
|
1838
|
-
children: /* @__PURE__ */ s(Xe, {
|
|
1839
|
-
ownerState: {
|
|
1840
|
-
...L,
|
|
1841
|
-
state: f
|
|
1842
|
-
},
|
|
1843
|
-
className: w.wrapper,
|
|
1844
|
-
ref: T,
|
|
1845
|
-
children: /* @__PURE__ */ s(Je, {
|
|
1846
|
-
ownerState: {
|
|
1847
|
-
...L,
|
|
1848
|
-
state: f
|
|
1849
|
-
},
|
|
1850
|
-
className: w.wrapperInner,
|
|
1851
|
-
children: c
|
|
1852
|
-
})
|
|
1853
|
-
})
|
|
1854
|
-
})
|
|
1855
|
-
});
|
|
1856
|
-
});
|
|
1857
|
-
process.env.NODE_ENV !== "production" && (ct.propTypes = {
|
|
1858
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1859
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1860
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1861
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1862
|
-
/**
|
|
1863
|
-
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
1864
|
-
* node and a done callback. Allows for more fine grained transition end
|
|
1865
|
-
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
1866
|
-
*/
|
|
1867
|
-
addEndListener: e.func,
|
|
1868
|
-
/**
|
|
1869
|
-
* The content node to be collapsed.
|
|
1870
|
-
*/
|
|
1871
|
-
children: e.node,
|
|
1872
|
-
/**
|
|
1873
|
-
* Override or extend the styles applied to the component.
|
|
1874
|
-
*/
|
|
1875
|
-
classes: e.object,
|
|
1876
|
-
/**
|
|
1877
|
-
* @ignore
|
|
1878
|
-
*/
|
|
1879
|
-
className: e.string,
|
|
1880
|
-
/**
|
|
1881
|
-
* The width (horizontal) or height (vertical) of the container when collapsed.
|
|
1882
|
-
* @default '0px'
|
|
1883
|
-
*/
|
|
1884
|
-
collapsedSize: e.oneOfType([e.number, e.string]),
|
|
1885
|
-
/**
|
|
1886
|
-
* The component used for the root node.
|
|
1887
|
-
* Either a string to use a HTML element or a component.
|
|
1888
|
-
*/
|
|
1889
|
-
component: Bt,
|
|
1890
|
-
/**
|
|
1891
|
-
* The transition timing function.
|
|
1892
|
-
* You may specify a single easing or a object containing enter and exit values.
|
|
1893
|
-
*/
|
|
1894
|
-
easing: e.oneOfType([e.shape({
|
|
1895
|
-
enter: e.string,
|
|
1896
|
-
exit: e.string
|
|
1897
|
-
}), e.string]),
|
|
1898
|
-
/**
|
|
1899
|
-
* If `true`, the component will transition in.
|
|
1900
|
-
*/
|
|
1901
|
-
in: e.bool,
|
|
1902
|
-
/**
|
|
1903
|
-
* @ignore
|
|
1904
|
-
*/
|
|
1905
|
-
onEnter: e.func,
|
|
1906
|
-
/**
|
|
1907
|
-
* @ignore
|
|
1908
|
-
*/
|
|
1909
|
-
onEntered: e.func,
|
|
1910
|
-
/**
|
|
1911
|
-
* @ignore
|
|
1912
|
-
*/
|
|
1913
|
-
onEntering: e.func,
|
|
1914
|
-
/**
|
|
1915
|
-
* @ignore
|
|
1916
|
-
*/
|
|
1917
|
-
onExit: e.func,
|
|
1918
|
-
/**
|
|
1919
|
-
* @ignore
|
|
1920
|
-
*/
|
|
1921
|
-
onExited: e.func,
|
|
1922
|
-
/**
|
|
1923
|
-
* @ignore
|
|
1924
|
-
*/
|
|
1925
|
-
onExiting: e.func,
|
|
1926
|
-
/**
|
|
1927
|
-
* The transition orientation.
|
|
1928
|
-
* @default 'vertical'
|
|
1929
|
-
*/
|
|
1930
|
-
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
1931
|
-
/**
|
|
1932
|
-
* @ignore
|
|
1933
|
-
*/
|
|
1934
|
-
style: e.object,
|
|
1935
|
-
/**
|
|
1936
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1937
|
-
*/
|
|
1938
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1939
|
-
/**
|
|
1940
|
-
* The duration for the transition, in milliseconds.
|
|
1941
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
1942
|
-
*
|
|
1943
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
1944
|
-
* @default duration.standard
|
|
1945
|
-
*/
|
|
1946
|
-
timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
1947
|
-
appear: e.number,
|
|
1948
|
-
enter: e.number,
|
|
1949
|
-
exit: e.number
|
|
1950
|
-
})])
|
|
1951
|
-
});
|
|
1952
|
-
ct && (ct.muiSupportAuto = !0);
|
|
1953
|
-
const St = pt(/* @__PURE__ */ s("path", {
|
|
1954
|
-
d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"
|
|
1955
|
-
}), "ExpandLess"), Rt = pt(/* @__PURE__ */ s("path", {
|
|
1956
|
-
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
1957
|
-
}), "ExpandMore"), qe = X(de, {
|
|
1958
|
-
shouldForwardProp: (t) => t !== "collapsed"
|
|
1959
|
-
})(({ collapsed: t }) => ({
|
|
1960
|
-
paddingLeft: t ? 0 : "2rem",
|
|
1961
|
-
a: {
|
|
1962
|
-
paddingLeft: t ? "3rem" : "1rem"
|
|
1963
|
-
}
|
|
1964
|
-
})), Ke = X(ue, { shouldForwardProp: (t) => t !== "collapsed" })`
|
|
1965
|
-
.MuiPaper-root {
|
|
1966
|
-
background-color: ${z.colors.charcoal};
|
|
1967
|
-
ul {
|
|
1968
|
-
display: flex;
|
|
1969
|
-
flex-wrap: wrap;
|
|
1970
|
-
flex-direction: row;
|
|
1971
|
-
align-items: center;
|
|
1972
|
-
padding: 0;
|
|
1973
|
-
width: 100%;
|
|
1974
|
-
li {
|
|
1975
|
-
width: auto;
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
`, Pt = ({
|
|
1980
|
-
type: t = "link",
|
|
1981
|
-
menuOrientation: o,
|
|
1982
|
-
menuPosition: n,
|
|
1983
|
-
collapsed: r,
|
|
1984
|
-
...i
|
|
1985
|
-
}) => {
|
|
1986
|
-
switch (t) {
|
|
1987
|
-
case "link":
|
|
1988
|
-
return /* @__PURE__ */ s(Ht, { ...i, menuOrientation: o });
|
|
1989
|
-
case "menu":
|
|
1990
|
-
return /* @__PURE__ */ s(_t, { menuOrientation: o, position: n, collapsed: r, ...i });
|
|
1991
|
-
case "divider":
|
|
1992
|
-
return /* @__PURE__ */ s(
|
|
1993
|
-
ht,
|
|
1994
|
-
{
|
|
1995
|
-
color: z.colors.white,
|
|
1996
|
-
opacity: 0.5,
|
|
1997
|
-
spacing: 0,
|
|
1998
|
-
orientation: o === "horizontal" ? "vertical" : "horizontal"
|
|
1999
|
-
}
|
|
2000
|
-
);
|
|
2001
|
-
default:
|
|
2002
|
-
return null;
|
|
2003
|
-
}
|
|
2004
|
-
}, _t = ({
|
|
2005
|
-
label: t,
|
|
2006
|
-
icon: o,
|
|
2007
|
-
navItems: n,
|
|
2008
|
-
menuOrientation: r,
|
|
2009
|
-
collapsed: i,
|
|
2010
|
-
position: c
|
|
2011
|
-
}) => {
|
|
2012
|
-
const [a, l] = ft(!1), [d, p] = ft(null), g = o, S = (y) => {
|
|
2013
|
-
l(!a), r === "horizontal" && (p(null), p(y.currentTarget));
|
|
2014
|
-
}, b = () => {
|
|
2015
|
-
l(!1), p(null);
|
|
2016
|
-
};
|
|
2017
|
-
return /* @__PURE__ */ H($t, { children: [
|
|
2018
|
-
/* @__PURE__ */ s(ut, { disablePadding: !0, children: /* @__PURE__ */ H(yt, { onClick: S, menuOrientation: r, children: [
|
|
2019
|
-
g && g,
|
|
2020
|
-
/* @__PURE__ */ s(Gt, { primary: t, collapsed: i }),
|
|
2021
|
-
c !== "bottom" && (a ? /* @__PURE__ */ s(St, { sx: { marginLeft: "8px" } }) : /* @__PURE__ */ s(Rt, { sx: { marginLeft: "8px" } })),
|
|
2022
|
-
c === "bottom" && (a ? /* @__PURE__ */ s(Rt, { sx: { marginLeft: "8px" } }) : /* @__PURE__ */ s(St, { sx: { marginLeft: "8px" } }))
|
|
2023
|
-
] }) }, t),
|
|
2024
|
-
r === "vertical" && /* @__PURE__ */ s(ct, { in: a, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ s(qe, { component: "div", disablePadding: !0, collapsed: i, children: n == null ? void 0 : n.map((y, h) => /* @__PURE__ */ s(Pt, { ...y, collapsed: i }, `${JSON.stringify(y)}-${h}`)) }) }),
|
|
2025
|
-
r === "horizontal" && /* @__PURE__ */ s(
|
|
2026
|
-
Ke,
|
|
2027
|
-
{
|
|
2028
|
-
anchorEl: d,
|
|
2029
|
-
anchorOrigin: { horizontal: "left", vertical: c === "bottom" ? "top" : "bottom" },
|
|
2030
|
-
open: a,
|
|
2031
|
-
onClose: b,
|
|
2032
|
-
children: n == null ? void 0 : n.map((y, h) => /* @__PURE__ */ s(
|
|
2033
|
-
Pt,
|
|
2034
|
-
{
|
|
2035
|
-
...y,
|
|
2036
|
-
collapsed: i,
|
|
2037
|
-
menuOrientation: r,
|
|
2038
|
-
menuPosition: c
|
|
2039
|
-
},
|
|
2040
|
-
`${JSON.stringify(y)}-${h}`
|
|
2041
|
-
))
|
|
2042
|
-
}
|
|
2043
|
-
)
|
|
2044
|
-
] });
|
|
2045
|
-
}, Lt = ({
|
|
2046
|
-
type: t = "link",
|
|
2047
|
-
menuOrientation: o,
|
|
2048
|
-
menuPosition: n,
|
|
2049
|
-
...r
|
|
2050
|
-
}) => {
|
|
2051
|
-
switch (t) {
|
|
2052
|
-
case "link":
|
|
2053
|
-
return /* @__PURE__ */ s(Ht, { ...r, menuOrientation: o });
|
|
2054
|
-
case "menu":
|
|
2055
|
-
return /* @__PURE__ */ s(_t, { menuOrientation: o, position: n, ...r });
|
|
2056
|
-
case "divider":
|
|
2057
|
-
return /* @__PURE__ */ s(
|
|
2058
|
-
ht,
|
|
2059
|
-
{
|
|
2060
|
-
color: z.colors.white,
|
|
2061
|
-
opacity: 0.5,
|
|
2062
|
-
spacing: 0,
|
|
2063
|
-
orientation: o === "horizontal" ? "vertical" : "horizontal"
|
|
2064
|
-
}
|
|
2065
|
-
);
|
|
2066
|
-
default:
|
|
2067
|
-
return null;
|
|
2068
|
-
}
|
|
2069
|
-
}, Yt = ["collapsed", "withAppBar"], Xt = X(Ft, { shouldForwardProp: (t) => !Yt.includes(t) })(({ collapsed: t, anchor: o, withAppBar: n }) => ({
|
|
2070
|
-
minWidth: t ? 0 : `${z.constants.navBarWidth}px`,
|
|
2071
|
-
width: t ? "auto" : "81px",
|
|
2072
|
-
transition: "201ms all ease-out",
|
|
2073
|
-
flexShrink: 0,
|
|
2074
|
-
zIndex: 100,
|
|
2075
|
-
".MuiPaper-root": {
|
|
2076
|
-
padding: 0,
|
|
2077
|
-
transition: "313ms all ease-in-out",
|
|
2078
|
-
minWidth: t ? 0 : `${z.constants.navBarWidth}px`,
|
|
2079
|
-
width: t ? "auto" : "81px",
|
|
2080
|
-
boxSizing: "border-box",
|
|
2081
|
-
backgroundColor: z.colors.midnight,
|
|
2082
|
-
color: z.colors.white,
|
|
2083
|
-
boxShadow: "0px 0px 7px 4px rgba(0, 0, 0, 0.63)",
|
|
2084
|
-
overflowX: "hidden",
|
|
2085
|
-
height: o === "top" || o === "bottom" ? "auto" : n ? `calc(100% - ${z.constants.appBarHeight}px)` : "100%",
|
|
2086
|
-
top: o !== "bottom" ? n ? `${z.constants.appBarHeight}px` : 0 : void 0
|
|
2087
|
-
}
|
|
2088
|
-
})), Qe = X(Xt, { shouldForwardProp: (t) => !Yt.includes(t) })`
|
|
2089
|
-
.MuiPaper-root {
|
|
2090
|
-
width: 100%;
|
|
2091
|
-
display: flex;
|
|
2092
|
-
flex-wrap: wrap;
|
|
2093
|
-
flex-direction: row;
|
|
2094
|
-
align-items: center;
|
|
2095
|
-
li {
|
|
2096
|
-
width: auto;
|
|
2097
|
-
}
|
|
2098
|
-
}
|
|
2099
|
-
`, fo = ({ navItems: t, anchor: o = "left", collapsible: n, ...r }) => {
|
|
2100
|
-
const [i, c] = ft(!1), a = o === "top" || o === "bottom" ? "horizontal" : "vertical";
|
|
2101
|
-
return a === "horizontal" ? /* @__PURE__ */ s(Qe, { ...r, anchor: o, variant: "permanent", children: t == null ? void 0 : t.map((l, d) => /* @__PURE__ */ Zt(
|
|
2102
|
-
Lt,
|
|
2103
|
-
{
|
|
2104
|
-
...l,
|
|
2105
|
-
menuOrientation: a,
|
|
2106
|
-
menuPosition: o,
|
|
2107
|
-
key: `${JSON.stringify(l)}-${d}`
|
|
2108
|
-
}
|
|
2109
|
-
)) }) : /* @__PURE__ */ H(Xt, { ...r, anchor: o, variant: "permanent", collapsed: i, children: [
|
|
2110
|
-
n && /* @__PURE__ */ H($t, { children: [
|
|
2111
|
-
/* @__PURE__ */ s(ut, { disablePadding: !0, children: /* @__PURE__ */ H(
|
|
2112
|
-
Ge,
|
|
2113
|
-
{
|
|
2114
|
-
onClick: () => c(!i),
|
|
2115
|
-
menuOrientation: a,
|
|
2116
|
-
menuPosition: o,
|
|
2117
|
-
children: [
|
|
2118
|
-
o === "left" && (i ? /* @__PURE__ */ s(Ct, {}) : /* @__PURE__ */ s(wt, {})),
|
|
2119
|
-
o === "right" && (i ? /* @__PURE__ */ s(wt, {}) : /* @__PURE__ */ s(Ct, {}))
|
|
2120
|
-
]
|
|
2121
|
-
}
|
|
2122
|
-
) }),
|
|
2123
|
-
/* @__PURE__ */ s(ht, { color: z.colors.white, opacity: 0.5, spacing: 0 })
|
|
2124
|
-
] }),
|
|
2125
|
-
t == null ? void 0 : t.map((l, d) => /* @__PURE__ */ s(
|
|
2126
|
-
Lt,
|
|
2127
|
-
{
|
|
2128
|
-
...l,
|
|
2129
|
-
menuOrientation: a,
|
|
2130
|
-
menuPosition: o,
|
|
2131
|
-
collapsed: i
|
|
2132
|
-
},
|
|
2133
|
-
`${JSON.stringify(l)}-${d}`
|
|
2134
|
-
))
|
|
2135
|
-
] });
|
|
2136
|
-
};
|
|
2137
|
-
export {
|
|
2138
|
-
fo as N
|
|
2139
|
-
};
|