jcicl 0.0.21 → 0.0.23
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/NavLink.js +1 -1
- package/README.md +12 -15
- package/base/Avatar/{Avatar/Avatar.js → Avatar.js} +4 -4
- package/base/Avatar/index.d.ts +1 -2
- package/base/Avatar/index.js +2 -4
- package/base/{Avatar/AvatarWithImage → AvatarWithImage}/AvatarWithImage.js +3 -3
- package/base/AvatarWithImage/index.d.ts +1 -0
- package/base/Button/Button.js +12 -16
- package/base/Divider/index.d.ts +1 -1
- package/base/Flex/Flex.js +6 -5
- package/base/Flex/index.d.ts +1 -1
- package/base/Grid/index.d.ts +1 -1
- package/base/ScrollContainer/ScrollContainer.d.ts +10 -0
- package/base/ScrollContainer/ScrollContainer.js +42 -0
- package/base/index.d.ts +2 -2
- package/base/index.js +2 -2
- package/composite/WithLabel/WithLabel.d.ts +6 -0
- package/composite/WithLabel/WithLabel.js +9 -0
- package/composite/WithLabel/index.d.ts +1 -0
- package/composite/WithLabel/index.js +4 -0
- package/composite/index.d.ts +1 -0
- package/composite/index.js +4 -0
- package/index.d.ts +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/supercomposite/AppBar/AppBar.js +1 -1
- package/supercomposite/AppHeader/AppHeader.js +16 -16
- package/supercomposite/Nav/Nav.d.ts +10 -10
- package/supercomposite/Nav/Nav.js +76 -614
- package/supercomposite/Nav/index.d.ts +1 -2
- package/supercomposite/OldNav/Nav.d.ts +13 -0
- package/supercomposite/OldNav/Nav.js +626 -0
- package/supercomposite/OldNav/index.d.ts +2 -0
- package/supercomposite/OldNav/index.js +4 -0
- package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkButton.d.ts +1 -1
- package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavMenu.d.ts +1 -1
- package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/types.d.ts +1 -1
- package/supercomposite/index.d.ts +1 -1
- package/templates/AppContainer/AppContainer.d.ts +1 -1
- package/templates/AppContainer/AppContainer.js +22 -22
- package/templates/BasicPage/BasicPage.d.ts +1 -1
- package/templates/BasicPage/BasicPage.js +8 -8
- package/theme.d.ts +9 -5
- package/theme.js +9 -5
- package/base/Avatar/Avatar/index.d.ts +0 -1
- package/base/Avatar/Avatar/index.js +0 -4
- package/base/Avatar/AvatarWithImage/index.d.ts +0 -1
- package/composite/ContactCard/ContactCard.d.ts +0 -2
- package/composite/ContactListItem/ContactListItem.js +0 -1
- package/supercomposite/CompactNav/CompactNav.d.ts +0 -17
- package/supercomposite/CompactNav/CompactNav.js +0 -72
- package/supercomposite/CompactNav/index.d.ts +0 -1
- package/supercomposite/CompactNav/index.js +0 -4
- /package/base/Avatar/{Avatar/Avatar.d.ts → Avatar.d.ts} +0 -0
- /package/base/{Avatar/AvatarWithImage → AvatarWithImage}/AvatarWithImage.d.ts +0 -0
- /package/base/{Avatar/AvatarWithImage → AvatarWithImage}/index.js +0 -0
- /package/composite/{ContactListItem/ContactListItem.d.ts → List/List.d.ts} +0 -0
- /package/composite/{ContactCard/ContactCard.js → List/List.js} +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/NavItem.d.ts +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/NavItem.js +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLink.d.ts +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLink.js +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkButton.js +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkText.d.ts +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkText.js +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavMenu.js +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/types.js +0 -0
- /package/supercomposite/{Nav → OldNav}/types.d.ts +0 -0
- /package/supercomposite/{Nav → OldNav}/types.js +0 -0
|
@@ -1,626 +1,88 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
exit: n.transitions.easing.sharp
|
|
42
|
-
}, h = {
|
|
43
|
-
enter: n.transitions.duration.enteringScreen,
|
|
44
|
-
exit: n.transitions.duration.leavingScreen
|
|
45
|
-
}, {
|
|
46
|
-
addEndListener: s,
|
|
47
|
-
appear: p = !0,
|
|
48
|
-
children: c,
|
|
49
|
-
container: d,
|
|
50
|
-
direction: m = "down",
|
|
51
|
-
easing: D = a,
|
|
52
|
-
in: y,
|
|
53
|
-
onEnter: $,
|
|
54
|
-
onEntered: N,
|
|
55
|
-
onEntering: S,
|
|
56
|
-
onExit: E,
|
|
57
|
-
onExited: R,
|
|
58
|
-
onExiting: A,
|
|
59
|
-
style: C,
|
|
60
|
-
timeout: P = h,
|
|
61
|
-
// eslint-disable-next-line react/prop-types
|
|
62
|
-
TransitionComponent: T = Pe,
|
|
63
|
-
...k
|
|
64
|
-
} = e, u = x.useRef(null), j = Se(ve(c), u, o), w = (i) => (f) => {
|
|
65
|
-
i && (f === void 0 ? i(u.current) : i(u.current, f));
|
|
66
|
-
}, b = w((i, f) => {
|
|
67
|
-
z(m, i, d), Te(i), $ && $(i, f);
|
|
68
|
-
}), g = w((i, f) => {
|
|
69
|
-
const F = X({
|
|
70
|
-
timeout: P,
|
|
71
|
-
style: C,
|
|
72
|
-
easing: D
|
|
73
|
-
}, {
|
|
74
|
-
mode: "enter"
|
|
75
|
-
});
|
|
76
|
-
i.style.webkitTransition = n.transitions.create("-webkit-transform", {
|
|
77
|
-
...F
|
|
78
|
-
}), i.style.transition = n.transitions.create("transform", {
|
|
79
|
-
...F
|
|
80
|
-
}), i.style.webkitTransform = "none", i.style.transform = "none", S && S(i, f);
|
|
81
|
-
}), B = w(N), M = w(A), ae = w((i) => {
|
|
82
|
-
const f = X({
|
|
83
|
-
timeout: P,
|
|
84
|
-
style: C,
|
|
85
|
-
easing: D
|
|
86
|
-
}, {
|
|
87
|
-
mode: "exit"
|
|
88
|
-
});
|
|
89
|
-
i.style.webkitTransition = n.transitions.create("-webkit-transform", f), i.style.transition = n.transitions.create("transform", f), z(m, i, d), E && E(i);
|
|
90
|
-
}), se = w((i) => {
|
|
91
|
-
i.style.webkitTransition = "", i.style.transition = "", R && R(i);
|
|
92
|
-
}), pe = (i) => {
|
|
93
|
-
s && s(u.current, i);
|
|
94
|
-
}, W = x.useCallback(() => {
|
|
95
|
-
u.current && z(m, u.current, d);
|
|
96
|
-
}, [m, d]);
|
|
97
|
-
return x.useEffect(() => {
|
|
98
|
-
if (y || m === "down" || m === "right")
|
|
99
|
-
return;
|
|
100
|
-
const i = Ee(() => {
|
|
101
|
-
u.current && z(m, u.current, d);
|
|
102
|
-
}), f = K(u.current);
|
|
103
|
-
return f.addEventListener("resize", i), () => {
|
|
104
|
-
i.clear(), f.removeEventListener("resize", i);
|
|
105
|
-
};
|
|
106
|
-
}, [m, y, d]), x.useEffect(() => {
|
|
107
|
-
y || W();
|
|
108
|
-
}, [y, W]), /* @__PURE__ */ l(T, {
|
|
109
|
-
nodeRef: u,
|
|
110
|
-
onEnter: b,
|
|
111
|
-
onEntered: B,
|
|
112
|
-
onEntering: g,
|
|
113
|
-
onExit: ae,
|
|
114
|
-
onExited: se,
|
|
115
|
-
onExiting: M,
|
|
116
|
-
addEndListener: pe,
|
|
117
|
-
appear: p,
|
|
118
|
-
in: y,
|
|
119
|
-
timeout: P,
|
|
120
|
-
...k,
|
|
121
|
-
children: (i, f) => /* @__PURE__ */ x.cloneElement(c, {
|
|
122
|
-
ref: j,
|
|
123
|
-
style: {
|
|
124
|
-
visibility: i === "exited" && !y ? "hidden" : void 0,
|
|
125
|
-
...C,
|
|
126
|
-
...c.props.style
|
|
127
|
-
},
|
|
128
|
-
...f
|
|
129
|
-
})
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
process.env.NODE_ENV !== "production" && (ee.propTypes = {
|
|
133
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
134
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
135
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
136
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
137
|
-
/**
|
|
138
|
-
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
139
|
-
* node and a done callback. Allows for more fine grained transition end
|
|
140
|
-
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
141
|
-
*/
|
|
142
|
-
addEndListener: r.func,
|
|
143
|
-
/**
|
|
144
|
-
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
145
|
-
* Set this to `false` to disable this behavior.
|
|
146
|
-
* @default true
|
|
147
|
-
*/
|
|
148
|
-
appear: r.bool,
|
|
149
|
-
/**
|
|
150
|
-
* A single child content element.
|
|
151
|
-
*/
|
|
152
|
-
children: we.isRequired,
|
|
153
|
-
/**
|
|
154
|
-
* An HTML element, or a function that returns one.
|
|
155
|
-
* It's used to set the container the Slide is transitioning from.
|
|
156
|
-
*/
|
|
157
|
-
container: $e(r.oneOfType([be, r.func]), (t) => {
|
|
158
|
-
if (t.open) {
|
|
159
|
-
const e = Z(t.container);
|
|
160
|
-
if (e && e.nodeType === 1) {
|
|
161
|
-
const o = e.getBoundingClientRect();
|
|
162
|
-
if (process.env.NODE_ENV !== "test" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
|
|
163
|
-
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(`
|
|
164
|
-
`));
|
|
165
|
-
} else if (!e || typeof e.getBoundingClientRect != "function" || e.contextElement != null && e.contextElement.nodeType !== 1)
|
|
166
|
-
return new Error(["MUI: The `container` prop provided to the component is invalid.", "It should be an HTML element instance."].join(`
|
|
167
|
-
`));
|
|
1
|
+
import { jsx as i, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m } from "react";
|
|
3
|
+
import { n as s, i as f } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import e from "../../theme.js";
|
|
5
|
+
import { B as x } from "../../.chunks/ButtonBase.js";
|
|
6
|
+
const g = s(x, {
|
|
7
|
+
shouldForwardProp: (o) => f(o)
|
|
8
|
+
})(({ active: o }) => {
|
|
9
|
+
var t;
|
|
10
|
+
return {
|
|
11
|
+
display: "flex",
|
|
12
|
+
flexDirection: "column",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "center",
|
|
15
|
+
padding: "0 8px 8px 8px",
|
|
16
|
+
transition: "313ms all ease-in-out",
|
|
17
|
+
backgroundColor: o ? e.colors.sunlight : "transparent",
|
|
18
|
+
boxShadow: o ? (t = e.boxShadow) == null ? void 0 : t.darkGreen : "none",
|
|
19
|
+
"&:hover, :focus-visible": {
|
|
20
|
+
svg: {
|
|
21
|
+
backgroundColor: e.colors.sunlight
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
svg: {
|
|
25
|
+
fontSize: "2.1rem",
|
|
26
|
+
fill: e.colors.darkGreen,
|
|
27
|
+
backgroundColor: o ? e.colors.sunlight : "transparent",
|
|
28
|
+
borderRadius: "50%",
|
|
29
|
+
padding: "8px",
|
|
30
|
+
display: "flex",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
justifyContent: "center",
|
|
33
|
+
transition: "313ms all ease-in-out"
|
|
34
|
+
},
|
|
35
|
+
span: {
|
|
36
|
+
fontFamily: "Roboto, sans-serif",
|
|
37
|
+
fontSize: "12px",
|
|
38
|
+
fontWeight: "bold",
|
|
39
|
+
color: e.colors.darkGreen,
|
|
40
|
+
textAlign: "center"
|
|
168
41
|
}
|
|
169
|
-
return null;
|
|
170
|
-
}),
|
|
171
|
-
/**
|
|
172
|
-
* Direction the child node will enter from.
|
|
173
|
-
* @default 'down'
|
|
174
|
-
*/
|
|
175
|
-
direction: r.oneOf(["down", "left", "right", "up"]),
|
|
176
|
-
/**
|
|
177
|
-
* The transition timing function.
|
|
178
|
-
* You may specify a single easing or a object containing enter and exit values.
|
|
179
|
-
* @default {
|
|
180
|
-
* enter: theme.transitions.easing.easeOut,
|
|
181
|
-
* exit: theme.transitions.easing.sharp,
|
|
182
|
-
* }
|
|
183
|
-
*/
|
|
184
|
-
easing: r.oneOfType([r.shape({
|
|
185
|
-
enter: r.string,
|
|
186
|
-
exit: r.string
|
|
187
|
-
}), r.string]),
|
|
188
|
-
/**
|
|
189
|
-
* If `true`, the component will transition in.
|
|
190
|
-
*/
|
|
191
|
-
in: r.bool,
|
|
192
|
-
/**
|
|
193
|
-
* @ignore
|
|
194
|
-
*/
|
|
195
|
-
onEnter: r.func,
|
|
196
|
-
/**
|
|
197
|
-
* @ignore
|
|
198
|
-
*/
|
|
199
|
-
onEntered: r.func,
|
|
200
|
-
/**
|
|
201
|
-
* @ignore
|
|
202
|
-
*/
|
|
203
|
-
onEntering: r.func,
|
|
204
|
-
/**
|
|
205
|
-
* @ignore
|
|
206
|
-
*/
|
|
207
|
-
onExit: r.func,
|
|
208
|
-
/**
|
|
209
|
-
* @ignore
|
|
210
|
-
*/
|
|
211
|
-
onExited: r.func,
|
|
212
|
-
/**
|
|
213
|
-
* @ignore
|
|
214
|
-
*/
|
|
215
|
-
onExiting: r.func,
|
|
216
|
-
/**
|
|
217
|
-
* @ignore
|
|
218
|
-
*/
|
|
219
|
-
style: r.object,
|
|
220
|
-
/**
|
|
221
|
-
* The duration for the transition, in milliseconds.
|
|
222
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
223
|
-
* @default {
|
|
224
|
-
* enter: theme.transitions.duration.enteringScreen,
|
|
225
|
-
* exit: theme.transitions.duration.leavingScreen,
|
|
226
|
-
* }
|
|
227
|
-
*/
|
|
228
|
-
timeout: r.oneOfType([r.number, r.shape({
|
|
229
|
-
appear: r.number,
|
|
230
|
-
enter: r.number,
|
|
231
|
-
exit: r.number
|
|
232
|
-
})])
|
|
233
|
-
});
|
|
234
|
-
function Oe(t) {
|
|
235
|
-
return me("MuiDrawer", t);
|
|
236
|
-
}
|
|
237
|
-
he("MuiDrawer", ["root", "docked", "paper", "paperAnchorLeft", "paperAnchorRight", "paperAnchorTop", "paperAnchorBottom", "paperAnchorDockedLeft", "paperAnchorDockedRight", "paperAnchorDockedTop", "paperAnchorDockedBottom", "modal"]);
|
|
238
|
-
const te = (t, e) => {
|
|
239
|
-
const {
|
|
240
|
-
ownerState: o
|
|
241
|
-
} = t;
|
|
242
|
-
return [e.root, (o.variant === "permanent" || o.variant === "persistent") && e.docked, e.modal];
|
|
243
|
-
}, ze = (t) => {
|
|
244
|
-
const {
|
|
245
|
-
classes: e,
|
|
246
|
-
anchor: o,
|
|
247
|
-
variant: n
|
|
248
|
-
} = t, a = {
|
|
249
|
-
root: ["root"],
|
|
250
|
-
docked: [(n === "permanent" || n === "persistent") && "docked"],
|
|
251
|
-
modal: ["modal"],
|
|
252
|
-
paper: ["paper", `paperAnchor${L(o)}`, n !== "temporary" && `paperAnchorDocked${L(o)}`]
|
|
253
42
|
};
|
|
254
|
-
|
|
255
|
-
}, Le = V(ke, {
|
|
256
|
-
name: "MuiDrawer",
|
|
257
|
-
slot: "Root",
|
|
258
|
-
overridesResolver: te
|
|
259
|
-
})(Q(({
|
|
260
|
-
theme: t
|
|
261
|
-
}) => ({
|
|
262
|
-
zIndex: (t.vars || t).zIndex.drawer
|
|
263
|
-
}))), Y = V("div", {
|
|
264
|
-
shouldForwardProp: ge,
|
|
265
|
-
name: "MuiDrawer",
|
|
266
|
-
slot: "Docked",
|
|
267
|
-
skipVariantsResolver: !1,
|
|
268
|
-
overridesResolver: te
|
|
269
|
-
})({
|
|
270
|
-
flex: "0 0 auto"
|
|
271
|
-
}), Ne = V(De, {
|
|
272
|
-
name: "MuiDrawer",
|
|
273
|
-
slot: "Paper",
|
|
274
|
-
overridesResolver: (t, e) => {
|
|
275
|
-
const {
|
|
276
|
-
ownerState: o
|
|
277
|
-
} = t;
|
|
278
|
-
return [e.paper, e[`paperAnchor${L(o.anchor)}`], o.variant !== "temporary" && e[`paperAnchorDocked${L(o.anchor)}`]];
|
|
279
|
-
}
|
|
280
|
-
})(Q(({
|
|
281
|
-
theme: t
|
|
282
|
-
}) => ({
|
|
283
|
-
overflowY: "auto",
|
|
43
|
+
}), h = s("div")({
|
|
284
44
|
display: "flex",
|
|
285
45
|
flexDirection: "column",
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
left: 0
|
|
304
|
-
}
|
|
305
|
-
}, {
|
|
306
|
-
props: {
|
|
307
|
-
anchor: "top"
|
|
308
|
-
},
|
|
309
|
-
style: {
|
|
310
|
-
top: 0,
|
|
311
|
-
left: 0,
|
|
312
|
-
right: 0,
|
|
313
|
-
height: "auto",
|
|
314
|
-
maxHeight: "100%"
|
|
315
|
-
}
|
|
316
|
-
}, {
|
|
317
|
-
props: {
|
|
318
|
-
anchor: "right"
|
|
46
|
+
backgroundColor: "transparent",
|
|
47
|
+
alignItems: "center",
|
|
48
|
+
justifyContent: "flex-start",
|
|
49
|
+
maxHeight: "100%",
|
|
50
|
+
flexShrink: 0,
|
|
51
|
+
overflowX: "hidden",
|
|
52
|
+
overflowY: "auto",
|
|
53
|
+
gap: "1rem",
|
|
54
|
+
transition: "313ms all ease-in-out",
|
|
55
|
+
"@media screen and (-webkit-min-device-pixel-ratio:0)": {
|
|
56
|
+
backgroundColor: "transparent",
|
|
57
|
+
"-webkit-background-clip": "text",
|
|
58
|
+
transition: "313ms all ease-in-out",
|
|
59
|
+
"::-webkit-scrollbar": {
|
|
60
|
+
width: "6px",
|
|
61
|
+
height: "6px",
|
|
62
|
+
overflow: "visible"
|
|
319
63
|
},
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
}
|
|
323
|
-
}, {
|
|
324
|
-
props: {
|
|
325
|
-
anchor: "bottom"
|
|
64
|
+
"::-webkit-scrollbar-track": {
|
|
65
|
+
display: "none"
|
|
326
66
|
},
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
bottom: 0,
|
|
331
|
-
right: 0,
|
|
332
|
-
height: "auto",
|
|
333
|
-
maxHeight: "100%"
|
|
334
|
-
}
|
|
335
|
-
}, {
|
|
336
|
-
props: ({
|
|
337
|
-
ownerState: e
|
|
338
|
-
}) => e.anchor === "left" && e.variant !== "temporary",
|
|
339
|
-
style: {
|
|
340
|
-
borderRight: `1px solid ${(t.vars || t).palette.divider}`
|
|
341
|
-
}
|
|
342
|
-
}, {
|
|
343
|
-
props: ({
|
|
344
|
-
ownerState: e
|
|
345
|
-
}) => e.anchor === "top" && e.variant !== "temporary",
|
|
346
|
-
style: {
|
|
347
|
-
borderBottom: `1px solid ${(t.vars || t).palette.divider}`
|
|
348
|
-
}
|
|
349
|
-
}, {
|
|
350
|
-
props: ({
|
|
351
|
-
ownerState: e
|
|
352
|
-
}) => e.anchor === "right" && e.variant !== "temporary",
|
|
353
|
-
style: {
|
|
354
|
-
borderLeft: `1px solid ${(t.vars || t).palette.divider}`
|
|
355
|
-
}
|
|
356
|
-
}, {
|
|
357
|
-
props: ({
|
|
358
|
-
ownerState: e
|
|
359
|
-
}) => e.anchor === "bottom" && e.variant !== "temporary",
|
|
360
|
-
style: {
|
|
361
|
-
borderTop: `1px solid ${(t.vars || t).palette.divider}`
|
|
362
|
-
}
|
|
363
|
-
}]
|
|
364
|
-
}))), re = {
|
|
365
|
-
left: "right",
|
|
366
|
-
right: "left",
|
|
367
|
-
top: "down",
|
|
368
|
-
bottom: "up"
|
|
369
|
-
};
|
|
370
|
-
function Ae(t) {
|
|
371
|
-
return ["left", "right"].includes(t);
|
|
372
|
-
}
|
|
373
|
-
function je({
|
|
374
|
-
direction: t
|
|
375
|
-
}, e) {
|
|
376
|
-
return t === "rtl" && Ae(e) ? re[e] : e;
|
|
377
|
-
}
|
|
378
|
-
const ne = /* @__PURE__ */ x.forwardRef(function(e, o) {
|
|
379
|
-
const n = xe({
|
|
380
|
-
props: e,
|
|
381
|
-
name: "MuiDrawer"
|
|
382
|
-
}), a = G(), h = Re(), s = {
|
|
383
|
-
enter: a.transitions.duration.enteringScreen,
|
|
384
|
-
exit: a.transitions.duration.leavingScreen
|
|
385
|
-
}, {
|
|
386
|
-
anchor: p = "left",
|
|
387
|
-
BackdropProps: c,
|
|
388
|
-
children: d,
|
|
389
|
-
className: m,
|
|
390
|
-
elevation: D = 16,
|
|
391
|
-
hideBackdrop: y = !1,
|
|
392
|
-
ModalProps: {
|
|
393
|
-
BackdropProps: $,
|
|
394
|
-
...N
|
|
395
|
-
} = {},
|
|
396
|
-
onClose: S,
|
|
397
|
-
open: E = !1,
|
|
398
|
-
PaperProps: R = {},
|
|
399
|
-
SlideProps: A,
|
|
400
|
-
// eslint-disable-next-line react/prop-types
|
|
401
|
-
TransitionComponent: C = ee,
|
|
402
|
-
transitionDuration: P = s,
|
|
403
|
-
variant: T = "temporary",
|
|
404
|
-
...k
|
|
405
|
-
} = n, u = x.useRef(!1);
|
|
406
|
-
x.useEffect(() => {
|
|
407
|
-
u.current = !0;
|
|
408
|
-
}, []);
|
|
409
|
-
const j = je({
|
|
410
|
-
direction: h ? "rtl" : "ltr"
|
|
411
|
-
}, p), b = {
|
|
412
|
-
...n,
|
|
413
|
-
anchor: p,
|
|
414
|
-
elevation: D,
|
|
415
|
-
open: E,
|
|
416
|
-
variant: T,
|
|
417
|
-
...k
|
|
418
|
-
}, g = ze(b), B = /* @__PURE__ */ l(Ne, {
|
|
419
|
-
elevation: T === "temporary" ? D : 0,
|
|
420
|
-
square: !0,
|
|
421
|
-
...R,
|
|
422
|
-
className: O(g.paper, R.className),
|
|
423
|
-
ownerState: b,
|
|
424
|
-
children: d
|
|
425
|
-
});
|
|
426
|
-
if (T === "permanent")
|
|
427
|
-
return /* @__PURE__ */ l(Y, {
|
|
428
|
-
className: O(g.root, g.docked, m),
|
|
429
|
-
ownerState: b,
|
|
430
|
-
ref: o,
|
|
431
|
-
...k,
|
|
432
|
-
children: B
|
|
433
|
-
});
|
|
434
|
-
const M = /* @__PURE__ */ l(C, {
|
|
435
|
-
in: E,
|
|
436
|
-
direction: re[j],
|
|
437
|
-
timeout: P,
|
|
438
|
-
appear: u.current,
|
|
439
|
-
...A,
|
|
440
|
-
children: B
|
|
441
|
-
});
|
|
442
|
-
return T === "persistent" ? /* @__PURE__ */ l(Y, {
|
|
443
|
-
className: O(g.root, g.docked, m),
|
|
444
|
-
ownerState: b,
|
|
445
|
-
ref: o,
|
|
446
|
-
...k,
|
|
447
|
-
children: M
|
|
448
|
-
}) : /* @__PURE__ */ l(Le, {
|
|
449
|
-
BackdropProps: {
|
|
450
|
-
...c,
|
|
451
|
-
...$,
|
|
452
|
-
transitionDuration: P
|
|
67
|
+
"::-webkit-scrollbar-thumb": {
|
|
68
|
+
backgroundColor: "inherit",
|
|
69
|
+
borderRadius: "6px"
|
|
453
70
|
},
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
ownerState: b,
|
|
457
|
-
onClose: S,
|
|
458
|
-
hideBackdrop: y,
|
|
459
|
-
ref: o,
|
|
460
|
-
...k,
|
|
461
|
-
...N,
|
|
462
|
-
children: M
|
|
463
|
-
});
|
|
464
|
-
});
|
|
465
|
-
process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
466
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
467
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
468
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
469
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
470
|
-
/**
|
|
471
|
-
* Side from which the drawer will appear.
|
|
472
|
-
* @default 'left'
|
|
473
|
-
*/
|
|
474
|
-
anchor: r.oneOf(["bottom", "left", "right", "top"]),
|
|
475
|
-
/**
|
|
476
|
-
* @ignore
|
|
477
|
-
*/
|
|
478
|
-
BackdropProps: r.object,
|
|
479
|
-
/**
|
|
480
|
-
* The content of the component.
|
|
481
|
-
*/
|
|
482
|
-
children: r.node,
|
|
483
|
-
/**
|
|
484
|
-
* Override or extend the styles applied to the component.
|
|
485
|
-
*/
|
|
486
|
-
classes: r.object,
|
|
487
|
-
/**
|
|
488
|
-
* @ignore
|
|
489
|
-
*/
|
|
490
|
-
className: r.string,
|
|
491
|
-
/**
|
|
492
|
-
* The elevation of the drawer.
|
|
493
|
-
* @default 16
|
|
494
|
-
*/
|
|
495
|
-
elevation: Ce,
|
|
496
|
-
/**
|
|
497
|
-
* If `true`, the backdrop is not rendered.
|
|
498
|
-
* @default false
|
|
499
|
-
*/
|
|
500
|
-
hideBackdrop: r.bool,
|
|
501
|
-
/**
|
|
502
|
-
* Props applied to the [`Modal`](https://mui.com/material-ui/api/modal/) element.
|
|
503
|
-
* @default {}
|
|
504
|
-
*/
|
|
505
|
-
ModalProps: r.object,
|
|
506
|
-
/**
|
|
507
|
-
* Callback fired when the component requests to be closed.
|
|
508
|
-
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
509
|
-
*
|
|
510
|
-
* @param {object} event The event source of the callback.
|
|
511
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
512
|
-
*/
|
|
513
|
-
onClose: r.func,
|
|
514
|
-
/**
|
|
515
|
-
* If `true`, the component is shown.
|
|
516
|
-
* @default false
|
|
517
|
-
*/
|
|
518
|
-
open: r.bool,
|
|
519
|
-
/**
|
|
520
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
521
|
-
* @default {}
|
|
522
|
-
*/
|
|
523
|
-
PaperProps: r.object,
|
|
524
|
-
/**
|
|
525
|
-
* Props applied to the [`Slide`](https://mui.com/material-ui/api/slide/) element.
|
|
526
|
-
*/
|
|
527
|
-
SlideProps: r.object,
|
|
528
|
-
/**
|
|
529
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
530
|
-
*/
|
|
531
|
-
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
532
|
-
/**
|
|
533
|
-
* The duration for the transition, in milliseconds.
|
|
534
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
535
|
-
* @default {
|
|
536
|
-
* enter: theme.transitions.duration.enteringScreen,
|
|
537
|
-
* exit: theme.transitions.duration.leavingScreen,
|
|
538
|
-
* }
|
|
539
|
-
*/
|
|
540
|
-
transitionDuration: r.oneOfType([r.number, r.shape({
|
|
541
|
-
appear: r.number,
|
|
542
|
-
enter: r.number,
|
|
543
|
-
exit: r.number
|
|
544
|
-
})]),
|
|
545
|
-
/**
|
|
546
|
-
* The variant to use.
|
|
547
|
-
* @default 'temporary'
|
|
548
|
-
*/
|
|
549
|
-
variant: r.oneOf(["permanent", "persistent", "temporary"])
|
|
550
|
-
});
|
|
551
|
-
const I = J(/* @__PURE__ */ l("path", {
|
|
552
|
-
d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
553
|
-
}), "ChevronLeft"), _ = J(/* @__PURE__ */ l("path", {
|
|
554
|
-
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
555
|
-
}), "ChevronRight"), oe = ["collapsed", "withAppBar"], ie = q(ne, { shouldForwardProp: (t) => !oe.includes(t) })(({ collapsed: t, anchor: e, withAppBar: o }) => ({
|
|
556
|
-
minWidth: t ? 0 : `${v.constants.navBarWidth}px`,
|
|
557
|
-
width: t ? "auto" : "81px",
|
|
558
|
-
transition: "201ms all ease-out",
|
|
559
|
-
flexShrink: 0,
|
|
560
|
-
zIndex: 100,
|
|
561
|
-
".MuiPaper-root": {
|
|
562
|
-
padding: 0,
|
|
563
|
-
transition: "313ms all ease-in-out",
|
|
564
|
-
minWidth: t ? 0 : `${v.constants.navBarWidth}px`,
|
|
565
|
-
width: t ? "auto" : "81px",
|
|
566
|
-
boxSizing: "border-box",
|
|
567
|
-
backgroundColor: v.colors.midnight,
|
|
568
|
-
color: v.colors.white,
|
|
569
|
-
boxShadow: "0px 0px 7px 4px rgba(0, 0, 0, 0.63)",
|
|
570
|
-
overflowX: "hidden",
|
|
571
|
-
height: e === "top" || e === "bottom" ? "auto" : o ? `calc(100% - ${v.constants.appBarHeight}px)` : "100%",
|
|
572
|
-
top: e !== "bottom" ? o ? `${v.constants.appBarHeight}px` : 0 : void 0
|
|
573
|
-
}
|
|
574
|
-
})), He = q(ie, { shouldForwardProp: (t) => !oe.includes(t) })`
|
|
575
|
-
.MuiPaper-root {
|
|
576
|
-
width: 100%;
|
|
577
|
-
display: flex;
|
|
578
|
-
flex-wrap: wrap;
|
|
579
|
-
flex-direction: row;
|
|
580
|
-
align-items: center;
|
|
581
|
-
li {
|
|
582
|
-
width: auto;
|
|
71
|
+
"&:hover": {
|
|
72
|
+
backgroundColor: e.colors.darkGreenO99
|
|
583
73
|
}
|
|
584
74
|
}
|
|
585
|
-
|
|
586
|
-
const [a,
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}
|
|
595
|
-
)) }) : /* @__PURE__ */ H(ie, { ...n, anchor: e, variant: "permanent", collapsed: a, children: [
|
|
596
|
-
o && /* @__PURE__ */ H(le, { children: [
|
|
597
|
-
/* @__PURE__ */ l(Be, { disablePadding: !0, children: /* @__PURE__ */ H(
|
|
598
|
-
ue,
|
|
599
|
-
{
|
|
600
|
-
onClick: () => h(!a),
|
|
601
|
-
menuOrientation: s,
|
|
602
|
-
menuPosition: e,
|
|
603
|
-
children: [
|
|
604
|
-
e === "left" && (a ? /* @__PURE__ */ l(_, {}) : /* @__PURE__ */ l(I, {})),
|
|
605
|
-
e === "right" && (a ? /* @__PURE__ */ l(I, {}) : /* @__PURE__ */ l(_, {}))
|
|
606
|
-
]
|
|
607
|
-
}
|
|
608
|
-
) }),
|
|
609
|
-
/* @__PURE__ */ l(fe, { color: v.colors.white, opacity: 0.5, spacing: 0 })
|
|
610
|
-
] }),
|
|
611
|
-
t == null ? void 0 : t.map((p, c) => /* @__PURE__ */ l(
|
|
612
|
-
U,
|
|
613
|
-
{
|
|
614
|
-
...p,
|
|
615
|
-
menuOrientation: s,
|
|
616
|
-
menuPosition: e,
|
|
617
|
-
collapsed: a
|
|
618
|
-
},
|
|
619
|
-
`${JSON.stringify(p)}-${c}`
|
|
620
|
-
))
|
|
621
|
-
] });
|
|
75
|
+
}), S = ({ navItems: o, activeRoute: t }) => {
|
|
76
|
+
const [a, l] = m(""), c = (n, r) => {
|
|
77
|
+
l(n), r();
|
|
78
|
+
};
|
|
79
|
+
return /* @__PURE__ */ i(h, { children: o.map(({ icon: n, label: r = "", onClick: d = () => {
|
|
80
|
+
}, ...p }) => /* @__PURE__ */ u(g, { ...p, active: t ? t === r : a === r, onClick: () => c(r, d), children: [
|
|
81
|
+
n,
|
|
82
|
+
/* @__PURE__ */ i("span", { children: r })
|
|
83
|
+
] }, r)) });
|
|
622
84
|
};
|
|
623
85
|
export {
|
|
624
|
-
|
|
625
|
-
|
|
86
|
+
S as Nav,
|
|
87
|
+
S as default
|
|
626
88
|
};
|