@amateescu/portal-ui-components 0.0.17 → 0.0.19-beta0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{EllipsisOutlined-CbXvjafK.js → EllipsisOutlined-CtmB5yDB.js} +1 -1
- package/dist/InvencoGVR-qnTq-d6S.js +5 -0
- package/dist/{PurePanel-Dm4YQiOw.js → PurePanel-CfZ1n-M8.js} +83 -83
- package/dist/{Skeleton-BUGeiKb5.js → Skeleton-XFbjx7LJ.js} +1 -1
- package/dist/{UserInfoDropdown-B_eReI1p.js → UserInfoDropdown-Cd1W3wRj.js} +89 -89
- package/dist/assets/ConfirmationModal.css +1 -0
- package/dist/assets/KpiCard.css +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.js +16 -16
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.d.ts +18 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +36 -0
- package/dist/components/CustomButton/CustomButton.stories.d.ts +19 -0
- package/dist/components/CustomButton/CustomButton.stories.js +28 -0
- package/dist/components/CustomFooter/CustomFooter.stories.d.ts +18 -0
- package/dist/components/CustomFooter/CustomFooter.stories.js +39 -0
- package/dist/components/CustomPagination/CustomPagination.d.ts +2 -1
- package/dist/components/CustomPagination/CustomPagination.js +2 -1
- package/dist/components/CustomPagination/CustomPagination.stories.d.ts +20 -0
- package/dist/components/CustomPagination/CustomPagination.stories.js +25 -0
- package/dist/components/ErrorModal/ErrorModal.js +1 -1
- package/dist/components/ErrorModal/ErrorModal.stories.d.ts +18 -0
- package/dist/components/ErrorModal/ErrorModal.stories.js +33 -0
- package/dist/components/ErrorModal/ErrorModal.types.d.ts +1 -3
- package/dist/components/InfoModal/InfoModal.js +1 -1
- package/dist/components/InfoModal/InfoModal.stories.d.ts +18 -0
- package/dist/components/InfoModal/InfoModal.stories.js +33 -0
- package/dist/components/KpiCard/KpiCard.js +103 -103
- package/dist/components/KpiCard/KpiCard.stories.d.ts +20 -0
- package/dist/components/KpiCard/KpiCard.stories.js +26 -0
- package/dist/components/KpiWrapper/KpiWrapper.d.ts +2 -7
- package/dist/components/KpiWrapper/KpiWrapper.js +7 -6
- package/dist/components/KpiWrapper/KpiWrapper.stories.d.ts +22 -0
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +55 -0
- package/dist/components/KpiWrapper/KpiWrapper.types.d.ts +6 -0
- package/dist/components/KpiWrapper/KpiWrapper.types.js +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.d.ts +14 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.js +14 -0
- package/dist/components/Login/Login.js +1 -1
- package/dist/components/Login/Login.stories.d.ts +25 -0
- package/dist/components/Login/Login.stories.js +23261 -0
- package/dist/components/SideMenu/SideMenu.js +37 -35
- package/dist/components/SideMenu/SideMenu.stories.d.ts +34 -0
- package/dist/components/SideMenu/SideMenu.stories.js +81 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.d.ts +25 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.js +23 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.d.ts +24 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +36 -0
- package/dist/components/index.js +1 -1
- package/dist/{index-BUkgekw_.js → index-DsP9yT3s.js} +166 -166
- package/dist/main.js +1 -1
- package/dist/mock.d.ts +22 -0
- package/dist/mock.js +64 -0
- package/dist/portal-utils/formatters.js +94 -65
- package/dist/types/Column.d.ts +1 -0
- package/dist/types/CultureStore.d.ts +4 -0
- package/dist/{useId-twUOzmH-.js → useId-DbfH3PlN.js} +32 -32
- package/package.json +21 -4
|
@@ -3,9 +3,9 @@ import * as a from "react";
|
|
|
3
3
|
import gt, { useRef as Ie, forwardRef as De, useImperativeHandle as ft, useContext as Ke, useState as Ze, useEffect as Te, createContext as qt } from "react";
|
|
4
4
|
import { cn as Gt } from "./portal-utils/cn.js";
|
|
5
5
|
import { a as Ee } from "./objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
6
|
-
import { I as He,
|
|
7
|
-
import { R as lo, T as so, c as co, M as uo, a as ye, u as mo, S as po, E as go, b as ht, d as fo, s as vo, e as bo, f as ho, g as $o, D as Co } from "./EllipsisOutlined-
|
|
8
|
-
import { i as
|
|
6
|
+
import { I as He, E as Yt, K as re, R as Ae, a0 as Ut, g as le, m as ae, v as ge, u as P, a1 as Kt, a as J, A as Zt, s as fe, z as Be, c as M, l as Qt, d as Jt, _ as Qe, q as Le, r as vt, i as eo, t as ke, o as ve, a8 as to, k as oo, a9 as no, x as ro, B as Je, aa as io, ab as et, j as bt, ac as ao, y as tt } from "./useId-DbfH3PlN.js";
|
|
7
|
+
import { R as lo, T as so, c as co, M as uo, a as ye, u as mo, S as po, E as go, b as ht, d as fo, s as vo, e as bo, f as ho, g as $o, D as Co } from "./EllipsisOutlined-CtmB5yDB.js";
|
|
8
|
+
import { i as Pe, C as $t, d as yo, u as Ve, e as se, z as Ct, g as wo, f as xo, h as So, j as Oo, B as ot } from "./PurePanel-CfZ1n-M8.js";
|
|
9
9
|
import './assets/UserInfoDropdown.css';const pe = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
|
10
10
|
function Io(e, t) {
|
|
11
11
|
return pe.reduce((o, n) => {
|
|
@@ -18,14 +18,14 @@ function Io(e, t) {
|
|
|
18
18
|
}));
|
|
19
19
|
}, {});
|
|
20
20
|
}
|
|
21
|
-
var Eo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" },
|
|
21
|
+
var Eo = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, Bo = function(t, o) {
|
|
22
22
|
return /* @__PURE__ */ a.createElement(He, Ee({}, t, {
|
|
23
23
|
ref: o,
|
|
24
24
|
icon: Eo
|
|
25
25
|
}));
|
|
26
|
-
}, we = /* @__PURE__ */ a.forwardRef(
|
|
26
|
+
}, we = /* @__PURE__ */ a.forwardRef(Bo);
|
|
27
27
|
process.env.NODE_ENV !== "production" && (we.displayName = "RightOutlined");
|
|
28
|
-
const
|
|
28
|
+
const Po = (e) => ({
|
|
29
29
|
[e.componentCls]: {
|
|
30
30
|
// For common/openAnimation
|
|
31
31
|
[`${e.antCls}-motion-collapse-legacy`]: {
|
|
@@ -288,7 +288,7 @@ const Re = /* @__PURE__ */ a.createContext({}), Xo = (e) => {
|
|
|
288
288
|
textAlign: "center",
|
|
289
289
|
verticalAlign: "middle",
|
|
290
290
|
background: r,
|
|
291
|
-
border: `${
|
|
291
|
+
border: `${P(v)} ${C} transparent`,
|
|
292
292
|
"&-image": {
|
|
293
293
|
background: "transparent"
|
|
294
294
|
},
|
|
@@ -408,7 +408,7 @@ const Yo = (e, t) => {
|
|
|
408
408
|
draggable: h,
|
|
409
409
|
children: E,
|
|
410
410
|
crossOrigin: z
|
|
411
|
-
} = e,
|
|
411
|
+
} = e, B = Go(e, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "alt", "draggable", "children", "crossOrigin"]), I = Zt((A) => {
|
|
412
412
|
var W, U;
|
|
413
413
|
return (U = (W = w ?? (f == null ? void 0 : f.size)) !== null && W !== void 0 ? W : A) !== null && U !== void 0 ? U : "default";
|
|
414
414
|
}), $ = Object.keys(typeof I == "object" ? I || {} : {}).some((A) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(A)), D = Wo($), k = a.useMemo(() => {
|
|
@@ -425,7 +425,7 @@ const Yo = (e, t) => {
|
|
|
425
425
|
const A = fe("Avatar");
|
|
426
426
|
process.env.NODE_ENV !== "production" && A(!(typeof O == "string" && O.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${O}\` at https://ant.design/components/icon`);
|
|
427
427
|
}
|
|
428
|
-
const S = p("avatar", C), N =
|
|
428
|
+
const S = p("avatar", C), N = Be(S), [R, V, Z] = wt(S, N), H = M({
|
|
429
429
|
[`${S}-lg`]: I === "large",
|
|
430
430
|
[`${S}-sm`]: I === "small"
|
|
431
431
|
}), X = /* @__PURE__ */ a.isValidElement(x), q = b || (f == null ? void 0 : f.shape) || "circle", Y = M(S, H, m == null ? void 0 : m.className, `${S}-${q}`, {
|
|
@@ -471,8 +471,8 @@ const Yo = (e, t) => {
|
|
|
471
471
|
},
|
|
472
472
|
ref: d
|
|
473
473
|
}, E);
|
|
474
|
-
return delete
|
|
475
|
-
style: Object.assign(Object.assign(Object.assign(Object.assign({}, F), k), m == null ? void 0 : m.style),
|
|
474
|
+
return delete B.onError, delete B.gap, R(/* @__PURE__ */ a.createElement("span", Object.assign({}, B, {
|
|
475
|
+
style: Object.assign(Object.assign(Object.assign(Object.assign({}, F), k), m == null ? void 0 : m.style), B.style),
|
|
476
476
|
className: Y,
|
|
477
477
|
ref: u
|
|
478
478
|
}), K));
|
|
@@ -573,7 +573,7 @@ var ce = {
|
|
|
573
573
|
}, Ko = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"], Zo = function(t, o) {
|
|
574
574
|
var n = t.overlayClassName, r = t.trigger, l = r === void 0 ? ["hover"] : r, i = t.mouseEnterDelay, c = i === void 0 ? 0 : i, s = t.mouseLeaveDelay, d = s === void 0 ? 0.1 : s, u = t.overlayStyle, p = t.prefixCls, m = p === void 0 ? "rc-tooltip" : p, f = t.children, g = t.onVisibleChange, v = t.afterVisibleChange, C = t.transitionName, b = t.animation, w = t.motion, x = t.placement, y = x === void 0 ? "right" : x, O = t.align, j = O === void 0 ? {} : O, T = t.destroyTooltipOnHide, _ = T === void 0 ? !1 : T, h = t.defaultVisible, E = t.getTooltipContainer, z = t.overlayInnerStyle;
|
|
575
575
|
t.arrowContent;
|
|
576
|
-
var
|
|
576
|
+
var B = t.overlay, I = t.id, $ = t.showArrow, D = $ === void 0 ? !0 : $, k = Qt(t, Ko), S = Ie(null);
|
|
577
577
|
ft(o, function() {
|
|
578
578
|
return S.current;
|
|
579
579
|
});
|
|
@@ -585,7 +585,7 @@ var ce = {
|
|
|
585
585
|
prefixCls: m,
|
|
586
586
|
id: I,
|
|
587
587
|
overlayInnerStyle: z
|
|
588
|
-
},
|
|
588
|
+
}, B);
|
|
589
589
|
};
|
|
590
590
|
return /* @__PURE__ */ a.createElement(so, Ee({
|
|
591
591
|
popupClassName: n,
|
|
@@ -660,7 +660,7 @@ const Jo = (e, t, o) => {
|
|
|
660
660
|
margin: "auto",
|
|
661
661
|
borderRadius: {
|
|
662
662
|
_skip_check_: !0,
|
|
663
|
-
value: `0 0 ${
|
|
663
|
+
value: `0 0 ${P(c)} 0`
|
|
664
664
|
},
|
|
665
665
|
transform: "translateY(50%) rotate(-135deg)",
|
|
666
666
|
boxShadow: o,
|
|
@@ -731,7 +731,7 @@ function qe(e, t, o) {
|
|
|
731
731
|
}
|
|
732
732
|
},
|
|
733
733
|
"&-placement-topRight": {
|
|
734
|
-
"--arrow-offset-horizontal": `calc(100% - ${
|
|
734
|
+
"--arrow-offset-horizontal": `calc(100% - ${P(i)})`,
|
|
735
735
|
[`> ${n}-arrow`]: {
|
|
736
736
|
right: {
|
|
737
737
|
_skip_check_: !0,
|
|
@@ -761,7 +761,7 @@ function qe(e, t, o) {
|
|
|
761
761
|
}
|
|
762
762
|
},
|
|
763
763
|
"&-placement-bottomRight": {
|
|
764
|
-
"--arrow-offset-horizontal": `calc(100% - ${
|
|
764
|
+
"--arrow-offset-horizontal": `calc(100% - ${P(i)})`,
|
|
765
765
|
[`> ${n}-arrow`]: {
|
|
766
766
|
right: {
|
|
767
767
|
_skip_check_: !0,
|
|
@@ -993,7 +993,7 @@ const nn = (e) => {
|
|
|
993
993
|
[`${t}-inner`]: {
|
|
994
994
|
minWidth: "1em",
|
|
995
995
|
minHeight: c,
|
|
996
|
-
padding: `${
|
|
996
|
+
padding: `${P(e.calc(d).div(2).equal())} ${P(u)}`,
|
|
997
997
|
color: n,
|
|
998
998
|
textAlign: "start",
|
|
999
999
|
textDecoration: "none",
|
|
@@ -1065,7 +1065,7 @@ const nn = (e) => {
|
|
|
1065
1065
|
tooltipBorderRadius: r,
|
|
1066
1066
|
tooltipBg: i
|
|
1067
1067
|
});
|
|
1068
|
-
return [nn(c),
|
|
1068
|
+
return [nn(c), Pe(n, "zoom-big-fast")];
|
|
1069
1069
|
}, rn, {
|
|
1070
1070
|
resetStyle: !1,
|
|
1071
1071
|
// Popover use Tooltip as internal component. We do not need to handle this.
|
|
@@ -1154,7 +1154,7 @@ const dn = /* @__PURE__ */ a.forwardRef((e, t) => {
|
|
|
1154
1154
|
let [te, ne] = G;
|
|
1155
1155
|
h.deprecated(!(te in e), te, ne);
|
|
1156
1156
|
}), process.env.NODE_ENV !== "production" && h(!f || typeof f == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && h(!g || typeof g == "boolean" || !("arrowPointAtCenter" in g), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
|
|
1157
|
-
const [
|
|
1157
|
+
const [B, I] = Le(!1, {
|
|
1158
1158
|
value: (o = e.open) !== null && o !== void 0 ? o : e.visible,
|
|
1159
1159
|
defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible
|
|
1160
1160
|
}), $ = !v && !C && v !== 0, D = (G) => {
|
|
@@ -1181,7 +1181,7 @@ const dn = /* @__PURE__ */ a.forwardRef((e, t) => {
|
|
|
1181
1181
|
overlayStyle: X,
|
|
1182
1182
|
rootClassName: q
|
|
1183
1183
|
} = e, Y = cn(e, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName"]), F = T("tooltip", r), K = T(), A = e["data-popover-inject"];
|
|
1184
|
-
let W =
|
|
1184
|
+
let W = B;
|
|
1185
1185
|
!("open" in e) && !("visible" in e) && $ && (W = !1);
|
|
1186
1186
|
const U = /* @__PURE__ */ a.isValidElement(u) && !yo(u) ? u : /* @__PURE__ */ a.createElement("span", null, u), ie = U.props, je = !ie.className || typeof ie.className == "string" ? M(ie.className, l || `${F}-open`) : ie.className, [me, L, oe] = Ot(F, !A), ee = It(F, s), At = ee.arrowStyle, Lt = Object.assign(Object.assign({}, d), ee.overlayStyle), kt = M(c, {
|
|
1187
1187
|
[`${F}-rtl`]: _ === "rtl"
|
|
@@ -1360,7 +1360,7 @@ const un = (e) => {
|
|
|
1360
1360
|
popoverBg: t,
|
|
1361
1361
|
popoverColor: o
|
|
1362
1362
|
});
|
|
1363
|
-
return [un(n), mn(n),
|
|
1363
|
+
return [un(n), mn(n), Pe(n, "zoom-big")];
|
|
1364
1364
|
}, pn, {
|
|
1365
1365
|
resetStyle: !1,
|
|
1366
1366
|
deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
|
|
@@ -1372,7 +1372,7 @@ var gn = function(e, t) {
|
|
|
1372
1372
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1373
1373
|
return o;
|
|
1374
1374
|
};
|
|
1375
|
-
const
|
|
1375
|
+
const Bt = (e) => {
|
|
1376
1376
|
let {
|
|
1377
1377
|
title: t,
|
|
1378
1378
|
content: o,
|
|
@@ -1402,7 +1402,7 @@ const Pt = (e) => {
|
|
|
1402
1402
|
}), /* @__PURE__ */ a.createElement(Xe, Object.assign({}, e, {
|
|
1403
1403
|
className: t,
|
|
1404
1404
|
prefixCls: o
|
|
1405
|
-
}), s || /* @__PURE__ */ a.createElement(
|
|
1405
|
+
}), s || /* @__PURE__ */ a.createElement(Bt, {
|
|
1406
1406
|
prefixCls: o,
|
|
1407
1407
|
title: d,
|
|
1408
1408
|
content: u
|
|
@@ -1452,7 +1452,7 @@ const hn = /* @__PURE__ */ a.forwardRef((e, t) => {
|
|
|
1452
1452
|
$.keyCode === eo.ESC && h(!1, $);
|
|
1453
1453
|
}, z = ($) => {
|
|
1454
1454
|
h($);
|
|
1455
|
-
},
|
|
1455
|
+
}, B = xe(l), I = xe(i);
|
|
1456
1456
|
return w(/* @__PURE__ */ a.createElement(ze, Object.assign({
|
|
1457
1457
|
placement: s,
|
|
1458
1458
|
trigger: d,
|
|
@@ -1465,9 +1465,9 @@ const hn = /* @__PURE__ */ a.forwardRef((e, t) => {
|
|
|
1465
1465
|
ref: t,
|
|
1466
1466
|
open: T,
|
|
1467
1467
|
onOpenChange: z,
|
|
1468
|
-
overlay:
|
|
1468
|
+
overlay: B || I ? /* @__PURE__ */ a.createElement(Bt, {
|
|
1469
1469
|
prefixCls: b,
|
|
1470
|
-
title:
|
|
1470
|
+
title: B,
|
|
1471
1471
|
content: I
|
|
1472
1472
|
}) : null,
|
|
1473
1473
|
transitionName: vt(O, "zoom-big", v.transitionName),
|
|
@@ -1512,23 +1512,23 @@ const it = (e) => {
|
|
|
1512
1512
|
max: b
|
|
1513
1513
|
} = e;
|
|
1514
1514
|
if (process.env.NODE_ENV !== "production") {
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1515
|
+
const B = fe("Avatar.Group");
|
|
1516
|
+
B.deprecated(!u, "maxCount", "max={{ count: number }}"), B.deprecated(!p, "maxStyle", "max={{ style: CSSProperties }}"), B.deprecated(!g, "maxPopoverPlacement", "max={{ popover: PopoverProps }}"), B.deprecated(!v, "maxPopoverTrigger", "max={{ popover: PopoverProps }}");
|
|
1517
1517
|
}
|
|
1518
|
-
const w = r("avatar", i), x = `${w}-group`, y =
|
|
1518
|
+
const w = r("avatar", i), x = `${w}-group`, y = Be(w), [O, j, T] = wt(w, y), _ = M(x, {
|
|
1519
1519
|
[`${x}-rtl`]: l === "rtl"
|
|
1520
|
-
}, T, y, c, s, j), h = ke(C).map((
|
|
1520
|
+
}, T, y, c, s, j), h = ke(C).map((B, I) => se(B, {
|
|
1521
1521
|
key: `avatar-key-${I}`
|
|
1522
1522
|
})), E = (b == null ? void 0 : b.count) || u, z = h.length;
|
|
1523
1523
|
if (E && E < z) {
|
|
1524
|
-
const
|
|
1524
|
+
const B = h.slice(0, E), I = h.slice(E, z), $ = (b == null ? void 0 : b.style) || p, D = ((t = b == null ? void 0 : b.popover) === null || t === void 0 ? void 0 : t.trigger) || v || "hover", k = ((o = b == null ? void 0 : b.popover) === null || o === void 0 ? void 0 : o.placement) || g || "top", S = Object.assign(Object.assign({
|
|
1525
1525
|
content: I
|
|
1526
1526
|
}, b == null ? void 0 : b.popover), {
|
|
1527
1527
|
overlayClassName: M(`${x}-popover`, (n = b == null ? void 0 : b.popover) === null || n === void 0 ? void 0 : n.overlayClassName),
|
|
1528
1528
|
placement: k,
|
|
1529
1529
|
trigger: D
|
|
1530
1530
|
});
|
|
1531
|
-
return
|
|
1531
|
+
return B.push(/* @__PURE__ */ a.createElement(Ge, Object.assign({
|
|
1532
1532
|
key: "avatar-popover-key",
|
|
1533
1533
|
destroyTooltipOnHide: !0
|
|
1534
1534
|
}, S), /* @__PURE__ */ a.createElement(We, {
|
|
@@ -1539,7 +1539,7 @@ const it = (e) => {
|
|
|
1539
1539
|
}, /* @__PURE__ */ a.createElement("div", {
|
|
1540
1540
|
className: _,
|
|
1541
1541
|
style: d
|
|
1542
|
-
},
|
|
1542
|
+
}, B)));
|
|
1543
1543
|
}
|
|
1544
1544
|
return O(/* @__PURE__ */ a.createElement(it, {
|
|
1545
1545
|
shape: f,
|
|
@@ -1548,8 +1548,8 @@ const it = (e) => {
|
|
|
1548
1548
|
className: _,
|
|
1549
1549
|
style: d
|
|
1550
1550
|
}, h)));
|
|
1551
|
-
},
|
|
1552
|
-
|
|
1551
|
+
}, Pt = We;
|
|
1552
|
+
Pt.Group = $n;
|
|
1553
1553
|
var Cn = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, yn = function(t, o) {
|
|
1554
1554
|
return /* @__PURE__ */ a.createElement(He, Ee({}, t, {
|
|
1555
1555
|
ref: o,
|
|
@@ -1616,7 +1616,7 @@ const Sn = (e) => !isNaN(parseFloat(e)) && isFinite(e), On = /* @__PURE__ */ a.c
|
|
|
1616
1616
|
height: l,
|
|
1617
1617
|
padding: i,
|
|
1618
1618
|
color: c,
|
|
1619
|
-
lineHeight:
|
|
1619
|
+
lineHeight: P(l),
|
|
1620
1620
|
background: p,
|
|
1621
1621
|
// Other components/menu/style/index.less line:686
|
|
1622
1622
|
// Integration with header element so menu items have the same height
|
|
@@ -1725,7 +1725,7 @@ const En = (e) => {
|
|
|
1725
1725
|
zIndex: 1,
|
|
1726
1726
|
height: i,
|
|
1727
1727
|
color: c,
|
|
1728
|
-
lineHeight:
|
|
1728
|
+
lineHeight: P(i),
|
|
1729
1729
|
textAlign: "center",
|
|
1730
1730
|
background: s,
|
|
1731
1731
|
cursor: "pointer",
|
|
@@ -1790,10 +1790,10 @@ const En = (e) => {
|
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
1792
|
};
|
|
1793
|
-
},
|
|
1793
|
+
}, Bn = le(["Layout", "Sider"], (e) => [En(e)], zt, {
|
|
1794
1794
|
deprecatedTokens: jt
|
|
1795
1795
|
});
|
|
1796
|
-
var
|
|
1796
|
+
var Pn = function(e, t) {
|
|
1797
1797
|
var o = {};
|
|
1798
1798
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1799
1799
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
@@ -1830,7 +1830,7 @@ const at = {
|
|
|
1830
1830
|
breakpoint: g,
|
|
1831
1831
|
onCollapse: v,
|
|
1832
1832
|
onBreakpoint: C
|
|
1833
|
-
} = e, b =
|
|
1833
|
+
} = e, b = Pn(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
|
|
1834
1834
|
siderHook: w
|
|
1835
1835
|
} = Ke(On), [x, y] = Ze("collapsed" in e ? e.collapsed : i), [O, j] = Ze(!1);
|
|
1836
1836
|
Te(() => {
|
|
@@ -1840,7 +1840,7 @@ const at = {
|
|
|
1840
1840
|
"collapsed" in e || y(S), v == null || v(S, N);
|
|
1841
1841
|
}, {
|
|
1842
1842
|
getPrefixCls: _
|
|
1843
|
-
} = Ke(J), h = _("layout-sider", o), [E, z,
|
|
1843
|
+
} = Ke(J), h = _("layout-sider", o), [E, z, B] = Bn(h), I = Ie();
|
|
1844
1844
|
I.current = (S) => {
|
|
1845
1845
|
j(S.matches), C == null || C(S.matches), x !== S.matches && T(S.matches, "responsive");
|
|
1846
1846
|
}, Te(() => {
|
|
@@ -1899,7 +1899,7 @@ const at = {
|
|
|
1899
1899
|
[`${h}-has-trigger`]: d && r !== null && !V,
|
|
1900
1900
|
[`${h}-below`]: !!O,
|
|
1901
1901
|
[`${h}-zero-width`]: parseFloat(R) === 0
|
|
1902
|
-
}, n, z,
|
|
1902
|
+
}, n, z, B);
|
|
1903
1903
|
return /* @__PURE__ */ a.createElement("aside", Object.assign({
|
|
1904
1904
|
className: F
|
|
1905
1905
|
}, S, {
|
|
@@ -2029,7 +2029,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2029
2029
|
[`${t}-horizontal`]: {
|
|
2030
2030
|
lineHeight: n,
|
|
2031
2031
|
border: 0,
|
|
2032
|
-
borderBottom: `${
|
|
2032
|
+
borderBottom: `${P(l)} ${i} ${r}`,
|
|
2033
2033
|
boxShadow: "none",
|
|
2034
2034
|
"&::after": {
|
|
2035
2035
|
display: "block",
|
|
@@ -2076,10 +2076,10 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2076
2076
|
${t}-submenu-rtl ${t}-vertical`]: {
|
|
2077
2077
|
[`${t}-submenu-arrow`]: {
|
|
2078
2078
|
"&::before": {
|
|
2079
|
-
transform: `rotate(-45deg) translateY(${
|
|
2079
|
+
transform: `rotate(-45deg) translateY(${P(n(o).mul(-1).equal())})`
|
|
2080
2080
|
},
|
|
2081
2081
|
"&::after": {
|
|
2082
|
-
transform: `rotate(45deg) translateY(${
|
|
2082
|
+
transform: `rotate(45deg) translateY(${P(o)})`
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
2085
|
}
|
|
@@ -2115,7 +2115,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2115
2115
|
// Bg
|
|
2116
2116
|
popupBg: E,
|
|
2117
2117
|
itemHoverBg: z,
|
|
2118
|
-
itemActiveBg:
|
|
2118
|
+
itemActiveBg: B,
|
|
2119
2119
|
menuSubMenuBg: I,
|
|
2120
2120
|
// Horizontal
|
|
2121
2121
|
horizontalItemSelectedColor: $,
|
|
@@ -2159,7 +2159,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2159
2159
|
backgroundColor: z
|
|
2160
2160
|
},
|
|
2161
2161
|
"&:active": {
|
|
2162
|
-
backgroundColor:
|
|
2162
|
+
backgroundColor: B
|
|
2163
2163
|
}
|
|
2164
2164
|
},
|
|
2165
2165
|
[`${o}-submenu-title`]: {
|
|
@@ -2167,7 +2167,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2167
2167
|
backgroundColor: z
|
|
2168
2168
|
},
|
|
2169
2169
|
"&:active": {
|
|
2170
|
-
backgroundColor:
|
|
2170
|
+
backgroundColor: B
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
2173
|
},
|
|
@@ -2230,7 +2230,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2230
2230
|
position: "absolute",
|
|
2231
2231
|
insetInline: v,
|
|
2232
2232
|
bottom: 0,
|
|
2233
|
-
borderBottom: `${
|
|
2233
|
+
borderBottom: `${P(d)} solid transparent`,
|
|
2234
2234
|
transition: `border-color ${m} ${f}`,
|
|
2235
2235
|
content: '""'
|
|
2236
2236
|
},
|
|
@@ -2258,7 +2258,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2258
2258
|
//
|
|
2259
2259
|
[`&${o}-root`]: {
|
|
2260
2260
|
[`&${o}-inline, &${o}-vertical`]: {
|
|
2261
|
-
borderInlineEnd: `${
|
|
2261
|
+
borderInlineEnd: `${P(p)} ${w} ${x}`
|
|
2262
2262
|
}
|
|
2263
2263
|
},
|
|
2264
2264
|
// ======================== Inline ========================
|
|
@@ -2273,7 +2273,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2273
2273
|
position: "absolute",
|
|
2274
2274
|
insetBlock: 0,
|
|
2275
2275
|
insetInlineEnd: 0,
|
|
2276
|
-
borderInlineEnd: `${
|
|
2276
|
+
borderInlineEnd: `${P(u)} solid ${r}`,
|
|
2277
2277
|
transform: "scaleY(0.0001)",
|
|
2278
2278
|
opacity: 0,
|
|
2279
2279
|
transition: [`transform ${C} ${g}`, `opacity ${C} ${g}`].join(","),
|
|
@@ -2315,7 +2315,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2315
2315
|
},
|
|
2316
2316
|
[`${t}-item, ${t}-submenu-title`]: {
|
|
2317
2317
|
height: o,
|
|
2318
|
-
lineHeight:
|
|
2318
|
+
lineHeight: P(o),
|
|
2319
2319
|
paddingInline: d,
|
|
2320
2320
|
overflow: "hidden",
|
|
2321
2321
|
textOverflow: "ellipsis",
|
|
@@ -2326,7 +2326,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2326
2326
|
[`> ${t}-item,
|
|
2327
2327
|
> ${t}-submenu > ${t}-submenu-title`]: {
|
|
2328
2328
|
height: o,
|
|
2329
|
-
lineHeight:
|
|
2329
|
+
lineHeight: P(o)
|
|
2330
2330
|
},
|
|
2331
2331
|
[`${t}-item-group-list ${t}-submenu-title,
|
|
2332
2332
|
${t}-submenu-title`]: {
|
|
@@ -2353,7 +2353,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2353
2353
|
collapsedIconSize: C
|
|
2354
2354
|
} = e, b = {
|
|
2355
2355
|
height: n,
|
|
2356
|
-
lineHeight:
|
|
2356
|
+
lineHeight: P(n),
|
|
2357
2357
|
listStylePosition: "inside",
|
|
2358
2358
|
listStyleType: "disc"
|
|
2359
2359
|
};
|
|
@@ -2376,7 +2376,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2376
2376
|
{
|
|
2377
2377
|
[`${t}-submenu-popup ${t}-vertical${t}-sub`]: {
|
|
2378
2378
|
minWidth: l,
|
|
2379
|
-
maxHeight: `calc(100vh - ${
|
|
2379
|
+
maxHeight: `calc(100vh - ${P(e.calc(i).mul(2.5).equal())})`,
|
|
2380
2380
|
padding: "0",
|
|
2381
2381
|
overflow: "hidden",
|
|
2382
2382
|
borderInlineEnd: 0,
|
|
@@ -2441,7 +2441,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2441
2441
|
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
2442
2442
|
> ${t}-submenu > ${t}-submenu-title`]: {
|
|
2443
2443
|
insetInlineStart: 0,
|
|
2444
|
-
paddingInline: `calc(50% - ${
|
|
2444
|
+
paddingInline: `calc(50% - ${P(e.calc(u).div(2).equal())} - ${P(d)})`,
|
|
2445
2445
|
textOverflow: "clip",
|
|
2446
2446
|
[`
|
|
2447
2447
|
${t}-submenu-arrow,
|
|
@@ -2452,7 +2452,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2452
2452
|
[`${t}-item-icon, ${o}`]: {
|
|
2453
2453
|
margin: 0,
|
|
2454
2454
|
fontSize: C,
|
|
2455
|
-
lineHeight:
|
|
2455
|
+
lineHeight: P(n),
|
|
2456
2456
|
"+ span": {
|
|
2457
2457
|
display: "inline-block",
|
|
2458
2458
|
opacity: 0
|
|
@@ -2562,10 +2562,10 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2562
2562
|
content: '""'
|
|
2563
2563
|
},
|
|
2564
2564
|
"&::before": {
|
|
2565
|
-
transform: `rotate(45deg) translateY(${
|
|
2565
|
+
transform: `rotate(45deg) translateY(${P(e.calc(i).mul(-1).equal())})`
|
|
2566
2566
|
},
|
|
2567
2567
|
"&::after": {
|
|
2568
|
-
transform: `rotate(-45deg) translateY(${
|
|
2568
|
+
transform: `rotate(-45deg) translateY(${P(i)})`
|
|
2569
2569
|
}
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
@@ -2633,7 +2633,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2633
2633
|
borderRadius: e.itemBorderRadius
|
|
2634
2634
|
},
|
|
2635
2635
|
[`${o}-item-group-title`]: {
|
|
2636
|
-
padding: `${
|
|
2636
|
+
padding: `${P(c)} ${P(s)}`,
|
|
2637
2637
|
fontSize: w,
|
|
2638
2638
|
lineHeight: b,
|
|
2639
2639
|
transition: `all ${r}`
|
|
@@ -2696,7 +2696,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2696
2696
|
margin: 0,
|
|
2697
2697
|
padding: 0,
|
|
2698
2698
|
[`${o}-item, ${o}-submenu-title`]: {
|
|
2699
|
-
paddingInline: `${
|
|
2699
|
+
paddingInline: `${P(e.calc(n).mul(2).equal())} ${P(s)}`
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
2702
2702
|
},
|
|
@@ -2762,20 +2762,20 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2762
2762
|
&-inline ${o}-submenu-arrow`]: {
|
|
2763
2763
|
// ↓
|
|
2764
2764
|
"&::before": {
|
|
2765
|
-
transform: `rotate(-45deg) translateX(${
|
|
2765
|
+
transform: `rotate(-45deg) translateX(${P(v)})`
|
|
2766
2766
|
},
|
|
2767
2767
|
"&::after": {
|
|
2768
|
-
transform: `rotate(45deg) translateX(${
|
|
2768
|
+
transform: `rotate(45deg) translateX(${P(e.calc(v).mul(-1).equal())})`
|
|
2769
2769
|
}
|
|
2770
2770
|
},
|
|
2771
2771
|
[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]: {
|
|
2772
2772
|
// ↑
|
|
2773
|
-
transform: `translateY(${
|
|
2773
|
+
transform: `translateY(${P(e.calc(g).mul(0.2).mul(-1).equal())})`,
|
|
2774
2774
|
"&::after": {
|
|
2775
|
-
transform: `rotate(-45deg) translateX(${
|
|
2775
|
+
transform: `rotate(-45deg) translateX(${P(e.calc(v).mul(-1).equal())})`
|
|
2776
2776
|
},
|
|
2777
2777
|
"&::before": {
|
|
2778
|
-
transform: `rotate(45deg) translateX(${
|
|
2778
|
+
transform: `rotate(45deg) translateX(${P(v)})`
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
2781
2781
|
})
|
|
@@ -2815,7 +2815,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2815
2815
|
fontSizeLG: _,
|
|
2816
2816
|
colorTextLightSolid: h,
|
|
2817
2817
|
colorErrorHover: E
|
|
2818
|
-
} = e, z = (t = e.activeBarWidth) !== null && t !== void 0 ? t : 0,
|
|
2818
|
+
} = e, z = (t = e.activeBarWidth) !== null && t !== void 0 ? t : 0, B = (o = e.activeBarBorderWidth) !== null && o !== void 0 ? o : f, I = (n = e.itemMarginInline) !== null && n !== void 0 ? n : e.marginXXS, $ = new et(h).setAlpha(0.65).toRgbString();
|
|
2819
2819
|
return {
|
|
2820
2820
|
dropdownWidth: 160,
|
|
2821
2821
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
@@ -2852,7 +2852,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2852
2852
|
colorActiveBarHeight: g,
|
|
2853
2853
|
activeBarHeight: g,
|
|
2854
2854
|
colorActiveBarBorderSize: f,
|
|
2855
|
-
activeBarBorderWidth:
|
|
2855
|
+
activeBarBorderWidth: B,
|
|
2856
2856
|
// Disabled
|
|
2857
2857
|
colorItemTextDisabled: i,
|
|
2858
2858
|
itemDisabledColor: i,
|
|
@@ -2899,7 +2899,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2899
2899
|
darkDangerItemSelectedColor: h,
|
|
2900
2900
|
darkDangerItemActiveBg: l,
|
|
2901
2901
|
// internal
|
|
2902
|
-
itemWidth: z ? `calc(100% + ${
|
|
2902
|
+
itemWidth: z ? `calc(100% + ${B}px)` : `calc(100% - ${I * 2}px)`
|
|
2903
2903
|
};
|
|
2904
2904
|
}, Ln = function(e) {
|
|
2905
2905
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
@@ -2972,10 +2972,10 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2972
2972
|
// RTL
|
|
2973
2973
|
Mn(h),
|
|
2974
2974
|
// Motion
|
|
2975
|
-
|
|
2975
|
+
Po(h),
|
|
2976
2976
|
ye(h, "slide-up"),
|
|
2977
2977
|
ye(h, "slide-down"),
|
|
2978
|
-
|
|
2978
|
+
Pe(h, "zoom-big")
|
|
2979
2979
|
];
|
|
2980
2980
|
}, An, {
|
|
2981
2981
|
deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]],
|
|
@@ -3071,7 +3071,7 @@ const Vn = {
|
|
|
3071
3071
|
const h = bt(function() {
|
|
3072
3072
|
var H;
|
|
3073
3073
|
O == null || O.apply(void 0, arguments), (H = r.onClick) === null || H === void 0 || H.call(r);
|
|
3074
|
-
}), E = r.mode || x, z = y ?? r.selectable,
|
|
3074
|
+
}), E = r.mode || x, z = y ?? r.selectable, B = a.useMemo(() => b !== void 0 ? b : C, [C, b]), I = {
|
|
3075
3075
|
horizontal: {
|
|
3076
3076
|
motionName: `${d}-slide-up`
|
|
3077
3077
|
},
|
|
@@ -3079,7 +3079,7 @@ const Vn = {
|
|
|
3079
3079
|
other: {
|
|
3080
3080
|
motionName: `${d}-zoom-big`
|
|
3081
3081
|
}
|
|
3082
|
-
}, $ = l("menu", u || r.prefixCls), D =
|
|
3082
|
+
}, $ = l("menu", u || r.prefixCls), D = Be($), [k, S, N] = Ln($, D, !n), R = M(`${$}-${f}`, s == null ? void 0 : s.className, p), V = a.useMemo(() => {
|
|
3083
3083
|
var H, X;
|
|
3084
3084
|
if (typeof g == "function" || _e(g))
|
|
3085
3085
|
return g || null;
|
|
@@ -3093,13 +3093,13 @@ const Vn = {
|
|
|
3093
3093
|
});
|
|
3094
3094
|
}, [g, r == null ? void 0 : r.expandIcon, s == null ? void 0 : s.expandIcon, $]), Z = a.useMemo(() => ({
|
|
3095
3095
|
prefixCls: $,
|
|
3096
|
-
inlineCollapsed:
|
|
3096
|
+
inlineCollapsed: B || !1,
|
|
3097
3097
|
direction: c,
|
|
3098
3098
|
firstLevel: !0,
|
|
3099
3099
|
theme: f,
|
|
3100
3100
|
mode: E,
|
|
3101
3101
|
disableMenuItemTitleTooltip: v
|
|
3102
|
-
}), [$,
|
|
3102
|
+
}), [$, B, c, v, f]);
|
|
3103
3103
|
return k(/* @__PURE__ */ a.createElement(Oe.Provider, {
|
|
3104
3104
|
value: null
|
|
3105
3105
|
}, /* @__PURE__ */ a.createElement(Se.Provider, {
|
|
@@ -3112,7 +3112,7 @@ const Vn = {
|
|
|
3112
3112
|
selectable: z,
|
|
3113
3113
|
onClick: h
|
|
3114
3114
|
}, _, {
|
|
3115
|
-
inlineCollapsed:
|
|
3115
|
+
inlineCollapsed: B,
|
|
3116
3116
|
style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), m),
|
|
3117
3117
|
className: R,
|
|
3118
3118
|
prefixCls: $,
|
|
@@ -3298,7 +3298,7 @@ const Xn = (e) => {
|
|
|
3298
3298
|
boxShadow: "none"
|
|
3299
3299
|
},
|
|
3300
3300
|
[`${o}-item-group-title`]: {
|
|
3301
|
-
padding: `${
|
|
3301
|
+
padding: `${P(d)} ${P(g)}`,
|
|
3302
3302
|
color: e.colorTextDescription,
|
|
3303
3303
|
transition: `all ${s}`
|
|
3304
3304
|
},
|
|
@@ -3343,7 +3343,7 @@ const Xn = (e) => {
|
|
|
3343
3343
|
[`${o}-item, ${o}-submenu-title`]: Object.assign(Object.assign({
|
|
3344
3344
|
display: "flex",
|
|
3345
3345
|
margin: 0,
|
|
3346
|
-
padding: `${
|
|
3346
|
+
padding: `${P(d)} ${P(g)}`,
|
|
3347
3347
|
color: e.colorText,
|
|
3348
3348
|
fontWeight: "normal",
|
|
3349
3349
|
fontSize: u,
|
|
@@ -3377,7 +3377,7 @@ const Xn = (e) => {
|
|
|
3377
3377
|
"&-divider": {
|
|
3378
3378
|
height: 1,
|
|
3379
3379
|
// By design
|
|
3380
|
-
margin: `${
|
|
3380
|
+
margin: `${P(e.marginXXS)} 0`,
|
|
3381
3381
|
overflow: "hidden",
|
|
3382
3382
|
lineHeight: 0,
|
|
3383
3383
|
backgroundColor: e.colorSplit
|
|
@@ -3394,7 +3394,7 @@ const Xn = (e) => {
|
|
|
3394
3394
|
}
|
|
3395
3395
|
}),
|
|
3396
3396
|
[`${o}-item-group-list`]: {
|
|
3397
|
-
margin: `0 ${
|
|
3397
|
+
margin: `0 ${P(e.marginXS)}`,
|
|
3398
3398
|
padding: 0,
|
|
3399
3399
|
listStyle: "none"
|
|
3400
3400
|
},
|
|
@@ -3419,7 +3419,7 @@ const Xn = (e) => {
|
|
|
3419
3419
|
})
|
|
3420
3420
|
},
|
|
3421
3421
|
// Follow code may reuse in other components
|
|
3422
|
-
[ye(e, "slide-up"), ye(e, "slide-down"), nt(e, "move-up"), nt(e, "move-down"),
|
|
3422
|
+
[ye(e, "slide-up"), ye(e, "slide-down"), nt(e, "move-up"), nt(e, "move-down"), Pe(e, "zoom-big")]
|
|
3423
3423
|
];
|
|
3424
3424
|
}, qn = (e) => Object.assign(Object.assign({
|
|
3425
3425
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
@@ -3476,7 +3476,7 @@ const Xn = (e) => {
|
|
|
3476
3476
|
let [oe, ee] = L;
|
|
3477
3477
|
z.deprecated(!(oe in e), oe, ee);
|
|
3478
3478
|
}), z.deprecated(!("overlay" in e), "overlay", "menu"));
|
|
3479
|
-
const
|
|
3479
|
+
const B = a.useMemo(() => {
|
|
3480
3480
|
const L = _();
|
|
3481
3481
|
return j !== void 0 ? j : y.includes("top") ? `${L}-slide-down` : `${L}-slide-up`;
|
|
3482
3482
|
}, [_, y, j]), I = a.useMemo(() => y ? y.includes("Center") ? y.slice(0, y.indexOf("Center")) : y : h === "rtl" ? "bottomRight" : "bottomLeft", [y, h]);
|
|
@@ -3490,7 +3490,7 @@ const Xn = (e) => {
|
|
|
3490
3490
|
z.deprecated(!(oe in e), oe, ee);
|
|
3491
3491
|
});
|
|
3492
3492
|
}
|
|
3493
|
-
const $ = _("dropdown", r), D =
|
|
3493
|
+
const $ = _("dropdown", r), D = Be($), [k, S, N] = Gn($, D), [, R] = Ae(), V = a.Children.only(l), Z = se(V, {
|
|
3494
3494
|
className: M(`${$}-trigger`, {
|
|
3495
3495
|
[`${$}-rtl`]: h === "rtl"
|
|
3496
3496
|
}, V.props.className),
|
|
@@ -3545,7 +3545,7 @@ const Xn = (e) => {
|
|
|
3545
3545
|
overlayClassName: K,
|
|
3546
3546
|
prefixCls: $,
|
|
3547
3547
|
getPopupContainer: d || T,
|
|
3548
|
-
transitionName:
|
|
3548
|
+
transitionName: B,
|
|
3549
3549
|
trigger: H,
|
|
3550
3550
|
overlay: U,
|
|
3551
3551
|
placement: I,
|
|
@@ -3625,9 +3625,9 @@ const er = /* @__PURE__ */ a.forwardRef((e, t) => {
|
|
|
3625
3625
|
styles: x
|
|
3626
3626
|
} = e, y = Jn(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [O, j] = Array.isArray(s) ? s : [s, s], T = mt(j), _ = mt(O), h = pt(j), E = pt(O), z = ke(m, {
|
|
3627
3627
|
keepEmpty: !0
|
|
3628
|
-
}),
|
|
3628
|
+
}), B = d === void 0 && f === "horizontal" ? "center" : d, I = l("space", g), [$, D, k] = xo(I), S = M(I, i == null ? void 0 : i.className, D, `${I}-${f}`, {
|
|
3629
3629
|
[`${I}-rtl`]: c === "rtl",
|
|
3630
|
-
[`${I}-align-${
|
|
3630
|
+
[`${I}-align-${B}`]: B,
|
|
3631
3631
|
[`${I}-gap-row-${j}`]: T,
|
|
3632
3632
|
[`${I}-gap-col-${O}`]: _
|
|
3633
3633
|
}, u, p, k), N = M(`${I}-item`, (n = w == null ? void 0 : w.item) !== null && n !== void 0 ? n : (r = i == null ? void 0 : i.classNames) === null || r === void 0 ? void 0 : r.item);
|
|
@@ -3696,7 +3696,7 @@ const Dt = (e) => {
|
|
|
3696
3696
|
title: h,
|
|
3697
3697
|
buttonsRender: E = (A) => A,
|
|
3698
3698
|
mouseEnterDelay: z,
|
|
3699
|
-
mouseLeaveDelay:
|
|
3699
|
+
mouseLeaveDelay: B,
|
|
3700
3700
|
overlayClassName: I,
|
|
3701
3701
|
overlayStyle: $,
|
|
3702
3702
|
destroyPopupOnHide: D,
|
|
@@ -3711,7 +3711,7 @@ const Dt = (e) => {
|
|
|
3711
3711
|
onOpenChange: y,
|
|
3712
3712
|
getPopupContainer: j || t,
|
|
3713
3713
|
mouseEnterDelay: z,
|
|
3714
|
-
mouseLeaveDelay:
|
|
3714
|
+
mouseLeaveDelay: B,
|
|
3715
3715
|
overlayClassName: I,
|
|
3716
3716
|
overlayStyle: $,
|
|
3717
3717
|
destroyPopupOnHide: D,
|
|
@@ -3750,7 +3750,7 @@ const or = (e) => /* @__PURE__ */ a.createElement("svg", { width: 24, height: 24
|
|
|
3750
3750
|
flexRowCenter: ir,
|
|
3751
3751
|
userTitle: ar
|
|
3752
3752
|
}, gr = ({ items: e, user: t, collapsed: o, handleMenuClick: n }) => /* @__PURE__ */ he(Ht, { menu: { items: e, onClick: n }, trigger: ["click"], children: /* @__PURE__ */ Ft("a", { onClick: (r) => r.preventDefault(), className: Ce.flexRowCenter, children: [
|
|
3753
|
-
/* @__PURE__ */ he(
|
|
3753
|
+
/* @__PURE__ */ he(Pt, { className: Gt(Ce.avatar, Ce.pointer), size: "large", children: t[0] }),
|
|
3754
3754
|
!o && /* @__PURE__ */ he("span", { className: Ce.userTitle, children: t }),
|
|
3755
3755
|
!o && /* @__PURE__ */ he(or, {})
|
|
3756
3756
|
] }) });
|