rc-lib-ui 1.2.22 → 1.2.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.
@@ -7,6 +7,7 @@ import { RenderListProps } from './ui/RenderList';
7
7
  interface ItemListMenuCommonProps extends Pick<RenderIconProps, 'icon'>, Pick<ListTextProps, 'title'>, Pick<ListButtonProps, 'onClick'> {
8
8
  action?: ReactNode;
9
9
  sx?: SxProps<Theme>;
10
+ id?: string;
10
11
  }
11
12
  type OneVariantMenuList = {
12
13
  children?: Array<ItemListMenuCommonProps & {
package/dist/dashboard.js CHANGED
@@ -1,19 +1,19 @@
1
- import { jsx as d, jsxs as f, Fragment as A } from "react/jsx-runtime";
2
- import { styled as p, ListItemButton as ci, Typography as di, ListItemIcon as hi, List as ai, ListItem as si, Collapse as fi, Box as J, AppBar as pi, Container as gi, Toolbar as ui, Drawer as xi, Divider as Z, IconButton as mi } from "@mui/material";
3
- import { useTheme as wi } from "@mui/material/styles";
4
- import R, { useState as B, useCallback as P, useRef as K, useEffect as Q, forwardRef as _, useMemo as li, Fragment as bi, useImperativeHandle as vi } from "react";
5
- import Si from "@mui/icons-material/ChevronLeft";
6
- import Ci from "@mui/icons-material/ChevronRight";
7
- import { U as Li, s as yi } from "./index-B7GqTJat.js";
8
- import { ExpandLess as Ii, ExpandMore as Wi } from "@mui/icons-material";
9
- import { T as Hi } from "./Tooltips-Q_C8jHNF.js";
10
- import { NavLink as ki } from "react-router-dom";
11
- import G from "classnames";
12
- const Di = p("main")(() => ({
1
+ import { jsx as d, jsxs as s, Fragment as G } from "react/jsx-runtime";
2
+ import { styled as g, ListItemButton as hi, Typography as di, ListItemIcon as si, List as ai, ListItem as fi, Collapse as pi, Box as J, AppBar as gi, Container as ui, Toolbar as xi, Drawer as mi, Divider as Z, IconButton as wi } from "@mui/material";
3
+ import { useTheme as bi } from "@mui/material/styles";
4
+ import N, { useState as O, useCallback as P, useRef as K, useEffect as Q, forwardRef as V, useMemo as li, Fragment as vi, useImperativeHandle as Si } from "react";
5
+ import Ci from "@mui/icons-material/ChevronLeft";
6
+ import Li from "@mui/icons-material/ChevronRight";
7
+ import { U as yi, s as Ii } from "./index-B7GqTJat.js";
8
+ import { ExpandLess as Wi, ExpandMore as Hi } from "@mui/icons-material";
9
+ import { T as ki } from "./Tooltips-Q_C8jHNF.js";
10
+ import { NavLink as Di } from "react-router-dom";
11
+ import _ from "classnames";
12
+ const Mi = g("main")(() => ({
13
13
  display: "flex",
14
14
  flexDirection: "column",
15
15
  flexGrow: 1
16
- })), Mi = p("div")(({ theme: i }) => ({
16
+ })), Ti = g("div")(({ theme: i }) => ({
17
17
  display: "flex",
18
18
  alignItems: "center",
19
19
  justifyContent: "center",
@@ -30,7 +30,7 @@ const Di = p("main")(() => ({
30
30
  easing: i.transitions.easing.sharp,
31
31
  duration: i.transitions.duration.enteringScreen
32
32
  })
33
- })), ii = (i) => typeof i == "number" ? i + "px" : i, Ti = (i, a = {}) => {
33
+ })), ii = (i) => typeof i == "number" ? i + "px" : i, $i = (i, a = {}) => {
34
34
  const { newProp: l = "marginLeft", positionCorrect: e = "- 0px" } = a;
35
35
  let n = {};
36
36
  for (const [t, o] of Object.entries(i))
@@ -42,14 +42,14 @@ const Di = p("main")(() => ({
42
42
  n[l] = `calc(${r} ${e})`;
43
43
  }
44
44
  return n;
45
- }, $i = ({ render: i, defaultStatus: a = !1 }) => {
46
- const [l, e] = B({ is: a, id: "" }), n = P(() => {
45
+ }, Ri = ({ render: i, defaultStatus: a = !1 }) => {
46
+ const [l, e] = O({ is: a, id: "" }), n = P(() => {
47
47
  e((o) => ({ ...o, is: !o.is }));
48
48
  }, []), t = P((o) => {
49
49
  e((r) => ({ ...r, id: o }));
50
50
  }, []);
51
51
  return i({ ...l, setID: t, handleToggle: n });
52
- }, Ri = p(ci, {
52
+ }, Bi = g(hi, {
53
53
  shouldForwardProp: (i) => !["minHeight"].includes(i)
54
54
  })(({ minHeight: i }) => ({
55
55
  minHeight: i,
@@ -58,15 +58,15 @@ const Di = p("main")(() => ({
58
58
  transition: "height .1s ease-in-out",
59
59
  overflow: "hidden"
60
60
  // ':hover': { backgroundColor: 'transparent' },
61
- })), j = { minHeight: 48, height: 0 }, U = ({ sx: i = {}, isWrapText: a, isOpen: l, ...e }) => {
62
- const n = K(null), [t, o] = B(j);
61
+ })), A = { minHeight: 48, height: 0 }, U = ({ sx: i = {}, isWrapText: a, isOpen: l, ...e }) => {
62
+ const n = K(null), [t, o] = O(A);
63
63
  return Q(() => {
64
64
  if (a && (n != null && n.current)) {
65
65
  const { scrollHeight: r, clientHeight: c } = n == null ? void 0 : n.current;
66
- l ? (!t.height && o((x) => ({ ...x, height: c })), r !== c && o({ ...j, height: r + c })) : o({ ...j, height: j.minHeight });
66
+ l ? (!t.height && o((m) => ({ ...m, height: c })), r !== c && o({ ...A, height: r + c })) : o({ ...A, height: A.minHeight });
67
67
  }
68
68
  }, [l]), /* @__PURE__ */ d(
69
- Ri,
69
+ Bi,
70
70
  {
71
71
  minHeight: t.minHeight,
72
72
  ref: n,
@@ -74,25 +74,25 @@ const Di = p("main")(() => ({
74
74
  ...e
75
75
  }
76
76
  );
77
- }, Bi = ({ unmount: i, isWrapText: a, title: l, sx: e = {} }) => {
78
- const [n, t] = B(""), o = K(null);
77
+ }, zi = ({ unmount: i, isWrapText: a, title: l, sx: e = {} }) => {
78
+ const [n, t] = O(""), o = K(null);
79
79
  return Q(() => {
80
80
  if (!i && o.current) {
81
81
  const r = o.current, c = setTimeout(() => {
82
82
  r != null && r.offsetWidth && (r == null ? void 0 : r.scrollWidth) > (r == null ? void 0 : r.offsetWidth) && typeof l == "string" && t(l), clearTimeout(c);
83
83
  }, 200);
84
84
  }
85
- }, [l, i]), a ? !i && /* @__PURE__ */ d(di, { children: l, sx: { textWrap: "wrap", overflowWrap: "break-word", ...e } }) : !i && /* @__PURE__ */ d(zi, { ref: o, tooltipText: n, title: l, sx: e });
86
- }, E = R.memo(Bi), zi = _(({ tooltipText: i, title: a, sx: l }, e) => /* @__PURE__ */ d(Hi, { variant: "default", title: i, children: /* @__PURE__ */ d(di, { component: "div", ref: e, children: a, noWrap: !0, sx: { ...l, width: "100%" } }) })), Ni = _(({ className: i = "", ...a }, l) => /* @__PURE__ */ d(
87
- ki,
85
+ }, [l, i]), a ? !i && /* @__PURE__ */ d(di, { children: l, sx: { textWrap: "wrap", overflowWrap: "break-word", ...e } }) : !i && /* @__PURE__ */ d(Ni, { ref: o, tooltipText: n, title: l, sx: e });
86
+ }, E = N.memo(zi), Ni = V(({ tooltipText: i, title: a, sx: l }, e) => /* @__PURE__ */ d(ki, { variant: "default", title: i, children: /* @__PURE__ */ d(di, { component: "div", ref: e, children: a, noWrap: !0, sx: { ...l, width: "100%" } }) })), Oi = V(({ className: i = "", ...a }, l) => /* @__PURE__ */ d(
87
+ Di,
88
88
  {
89
89
  ref: l,
90
90
  className: ({ isActive: e }) => e ? i + " Mui-selected" : i,
91
91
  end: !0,
92
92
  ...a
93
93
  }
94
- )), ni = R.memo(Ni), X = ({ icon: i, sx: a }) => /* @__PURE__ */ d(
95
- hi,
94
+ )), ni = N.memo(Oi), X = ({ icon: i, sx: a }) => /* @__PURE__ */ d(
95
+ si,
96
96
  {
97
97
  sx: {
98
98
  minWidth: 40,
@@ -102,7 +102,7 @@ const Di = p("main")(() => ({
102
102
  },
103
103
  children: i
104
104
  }
105
- ), Oi = p(ai, {
105
+ ), Fi = g(ai, {
106
106
  shouldForwardProp: (i) => !["styleList", "isScrollIndentation"].includes(i)
107
107
  })(({ theme: i, styleList: a = "variant1" }) => ({
108
108
  display: "flex",
@@ -152,7 +152,7 @@ const Di = p("main")(() => ({
152
152
  // }
153
153
  // },
154
154
  // }
155
- })), Y = p(si, {
155
+ })), Y = g(fi, {
156
156
  shouldForwardProp: (i) => !["visual"].includes(i)
157
157
  })(({ theme: i, visual: a }) => ({
158
158
  ...a === "variant2" && {
@@ -169,112 +169,112 @@ const Di = p("main")(() => ({
169
169
  }
170
170
  }
171
171
  }
172
- })), q = ({ isIcon: i }) => ({ paddingRight: 1.2, ...!i && { paddingLeft: 1.2 } }), Fi = _(({ styleList: i = "variant1", isRight: a, columnMenu: l, isWrapText: e = !1, listMenu: n, isOpen: t, sx: o, className: r }, c) => {
173
- const { minWidthColumn: x } = l, [y, v] = B(""), I = li(() => n.map(({ action: W, icon: g, title: z, sx: H = {}, onClick: S, children: m, to: k }, h) => {
174
- const D = `${h}`, w = (s) => {
175
- v(D), S && S(s);
172
+ })), q = ({ isIcon: i }) => ({ paddingRight: 1.2, ...!i && { paddingLeft: 1.2 } }), ji = V(({ styleList: i = "variant1", isRight: a, columnMenu: l, isWrapText: e = !1, listMenu: n, isOpen: t, sx: o, className: r }, c) => {
173
+ const { minWidthColumn: m } = l, [I, S] = O(""), W = li(() => n.map(({ action: H, icon: u, title: F, sx: k = {}, onClick: C, children: w, to: D, id: h }, L) => {
174
+ const p = `${h || L}`, b = (x) => {
175
+ S(p), C && C(x);
176
176
  };
177
- return m && Array.isArray(m) ? /* @__PURE__ */ d(bi, { children: /* @__PURE__ */ d(
178
- $i,
177
+ return w && Array.isArray(w) ? /* @__PURE__ */ d(vi, { children: /* @__PURE__ */ d(
178
+ Ri,
179
179
  {
180
180
  defaultStatus: t,
181
- render: (s) => /* @__PURE__ */ f(A, { children: [
182
- /* @__PURE__ */ d(Y, { disablePadding: !0, sx: H, visual: i, children: /* @__PURE__ */ f(
181
+ render: (x) => /* @__PURE__ */ s(G, { children: [
182
+ /* @__PURE__ */ d(Y, { disablePadding: !0, sx: k, visual: i, children: /* @__PURE__ */ s(
183
183
  U,
184
184
  {
185
- isOpen: s.is,
185
+ isOpen: x.is,
186
186
  isWrapText: e,
187
187
  onClick: (M) => {
188
- s.handleToggle(), typeof S == "function" && S(M);
188
+ x.handleToggle(), typeof C == "function" && C(M);
189
189
  },
190
- sx: { ...q({ isIcon: g }) },
190
+ sx: { ...q({ isIcon: u }) },
191
191
  children: [
192
- g && /* @__PURE__ */ d(
192
+ u && /* @__PURE__ */ d(
193
193
  X,
194
194
  {
195
- icon: g,
196
- sx: x
195
+ icon: u,
196
+ sx: m
197
197
  }
198
198
  ),
199
199
  /* @__PURE__ */ d(
200
200
  E,
201
201
  {
202
202
  unmount: !t,
203
- title: z,
203
+ title: F,
204
204
  sx: { flexGrow: 1 },
205
205
  isWrapText: e
206
206
  }
207
207
  ),
208
- t && /* @__PURE__ */ f(A, { children: [
209
- W,
210
- s.is ? /* @__PURE__ */ d(Ii, {}) : /* @__PURE__ */ d(Wi, {})
208
+ t && /* @__PURE__ */ s(G, { children: [
209
+ H,
210
+ x.is ? /* @__PURE__ */ d(Wi, {}) : /* @__PURE__ */ d(Hi, {})
211
211
  ] })
212
212
  ]
213
213
  }
214
214
  ) }),
215
- /* @__PURE__ */ d(fi, { in: s.is && t, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ d(ai, { disablePadding: !0, children: m.map(({ action: M, icon: T, title: N, to: C, sx: O = {}, onClick: $ }, F) => {
216
- const L = `${h}-${F}`, b = (u) => {
217
- v(L), $ && $(u);
215
+ /* @__PURE__ */ d(pi, { in: x.is && t, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ d(ai, { disablePadding: !0, children: w.map(({ action: M, icon: y, title: T, to: $, sx: j = {}, id: R, onClick: B }, v) => {
216
+ const f = `${L}-${R || v}`, z = (ci) => {
217
+ S(f), B && B(ci);
218
218
  };
219
- return /* @__PURE__ */ d(Y, { disablePadding: !0, sx: O, visual: i, children: /* @__PURE__ */ f(
219
+ return /* @__PURE__ */ d(Y, { disablePadding: !0, sx: j, visual: i, children: /* @__PURE__ */ s(
220
220
  U,
221
221
  {
222
- sx: { paddingRight: 1.2, ...!T && { paddingLeft: 2.5 } },
222
+ sx: { paddingRight: 1.2, ...!y && { paddingLeft: 2.5 } },
223
223
  isOpen: !0,
224
- onClick: b,
224
+ onClick: z,
225
225
  isWrapText: e,
226
- ...C ? { to: C, component: ni } : { to: "", className: G({ "Mui-selected": y === L }) },
226
+ ...$ ? { to: $, component: ni } : { to: "", className: _({ "Mui-selected": I === f }) },
227
227
  children: [
228
- T && /* @__PURE__ */ d(X, { icon: T, sx: { ...x, marginLeft: "8px !important" } }),
228
+ y && /* @__PURE__ */ d(X, { icon: y, sx: { ...m, marginLeft: "8px !important" } }),
229
229
  /* @__PURE__ */ d(
230
230
  E,
231
231
  {
232
232
  unmount: !t,
233
- title: N,
233
+ title: T,
234
234
  isWrapText: e
235
235
  }
236
236
  ),
237
237
  t && M
238
238
  ]
239
239
  }
240
- ) }, L);
240
+ ) }, f);
241
241
  }) }) })
242
242
  ] })
243
243
  }
244
- ) }, h) : /* @__PURE__ */ d(Y, { disablePadding: !0, sx: H, visual: i, children: /* @__PURE__ */ f(
244
+ ) }, h || L) : /* @__PURE__ */ d(Y, { disablePadding: !0, sx: k, visual: i, children: /* @__PURE__ */ s(
245
245
  U,
246
246
  {
247
247
  isOpen: t,
248
- onClick: w,
248
+ onClick: b,
249
249
  isWrapText: e,
250
- ...k ? { to: k, component: ni } : { to: "", className: G({ "Mui-selected": y === D }) },
251
- sx: { ...q({ isIcon: g }) },
250
+ ...D ? { to: D, component: ni } : { to: "", className: _({ "Mui-selected": I === p }) },
251
+ sx: { ...q({ isIcon: u }) },
252
252
  children: [
253
- g && /* @__PURE__ */ d(X, { icon: g, sx: x }),
253
+ u && /* @__PURE__ */ d(X, { icon: u, sx: m }),
254
254
  /* @__PURE__ */ d(
255
255
  E,
256
256
  {
257
257
  unmount: !t,
258
- title: z,
258
+ title: F,
259
259
  isWrapText: e
260
260
  }
261
261
  ),
262
- t && W
262
+ t && H
263
263
  ]
264
264
  }
265
- ) }, h);
266
- }), [n, t, y, a, q]);
265
+ ) }, p);
266
+ }), [n, t, I, a, q]);
267
267
  return /* @__PURE__ */ d(
268
- Oi,
268
+ Fi,
269
269
  {
270
270
  ref: c,
271
271
  styleList: i,
272
272
  sx: o,
273
273
  className: r,
274
- children: I
274
+ children: W
275
275
  }
276
276
  );
277
- }), ji = R.memo(Fi), Ai = p(J, {
277
+ }), Ai = N.memo(ji), Gi = g(J, {
278
278
  target: "MuiFooter-root",
279
279
  shouldForwardProp: (i) => ![""].includes(i)
280
280
  })(({}) => ({
@@ -283,7 +283,7 @@ const Di = p("main")(() => ({
283
283
  // bottom: 0,
284
284
  // right: 0,
285
285
  minHeight: 48
286
- })), Gi = ({
286
+ })), _i = ({
287
287
  initWidth: i,
288
288
  isOpen: a,
289
289
  children: l,
@@ -293,8 +293,8 @@ const Di = p("main")(() => ({
293
293
  className: o,
294
294
  AfterComponent: r,
295
295
  sx: c
296
- }) => /* @__PURE__ */ f(
297
- Vi,
296
+ }) => /* @__PURE__ */ s(
297
+ Ui,
298
298
  {
299
299
  className: o,
300
300
  bgColor: t,
@@ -305,14 +305,14 @@ const Di = p("main")(() => ({
305
305
  isHeaderResize: n,
306
306
  sx: c,
307
307
  children: [
308
- /* @__PURE__ */ d(gi, { maxWidth: "xl", children: /* @__PURE__ */ d(ui, { sx: { flexGrow: 1 }, disableGutters: !0, children: l }) }),
308
+ /* @__PURE__ */ d(ui, { maxWidth: "xl", children: /* @__PURE__ */ d(xi, { sx: { flexGrow: 1 }, disableGutters: !0, children: l }) }),
309
309
  r && r
310
310
  ]
311
311
  }
312
- ), _i = R.memo(Gi), Vi = p(pi, {
312
+ ), Vi = N.memo(_i), Ui = g(gi, {
313
313
  shouldForwardProp: (i) => !["isOpen", "isRight", "initWidth", "bgColor", "isHeaderResize"].includes(i)
314
314
  })(({ theme: i, isOpen: a, isRight: l, initWidth: e = 250, bgColor: n = "primary", isHeaderResize: t }) => ({
315
- backgroundColor: Li.colors.getColorPalette(i, n),
315
+ backgroundColor: yi.colors.getColorPalette(i, n),
316
316
  zIndex: i.zIndex.drawer + 1,
317
317
  color: "info.main",
318
318
  transition: i.transitions.create(["width", "margin"], {
@@ -350,7 +350,7 @@ const Di = p("main")(() => ({
350
350
  // [theme.breakpoints.up('sm')]: {
351
351
  // width: `calc(${theme.spacing(8)} + 1px)`,
352
352
  // },
353
- }), Ui = p(xi, {
353
+ }), Ei = g(mi, {
354
354
  shouldForwardProp: (i) => !["open", "isWrapText", "columnMenu", "isRight", "styleList"].includes(i)
355
355
  })(
356
356
  ({ theme: i, open: a, isRight: l, columnMenu: e }) => {
@@ -373,77 +373,77 @@ const Di = p("main")(() => ({
373
373
  }
374
374
  };
375
375
  }
376
- ), oi = p("div")(({ theme: i }) => ({
376
+ ), oi = g("div")(({ theme: i }) => ({
377
377
  display: "flex",
378
378
  padding: i.spacing(0, 1),
379
379
  ...i.mixins.toolbar
380
380
  })), ei = (i) => {
381
381
  const { clientWidth: a, offsetWidth: l } = i;
382
382
  return l - a;
383
- }, Ei = _(({ Footer: i, listMenu: a, children: l, HeaderContent: e, statuses: n, itemsProps: t, classes: o, columnMenu: r, styleList: c, sx: x }, y) => {
384
- var O, $, F, L;
385
- const v = wi(), I = (r == null ? void 0 : r.position) === "right", W = !1, g = !0;
383
+ }, Xi = V(({ Footer: i, listMenu: a, children: l, HeaderContent: e, statuses: n, itemsProps: t, classes: o, columnMenu: r, styleList: c, sx: m }, I) => {
384
+ var $, j, R, B;
385
+ const S = bi(), W = (r == null ? void 0 : r.position) === "right", H = !1, u = !0;
386
386
  //!!statuses?.isScrollIndentation
387
- const z = (n == null ? void 0 : n.isHeaderDefault) === void 0 ? !0 : n == null ? void 0 : n.isHeaderDefault, H = (n == null ? void 0 : n.isHeader) === void 0 ? !0 : n == null ? void 0 : n.isHeader, S = (n == null ? void 0 : n.isMenu) === void 0 ? !0 : n == null ? void 0 : n.isMenu, m = (r == null ? void 0 : r.initWidth) || 250, k = li(() => r != null && r.minWidthColumn && Object.keys(r == null ? void 0 : r.minWidthColumn).length ? r == null ? void 0 : r.minWidthColumn : {
388
- width: `calc(${v.spacing(7)} + 1px)`,
389
- [v.breakpoints.up("sm")]: {
390
- width: `calc(${v.spacing(8)} + 1px)`
387
+ const F = (n == null ? void 0 : n.isHeaderDefault) === void 0 ? !0 : n == null ? void 0 : n.isHeaderDefault, k = (n == null ? void 0 : n.isHeader) === void 0 ? !0 : n == null ? void 0 : n.isHeader, C = (n == null ? void 0 : n.isMenu) === void 0 ? !0 : n == null ? void 0 : n.isMenu, w = (r == null ? void 0 : r.initWidth) || 250, D = li(() => r != null && r.minWidthColumn && Object.keys(r == null ? void 0 : r.minWidthColumn).length ? r == null ? void 0 : r.minWidthColumn : {
388
+ width: `calc(${S.spacing(7)} + 1px)`,
389
+ [S.breakpoints.up("sm")]: {
390
+ width: `calc(${S.spacing(8)} + 1px)`
391
391
  }
392
- }, [r == null ? void 0 : r.minWidthColumn]), [h, D] = B({
392
+ }, [r == null ? void 0 : r.minWidthColumn]), [h, L] = O({
393
393
  isOpen: !!(n != null && n.isDefaultOpen),
394
394
  widthCloseColumn: 0,
395
395
  widthScroll: 0
396
- }), w = yi(h, D), s = K(null);
396
+ }), p = Ii(h, L), b = K(null);
397
397
  Q(() => {
398
- if (s.current) {
399
- const b = ei(s.current);
400
- let u = !1;
401
- b > 0 && (u = !0), w({ widthScroll: u ? b + 1 : 0 }), window.onresize = function() {
402
- if (s.current) {
403
- const V = ei(s.current);
404
- u && !V && (u = !1, w({ widthScroll: 0 })), !u && V && (u = !0, w({ widthScroll: V + 1 }));
398
+ if (b.current) {
399
+ const v = ei(b.current);
400
+ let f = !1;
401
+ v > 0 && (f = !0), p({ widthScroll: f ? v + 1 : 0 }), window.onresize = function() {
402
+ if (b.current) {
403
+ const z = ei(b.current);
404
+ f && !z && (f = !1, p({ widthScroll: 0 })), !f && z && (f = !0, p({ widthScroll: z + 1 }));
405
405
  }
406
406
  };
407
407
  }
408
- }, [g]);
409
- const M = () => {
410
- w({ isOpen: !0 });
411
- }, T = () => {
412
- w({ isOpen: !1 });
413
- }, N = () => {
414
- D((b) => ({ ...b, isOpen: !b.isOpen }));
415
- }, C = {
408
+ }, [u]);
409
+ const x = () => {
410
+ p({ isOpen: !0 });
411
+ }, M = () => {
412
+ p({ isOpen: !1 });
413
+ }, y = () => {
414
+ L((v) => ({ ...v, isOpen: !v.isOpen }));
415
+ }, T = {
416
416
  isOpen: h.isOpen,
417
- handleMenuOpen: M,
418
- handleMenuClose: T,
419
- handleMenuToggle: N
417
+ handleMenuOpen: x,
418
+ handleMenuClose: M,
419
+ handleMenuToggle: y
420
420
  };
421
- return vi(y, () => C), /* @__PURE__ */ f(J, { className: G("Dashboard", o == null ? void 0 : o.dashboard), sx: { display: "flex", height: "inherit", ...x }, children: [
422
- H ? z ? /* @__PURE__ */ d(
423
- _i,
421
+ return Si(I, () => T), /* @__PURE__ */ s(J, { className: _("Dashboard", o == null ? void 0 : o.dashboard), sx: { display: "flex", height: "inherit", ...m }, children: [
422
+ k ? F ? /* @__PURE__ */ d(
423
+ Vi,
424
424
  {
425
- initWidth: m,
425
+ initWidth: w,
426
426
  isOpen: h.isOpen,
427
- bgColor: (O = t == null ? void 0 : t.MuiHeader) == null ? void 0 : O.bgColor,
428
- isRight: I,
427
+ bgColor: ($ = t == null ? void 0 : t.MuiHeader) == null ? void 0 : $.bgColor,
428
+ isRight: W,
429
429
  isHeaderResize: n == null ? void 0 : n.isHeaderResize,
430
- sx: ($ = t == null ? void 0 : t.MuiHeader) == null ? void 0 : $.sx,
430
+ sx: (j = t == null ? void 0 : t.MuiHeader) == null ? void 0 : j.sx,
431
431
  className: o == null ? void 0 : o.header,
432
- AfterComponent: (F = t == null ? void 0 : t.MuiHeader) == null ? void 0 : F.AfterComponent,
433
- children: typeof e == "function" ? e(C) : e
432
+ AfterComponent: (R = t == null ? void 0 : t.MuiHeader) == null ? void 0 : R.AfterComponent,
433
+ children: typeof e == "function" ? e(T) : e
434
434
  }
435
- ) : typeof e == "function" ? e(C) : e : null,
436
- S && /* @__PURE__ */ f(
437
- Ui,
435
+ ) : typeof e == "function" ? e(T) : e : null,
436
+ C && /* @__PURE__ */ s(
437
+ Ei,
438
438
  {
439
439
  variant: "permanent",
440
440
  open: h.isOpen,
441
- isRight: I,
442
- isWrapText: W,
443
- columnMenu: { initWidth: m, minWidthColumn: k },
441
+ isRight: W,
442
+ isWrapText: H,
443
+ columnMenu: { initWidth: w, minWidthColumn: D },
444
444
  styleList: c,
445
445
  children: [
446
- (n == null ? void 0 : n.isMenuHeader) !== !1 && /* @__PURE__ */ f(A, { children: [
446
+ (n == null ? void 0 : n.isMenuHeader) !== !1 && /* @__PURE__ */ s(G, { children: [
447
447
  /* @__PURE__ */ d(oi, {}),
448
448
  /* @__PURE__ */ d(Z, {})
449
449
  ] }),
@@ -453,37 +453,37 @@ const Di = p("main")(() => ({
453
453
  flexGrow: 1,
454
454
  overflow: "hidden"
455
455
  }, children: /* @__PURE__ */ d(
456
- ji,
456
+ Ai,
457
457
  {
458
- ref: s,
459
- isRight: I,
458
+ ref: b,
459
+ isRight: W,
460
460
  columnMenu: {
461
- initWidth: m,
462
- minWidthColumn: Ti(k, { newProp: "width", positionCorrect: `- ${h.widthScroll}px` })
461
+ initWidth: w,
462
+ minWidthColumn: $i(D, { newProp: "width", positionCorrect: `- ${h.widthScroll}px` })
463
463
  },
464
464
  listMenu: a,
465
465
  isOpen: h.isOpen,
466
- sx: (L = t == null ? void 0 : t.MuiListMenu) == null ? void 0 : L.sx,
466
+ sx: (B = t == null ? void 0 : t.MuiListMenu) == null ? void 0 : B.sx,
467
467
  className: o == null ? void 0 : o.listMenu,
468
- isWrapText: W,
468
+ isWrapText: H,
469
469
  styleList: c
470
470
  }
471
471
  ) }),
472
- (n == null ? void 0 : n.isButtonCenterMenu) !== !1 && /* @__PURE__ */ d(Mi, { children: /* @__PURE__ */ d(mi, { onClick: N, sx: { pointerEvents: "auto" }, children: h.isOpen ? /* @__PURE__ */ d(Ci, {}) : /* @__PURE__ */ d(Si, {}) }) }),
473
- i && /* @__PURE__ */ d(A, { children: /* @__PURE__ */ f(Ai, { children: [
472
+ (n == null ? void 0 : n.isButtonCenterMenu) !== !1 && /* @__PURE__ */ d(Ti, { children: /* @__PURE__ */ d(wi, { onClick: y, sx: { pointerEvents: "auto" }, children: h.isOpen ? /* @__PURE__ */ d(Li, {}) : /* @__PURE__ */ d(Ci, {}) }) }),
473
+ i && /* @__PURE__ */ d(G, { children: /* @__PURE__ */ s(Gi, { children: [
474
474
  /* @__PURE__ */ d(Z, {}),
475
475
  i
476
476
  ] }) })
477
477
  ]
478
478
  }
479
479
  ),
480
- /* @__PURE__ */ f(Di, { className: G("Dashboard-main", o == null ? void 0 : o.main), children: [
481
- H && /* @__PURE__ */ d(oi, {}),
480
+ /* @__PURE__ */ s(Mi, { className: _("Dashboard-main", o == null ? void 0 : o.main), children: [
481
+ k && /* @__PURE__ */ d(oi, {}),
482
482
  l
483
483
  ] })
484
484
  ] });
485
- }), on = R.memo(Ei);
485
+ }), en = N.memo(Xi);
486
486
  export {
487
- on as Dashboard,
488
- _i as MuiHeader
487
+ en as Dashboard,
488
+ Vi as MuiHeader
489
489
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rc-lib-ui",
3
3
  "private": false,
4
- "version": "1.2.22",
4
+ "version": "1.2.23",
5
5
  "author": "SinGlEBW",
6
6
  "license": "MIT",
7
7
  "type": "module",