@amateescu/portal-ui-components 0.0.28 → 0.0.30-beta
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/Box-ZFRI9JCw.js +102 -0
- package/dist/Button-CNfTnafe.js +676 -0
- package/dist/ButtonBase-DWpUn0eT.js +965 -0
- package/dist/CircularProgress-D6RyizwS.js +247 -0
- package/dist/{EllipsisOutlined-DZsCEqiL.js → EllipsisOutlined-CzFuvGH_.js} +3 -3
- package/dist/{PurePanel-iUNZWTe_.js → PurePanel-CxlAi3G7.js} +3 -3
- package/dist/{Skeleton-CfEiGUkR.js → Skeleton-dypyF9G2.js} +2 -2
- package/dist/{UserInfoDropdown-CoZutJAR.js → UserInfoDropdown-DPyds49a.js} +763 -769
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
- package/dist/components/CustomButton/CustomButton.js +1 -1
- package/dist/components/CustomButton/CustomButton.stories.d.ts +1 -0
- package/dist/components/CustomButton/CustomButton.stories.js +21 -7
- package/dist/components/CustomFooter/CustomFooter.js +1 -1
- package/dist/components/CustomPagination/CustomPagination.js +484 -372
- package/dist/components/ErrorModal/ErrorModal.js +1 -1
- package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
- package/dist/components/InfoModal/InfoModal.js +1 -1
- package/dist/components/InfoModal/InfoModal.stories.js +1 -1
- package/dist/components/KpiCard/KpiCard.js +355 -351
- package/dist/components/LoadingAnimation/LoadingAnimation.js +6 -215
- package/dist/components/Login/Login.js +4638 -3844
- package/dist/components/Login/Login.stories.js +15693 -14785
- package/dist/components/SideMenu/SideMenu.js +1 -1
- package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{context-Crxhk7DD.js → context-Bk4VnwMB.js} +7 -7
- package/dist/createSimplePaletteValueFilter-rq2_biPF.js +3443 -0
- package/dist/createSvgIcon-jB7EUYpq.js +248 -0
- package/dist/{index-BxiDYyNJ.js → index-DLbr86ak.js} +511 -513
- package/dist/{index-DpDv68WZ.js → index-xh_JY2OQ.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +33 -0
- package/dist/useSlot-CT4096EK.js +188 -0
- package/package.json +31 -31
- package/dist/Box-C1OwXVV-.js +0 -68
- package/dist/Button-CIvE-fcO.js +0 -355
- package/dist/ButtonBase-BeQnmGXr.js +0 -966
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/createSvgIcon-Db107M0j.js +0 -250
- package/dist/generateUtilityClasses-DY-qyzNG.js +0 -3427
- package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +0 -46
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as Ce, jsxs as eo } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import $t, { useRef as
|
|
3
|
+
import $t, { useRef as Be, forwardRef as ke, useImperativeHandle as yt, useContext as tt, useState as ot, useEffect as He, createContext as to } from "react";
|
|
4
4
|
import { cn as oo } from "./portal-utils/cn.js";
|
|
5
|
-
import {
|
|
6
|
-
import { I as Ve, K as
|
|
7
|
-
import { R as ho, T as $o, c as yo, M as Co, a as
|
|
8
|
-
import { P as
|
|
5
|
+
import { _ as ze } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
|
|
6
|
+
import { I as Ve, K as le, H as no, U as We, ah as ro, g as de, m as ce, y as ve, u as O, a2 as io, a as ie, E as ao, v as be, D as je, c as _, p as lo, N as so, e as se, l as nt, b as Xe, s as Fe, t as Ct, j as co, x as qe, o as he, an as uo, n as mo, a4 as po, A as go, z as fo, F as rt, aa as it, ad as vo, k as wt, ao as bo, B as at } from "./context-Bk4VnwMB.js";
|
|
7
|
+
import { R as ho, T as $o, c as yo, M as Co, a as Se, u as wo, S as xo, E as So, b as xt, d as Oo, s as Io, e as No, f as Eo, g as Po, D as Bo } from "./EllipsisOutlined-CzFuvGH_.js";
|
|
8
|
+
import { P as fe, i as Te, C as St, b as zo, u as Ge, d as ue, z as Ot, e as jo, f as To, h as _o, j as Ro, B as lt } from "./PurePanel-CxlAi3G7.js";
|
|
9
9
|
import './assets/UserInfoDropdown.css';function Mo(e, t) {
|
|
10
|
-
return
|
|
10
|
+
return fe.reduce((o, n) => {
|
|
11
11
|
const r = e[`${n}1`], a = e[`${n}3`], i = e[`${n}6`], s = e[`${n}7`];
|
|
12
12
|
return Object.assign(Object.assign({}, o), t(n, {
|
|
13
13
|
lightColor: r,
|
|
@@ -18,12 +18,12 @@ import './assets/UserInfoDropdown.css';function Mo(e, t) {
|
|
|
18
18
|
}, {});
|
|
19
19
|
}
|
|
20
20
|
var Do = { 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" }, Ho = function(t, o) {
|
|
21
|
-
return /* @__PURE__ */ l.createElement(Ve,
|
|
21
|
+
return /* @__PURE__ */ l.createElement(Ve, ze({}, t, {
|
|
22
22
|
ref: o,
|
|
23
23
|
icon: Do
|
|
24
24
|
}));
|
|
25
|
-
},
|
|
26
|
-
process.env.NODE_ENV !== "production" && (
|
|
25
|
+
}, Oe = /* @__PURE__ */ l.forwardRef(Ho);
|
|
26
|
+
process.env.NODE_ENV !== "production" && (Oe.displayName = "RightOutlined");
|
|
27
27
|
const Ao = (e) => ({
|
|
28
28
|
[e.componentCls]: {
|
|
29
29
|
// For common/openAnimation
|
|
@@ -40,7 +40,7 @@ const Ao = (e) => ({
|
|
|
40
40
|
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
}), Lo = new
|
|
43
|
+
}), Lo = new le("antMoveDownIn", {
|
|
44
44
|
"0%": {
|
|
45
45
|
transform: "translate3d(0, 100%, 0)",
|
|
46
46
|
transformOrigin: "0 0",
|
|
@@ -51,7 +51,7 @@ const Ao = (e) => ({
|
|
|
51
51
|
transformOrigin: "0 0",
|
|
52
52
|
opacity: 1
|
|
53
53
|
}
|
|
54
|
-
}), ko = new
|
|
54
|
+
}), ko = new le("antMoveDownOut", {
|
|
55
55
|
"0%": {
|
|
56
56
|
transform: "translate3d(0, 0, 0)",
|
|
57
57
|
transformOrigin: "0 0",
|
|
@@ -62,7 +62,7 @@ const Ao = (e) => ({
|
|
|
62
62
|
transformOrigin: "0 0",
|
|
63
63
|
opacity: 0
|
|
64
64
|
}
|
|
65
|
-
}), Vo = new
|
|
65
|
+
}), Vo = new le("antMoveLeftIn", {
|
|
66
66
|
"0%": {
|
|
67
67
|
transform: "translate3d(-100%, 0, 0)",
|
|
68
68
|
transformOrigin: "0 0",
|
|
@@ -73,7 +73,7 @@ const Ao = (e) => ({
|
|
|
73
73
|
transformOrigin: "0 0",
|
|
74
74
|
opacity: 1
|
|
75
75
|
}
|
|
76
|
-
}), Wo = new
|
|
76
|
+
}), Wo = new le("antMoveLeftOut", {
|
|
77
77
|
"0%": {
|
|
78
78
|
transform: "translate3d(0, 0, 0)",
|
|
79
79
|
transformOrigin: "0 0",
|
|
@@ -84,7 +84,7 @@ const Ao = (e) => ({
|
|
|
84
84
|
transformOrigin: "0 0",
|
|
85
85
|
opacity: 0
|
|
86
86
|
}
|
|
87
|
-
}), Xo = new
|
|
87
|
+
}), Xo = new le("antMoveRightIn", {
|
|
88
88
|
"0%": {
|
|
89
89
|
transform: "translate3d(100%, 0, 0)",
|
|
90
90
|
transformOrigin: "0 0",
|
|
@@ -95,7 +95,7 @@ const Ao = (e) => ({
|
|
|
95
95
|
transformOrigin: "0 0",
|
|
96
96
|
opacity: 1
|
|
97
97
|
}
|
|
98
|
-
}), Fo = new
|
|
98
|
+
}), Fo = new le("antMoveRightOut", {
|
|
99
99
|
"0%": {
|
|
100
100
|
transform: "translate3d(0, 0, 0)",
|
|
101
101
|
transformOrigin: "0 0",
|
|
@@ -106,7 +106,7 @@ const Ao = (e) => ({
|
|
|
106
106
|
transformOrigin: "0 0",
|
|
107
107
|
opacity: 0
|
|
108
108
|
}
|
|
109
|
-
}), qo = new
|
|
109
|
+
}), qo = new le("antMoveUpIn", {
|
|
110
110
|
"0%": {
|
|
111
111
|
transform: "translate3d(0, -100%, 0)",
|
|
112
112
|
transformOrigin: "0 0",
|
|
@@ -117,7 +117,7 @@ const Ao = (e) => ({
|
|
|
117
117
|
transformOrigin: "0 0",
|
|
118
118
|
opacity: 1
|
|
119
119
|
}
|
|
120
|
-
}), Go = new
|
|
120
|
+
}), Go = new le("antMoveUpOut", {
|
|
121
121
|
"0%": {
|
|
122
122
|
transform: "translate3d(0, 0, 0)",
|
|
123
123
|
transformOrigin: "0 0",
|
|
@@ -186,13 +186,13 @@ const Ao = (e) => ({
|
|
|
186
186
|
throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`);
|
|
187
187
|
}
|
|
188
188
|
}), e;
|
|
189
|
-
}
|
|
190
|
-
function Zo() {
|
|
189
|
+
}, Zo = () => {
|
|
191
190
|
const [, e] = We(), t = Uo(Ko(e));
|
|
192
191
|
return $t.useMemo(() => {
|
|
193
192
|
const o = /* @__PURE__ */ new Map();
|
|
194
193
|
let n = -1, r = {};
|
|
195
194
|
return {
|
|
195
|
+
responsiveMap: t,
|
|
196
196
|
matchHandlers: {},
|
|
197
197
|
dispatch(a) {
|
|
198
198
|
return r = a, o.forEach((i) => i(r)), o.size >= 1;
|
|
@@ -203,12 +203,6 @@ function Zo() {
|
|
|
203
203
|
unsubscribe(a) {
|
|
204
204
|
o.delete(a), o.size || this.unregister();
|
|
205
205
|
},
|
|
206
|
-
unregister() {
|
|
207
|
-
Object.keys(t).forEach((a) => {
|
|
208
|
-
const i = t[a], s = this.matchHandlers[i];
|
|
209
|
-
s == null || s.mql.removeListener(s == null ? void 0 : s.listener);
|
|
210
|
-
}), o.clear();
|
|
211
|
-
},
|
|
212
206
|
register() {
|
|
213
207
|
Object.keys(t).forEach((a) => {
|
|
214
208
|
const i = t[a], s = (u) => {
|
|
@@ -225,17 +219,22 @@ function Zo() {
|
|
|
225
219
|
}, s(c);
|
|
226
220
|
});
|
|
227
221
|
},
|
|
228
|
-
|
|
222
|
+
unregister() {
|
|
223
|
+
Object.keys(t).forEach((a) => {
|
|
224
|
+
const i = t[a], s = this.matchHandlers[i];
|
|
225
|
+
s == null || s.mql.removeListener(s == null ? void 0 : s.listener);
|
|
226
|
+
}), o.clear();
|
|
227
|
+
}
|
|
229
228
|
};
|
|
230
229
|
}, [e]);
|
|
231
|
-
}
|
|
230
|
+
};
|
|
232
231
|
function Qo() {
|
|
233
232
|
const [, e] = l.useReducer((t) => t + 1, 0);
|
|
234
233
|
return e;
|
|
235
234
|
}
|
|
236
235
|
function Jo() {
|
|
237
236
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
238
|
-
const o =
|
|
237
|
+
const o = Be(t), n = Qo(), r = Zo();
|
|
239
238
|
return ro(() => {
|
|
240
239
|
const a = r.subscribe((i) => {
|
|
241
240
|
o.current = i, e && n();
|
|
@@ -257,9 +256,9 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
257
256
|
textFontSizeLG: d,
|
|
258
257
|
textFontSizeSM: f,
|
|
259
258
|
borderRadius: m,
|
|
260
|
-
borderRadiusLG:
|
|
259
|
+
borderRadiusLG: v,
|
|
261
260
|
borderRadiusSM: p,
|
|
262
|
-
lineWidth:
|
|
261
|
+
lineWidth: g,
|
|
263
262
|
lineType: h
|
|
264
263
|
} = e, C = (b, S, $) => ({
|
|
265
264
|
width: b,
|
|
@@ -276,7 +275,7 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
276
275
|
}
|
|
277
276
|
});
|
|
278
277
|
return {
|
|
279
|
-
[o]: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
278
|
+
[o]: Object.assign(Object.assign(Object.assign(Object.assign({}, ve(e)), {
|
|
280
279
|
position: "relative",
|
|
281
280
|
display: "inline-flex",
|
|
282
281
|
justifyContent: "center",
|
|
@@ -287,7 +286,7 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
287
286
|
textAlign: "center",
|
|
288
287
|
verticalAlign: "middle",
|
|
289
288
|
background: r,
|
|
290
|
-
border: `${
|
|
289
|
+
border: `${O(g)} ${h} transparent`,
|
|
291
290
|
"&-image": {
|
|
292
291
|
background: "transparent"
|
|
293
292
|
},
|
|
@@ -295,7 +294,7 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
295
294
|
display: "block"
|
|
296
295
|
}
|
|
297
296
|
}), C(i, u, m)), {
|
|
298
|
-
"&-lg": Object.assign({}, C(s, d,
|
|
297
|
+
"&-lg": Object.assign({}, C(s, d, v)),
|
|
299
298
|
"&-sm": Object.assign({}, C(c, f, p)),
|
|
300
299
|
"> img": {
|
|
301
300
|
display: "block",
|
|
@@ -352,11 +351,11 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
352
351
|
groupOverlapping: -c,
|
|
353
352
|
groupBorderColor: d
|
|
354
353
|
};
|
|
355
|
-
}, Nt =
|
|
354
|
+
}, Nt = de("Avatar", (e) => {
|
|
356
355
|
const {
|
|
357
356
|
colorTextLightSolid: t,
|
|
358
357
|
colorTextPlaceholder: o
|
|
359
|
-
} = e, n =
|
|
358
|
+
} = e, n = ce(e, {
|
|
360
359
|
avatarBg: o,
|
|
361
360
|
avatarColor: t
|
|
362
361
|
});
|
|
@@ -369,115 +368,110 @@ var nn = function(e, t) {
|
|
|
369
368
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
370
369
|
return o;
|
|
371
370
|
};
|
|
372
|
-
const
|
|
373
|
-
const
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
371
|
+
const Ye = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
372
|
+
const {
|
|
373
|
+
prefixCls: o,
|
|
374
|
+
shape: n,
|
|
375
|
+
size: r,
|
|
376
|
+
src: a,
|
|
377
|
+
srcSet: i,
|
|
378
|
+
icon: s,
|
|
379
|
+
className: c,
|
|
380
|
+
rootClassName: u,
|
|
381
|
+
style: d,
|
|
382
|
+
alt: f,
|
|
383
|
+
draggable: m,
|
|
384
|
+
children: v,
|
|
385
|
+
crossOrigin: p,
|
|
386
|
+
gap: g = 4,
|
|
387
|
+
onError: h
|
|
388
|
+
} = e, C = nn(e, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]), [b, S] = l.useState(1), [$, B] = l.useState(!1), [M, R] = l.useState(!0), T = l.useRef(null), w = l.useRef(null), x = io(t, T), {
|
|
389
|
+
getPrefixCls: P,
|
|
390
|
+
avatar: I
|
|
391
|
+
} = l.useContext(ie), z = l.useContext(Le), y = () => {
|
|
392
|
+
if (!w.current || !T.current)
|
|
378
393
|
return;
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
const {
|
|
382
|
-
gap: U = 4
|
|
383
|
-
} = e;
|
|
384
|
-
U * 2 < T && n(T - U * 2 < x ? (T - U * 2) / x : 1);
|
|
385
|
-
}
|
|
394
|
+
const X = w.current.offsetWidth, Y = T.current.offsetWidth;
|
|
395
|
+
X !== 0 && Y !== 0 && g * 2 < Y && S(Y - g * 2 < X ? (Y - g * 2) / X : 1);
|
|
386
396
|
};
|
|
387
397
|
l.useEffect(() => {
|
|
388
|
-
|
|
398
|
+
B(!0);
|
|
389
399
|
}, []), l.useEffect(() => {
|
|
390
|
-
|
|
391
|
-
}, [
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
(
|
|
397
|
-
}, {
|
|
398
|
-
|
|
399
|
-
shape: C,
|
|
400
|
-
size: b,
|
|
401
|
-
src: S,
|
|
402
|
-
srcSet: $,
|
|
403
|
-
icon: O,
|
|
404
|
-
className: H,
|
|
405
|
-
rootClassName: R,
|
|
406
|
-
alt: M,
|
|
407
|
-
draggable: I,
|
|
408
|
-
children: w,
|
|
409
|
-
crossOrigin: B
|
|
410
|
-
} = e, z = nn(e, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "alt", "draggable", "children", "crossOrigin"]), N = ao((x) => {
|
|
411
|
-
var T, U;
|
|
412
|
-
return (U = (T = b ?? (g == null ? void 0 : g.size)) !== null && T !== void 0 ? T : x) !== null && U !== void 0 ? U : "default";
|
|
413
|
-
}), y = Object.keys(typeof N == "object" ? N || {} : {}).some((x) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(x)), P = Jo(y), A = l.useMemo(() => {
|
|
414
|
-
if (typeof N != "object")
|
|
400
|
+
R(!0), S(1);
|
|
401
|
+
}, [a]), l.useEffect(y, [g]);
|
|
402
|
+
const N = () => {
|
|
403
|
+
(h == null ? void 0 : h()) !== !1 && R(!1);
|
|
404
|
+
}, E = ao((X) => {
|
|
405
|
+
var Y, J;
|
|
406
|
+
return (J = (Y = r ?? (z == null ? void 0 : z.size)) !== null && Y !== void 0 ? Y : X) !== null && J !== void 0 ? J : "default";
|
|
407
|
+
}), A = Object.keys(typeof E == "object" ? E || {} : {}).some((X) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(X)), L = Jo(A), F = l.useMemo(() => {
|
|
408
|
+
if (typeof E != "object")
|
|
415
409
|
return {};
|
|
416
|
-
const
|
|
417
|
-
return
|
|
418
|
-
width:
|
|
419
|
-
height:
|
|
420
|
-
fontSize:
|
|
410
|
+
const X = It.find((J) => L[J]), Y = E[X];
|
|
411
|
+
return Y ? {
|
|
412
|
+
width: Y,
|
|
413
|
+
height: Y,
|
|
414
|
+
fontSize: Y && (s || v) ? Y / 2 : 18
|
|
421
415
|
} : {};
|
|
422
|
-
}, [
|
|
416
|
+
}, [L, E]);
|
|
423
417
|
if (process.env.NODE_ENV !== "production") {
|
|
424
|
-
const
|
|
425
|
-
process.env.NODE_ENV !== "production" &&
|
|
418
|
+
const X = be("Avatar");
|
|
419
|
+
process.env.NODE_ENV !== "production" && X(!(typeof s == "string" && s.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${s}\` at https://ant.design/components/icon`);
|
|
426
420
|
}
|
|
427
|
-
const j =
|
|
428
|
-
[`${j}-lg`]:
|
|
429
|
-
[`${j}-sm`]:
|
|
430
|
-
}),
|
|
431
|
-
[`${j}-image`]:
|
|
432
|
-
[`${j}-icon`]: !!
|
|
433
|
-
},
|
|
434
|
-
width:
|
|
435
|
-
height:
|
|
436
|
-
fontSize:
|
|
421
|
+
const j = P("avatar", o), H = je(j), [D, W, q] = Nt(j, H), G = _({
|
|
422
|
+
[`${j}-lg`]: E === "large",
|
|
423
|
+
[`${j}-sm`]: E === "small"
|
|
424
|
+
}), Z = /* @__PURE__ */ l.isValidElement(a), ee = n || (z == null ? void 0 : z.shape) || "circle", k = _(j, G, I == null ? void 0 : I.className, `${j}-${ee}`, {
|
|
425
|
+
[`${j}-image`]: Z || a && M,
|
|
426
|
+
[`${j}-icon`]: !!s
|
|
427
|
+
}, q, H, c, u, W), U = typeof E == "number" ? {
|
|
428
|
+
width: E,
|
|
429
|
+
height: E,
|
|
430
|
+
fontSize: s ? E / 2 : 18
|
|
437
431
|
} : {};
|
|
438
|
-
let
|
|
439
|
-
if (typeof
|
|
440
|
-
|
|
441
|
-
src:
|
|
442
|
-
draggable:
|
|
443
|
-
srcSet:
|
|
444
|
-
onError:
|
|
445
|
-
alt:
|
|
446
|
-
crossOrigin:
|
|
432
|
+
let Q;
|
|
433
|
+
if (typeof a == "string" && M)
|
|
434
|
+
Q = /* @__PURE__ */ l.createElement("img", {
|
|
435
|
+
src: a,
|
|
436
|
+
draggable: m,
|
|
437
|
+
srcSet: i,
|
|
438
|
+
onError: N,
|
|
439
|
+
alt: f,
|
|
440
|
+
crossOrigin: p
|
|
447
441
|
});
|
|
448
|
-
else if (
|
|
449
|
-
|
|
450
|
-
else if (
|
|
451
|
-
|
|
452
|
-
else if (
|
|
453
|
-
const
|
|
454
|
-
msTransform:
|
|
455
|
-
WebkitTransform:
|
|
456
|
-
transform:
|
|
442
|
+
else if (Z)
|
|
443
|
+
Q = a;
|
|
444
|
+
else if (s)
|
|
445
|
+
Q = s;
|
|
446
|
+
else if ($ || b !== 1) {
|
|
447
|
+
const X = `scale(${b})`, Y = {
|
|
448
|
+
msTransform: X,
|
|
449
|
+
WebkitTransform: X,
|
|
450
|
+
transform: X
|
|
457
451
|
};
|
|
458
|
-
|
|
459
|
-
onResize:
|
|
452
|
+
Q = /* @__PURE__ */ l.createElement(ho, {
|
|
453
|
+
onResize: y
|
|
460
454
|
}, /* @__PURE__ */ l.createElement("span", {
|
|
461
455
|
className: `${j}-string`,
|
|
462
|
-
ref:
|
|
463
|
-
style: Object.assign({},
|
|
464
|
-
},
|
|
456
|
+
ref: w,
|
|
457
|
+
style: Object.assign({}, Y)
|
|
458
|
+
}, v));
|
|
465
459
|
} else
|
|
466
|
-
|
|
460
|
+
Q = /* @__PURE__ */ l.createElement("span", {
|
|
467
461
|
className: `${j}-string`,
|
|
468
462
|
style: {
|
|
469
463
|
opacity: 0
|
|
470
464
|
},
|
|
471
|
-
ref:
|
|
472
|
-
},
|
|
473
|
-
return
|
|
474
|
-
style: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
475
|
-
className:
|
|
476
|
-
ref:
|
|
477
|
-
}),
|
|
478
|
-
}
|
|
465
|
+
ref: w
|
|
466
|
+
}, v);
|
|
467
|
+
return D(/* @__PURE__ */ l.createElement("span", Object.assign({}, C, {
|
|
468
|
+
style: Object.assign(Object.assign(Object.assign(Object.assign({}, U), F), I == null ? void 0 : I.style), d),
|
|
469
|
+
className: k,
|
|
470
|
+
ref: x
|
|
471
|
+
}), Q));
|
|
472
|
+
});
|
|
479
473
|
process.env.NODE_ENV !== "production" && (Ye.displayName = "Avatar");
|
|
480
|
-
const
|
|
474
|
+
const Ie = (e) => e ? typeof e == "function" ? e() : e : null;
|
|
481
475
|
function Ue(e) {
|
|
482
476
|
var t = e.children, o = e.prefixCls, n = e.id, r = e.overlayInnerStyle, a = e.bodyClassName, i = e.className, s = e.style;
|
|
483
477
|
return /* @__PURE__ */ l.createElement("div", {
|
|
@@ -490,145 +484,145 @@ function Ue(e) {
|
|
|
490
484
|
style: r
|
|
491
485
|
}, typeof t == "function" ? t() : t));
|
|
492
486
|
}
|
|
493
|
-
var
|
|
487
|
+
var me = {
|
|
494
488
|
shiftX: 64,
|
|
495
489
|
adjustY: 1
|
|
496
|
-
},
|
|
490
|
+
}, pe = {
|
|
497
491
|
adjustX: 1,
|
|
498
492
|
shiftY: !0
|
|
499
|
-
},
|
|
493
|
+
}, oe = [0, 0], rn = {
|
|
500
494
|
left: {
|
|
501
495
|
points: ["cr", "cl"],
|
|
502
|
-
overflow:
|
|
496
|
+
overflow: pe,
|
|
503
497
|
offset: [-4, 0],
|
|
504
|
-
targetOffset:
|
|
498
|
+
targetOffset: oe
|
|
505
499
|
},
|
|
506
500
|
right: {
|
|
507
501
|
points: ["cl", "cr"],
|
|
508
|
-
overflow:
|
|
502
|
+
overflow: pe,
|
|
509
503
|
offset: [4, 0],
|
|
510
|
-
targetOffset:
|
|
504
|
+
targetOffset: oe
|
|
511
505
|
},
|
|
512
506
|
top: {
|
|
513
507
|
points: ["bc", "tc"],
|
|
514
|
-
overflow:
|
|
508
|
+
overflow: me,
|
|
515
509
|
offset: [0, -4],
|
|
516
|
-
targetOffset:
|
|
510
|
+
targetOffset: oe
|
|
517
511
|
},
|
|
518
512
|
bottom: {
|
|
519
513
|
points: ["tc", "bc"],
|
|
520
|
-
overflow:
|
|
514
|
+
overflow: me,
|
|
521
515
|
offset: [0, 4],
|
|
522
|
-
targetOffset:
|
|
516
|
+
targetOffset: oe
|
|
523
517
|
},
|
|
524
518
|
topLeft: {
|
|
525
519
|
points: ["bl", "tl"],
|
|
526
|
-
overflow:
|
|
520
|
+
overflow: me,
|
|
527
521
|
offset: [0, -4],
|
|
528
|
-
targetOffset:
|
|
522
|
+
targetOffset: oe
|
|
529
523
|
},
|
|
530
524
|
leftTop: {
|
|
531
525
|
points: ["tr", "tl"],
|
|
532
|
-
overflow:
|
|
526
|
+
overflow: pe,
|
|
533
527
|
offset: [-4, 0],
|
|
534
|
-
targetOffset:
|
|
528
|
+
targetOffset: oe
|
|
535
529
|
},
|
|
536
530
|
topRight: {
|
|
537
531
|
points: ["br", "tr"],
|
|
538
|
-
overflow:
|
|
532
|
+
overflow: me,
|
|
539
533
|
offset: [0, -4],
|
|
540
|
-
targetOffset:
|
|
534
|
+
targetOffset: oe
|
|
541
535
|
},
|
|
542
536
|
rightTop: {
|
|
543
537
|
points: ["tl", "tr"],
|
|
544
|
-
overflow:
|
|
538
|
+
overflow: pe,
|
|
545
539
|
offset: [4, 0],
|
|
546
|
-
targetOffset:
|
|
540
|
+
targetOffset: oe
|
|
547
541
|
},
|
|
548
542
|
bottomRight: {
|
|
549
543
|
points: ["tr", "br"],
|
|
550
|
-
overflow:
|
|
544
|
+
overflow: me,
|
|
551
545
|
offset: [0, 4],
|
|
552
|
-
targetOffset:
|
|
546
|
+
targetOffset: oe
|
|
553
547
|
},
|
|
554
548
|
rightBottom: {
|
|
555
549
|
points: ["bl", "br"],
|
|
556
|
-
overflow:
|
|
550
|
+
overflow: pe,
|
|
557
551
|
offset: [4, 0],
|
|
558
|
-
targetOffset:
|
|
552
|
+
targetOffset: oe
|
|
559
553
|
},
|
|
560
554
|
bottomLeft: {
|
|
561
555
|
points: ["tl", "bl"],
|
|
562
|
-
overflow:
|
|
556
|
+
overflow: me,
|
|
563
557
|
offset: [0, 4],
|
|
564
|
-
targetOffset:
|
|
558
|
+
targetOffset: oe
|
|
565
559
|
},
|
|
566
560
|
leftBottom: {
|
|
567
561
|
points: ["br", "bl"],
|
|
568
|
-
overflow:
|
|
562
|
+
overflow: pe,
|
|
569
563
|
offset: [-4, 0],
|
|
570
|
-
targetOffset:
|
|
564
|
+
targetOffset: oe
|
|
571
565
|
}
|
|
572
|
-
},
|
|
573
|
-
var n = t.overlayClassName, r = t.trigger, a = r === void 0 ? ["hover"] : r, i = t.mouseEnterDelay, s = i === void 0 ? 0 : i, c = t.mouseLeaveDelay, u = c === void 0 ? 0.1 : c, d = t.overlayStyle, f = t.prefixCls, m = f === void 0 ? "rc-tooltip" : f,
|
|
566
|
+
}, an = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], ln = function(t, o) {
|
|
567
|
+
var n = t.overlayClassName, r = t.trigger, a = r === void 0 ? ["hover"] : r, i = t.mouseEnterDelay, s = i === void 0 ? 0 : i, c = t.mouseLeaveDelay, u = c === void 0 ? 0.1 : c, d = t.overlayStyle, f = t.prefixCls, m = f === void 0 ? "rc-tooltip" : f, v = t.children, p = t.onVisibleChange, g = t.afterVisibleChange, h = t.transitionName, C = t.animation, b = t.motion, S = t.placement, $ = S === void 0 ? "right" : S, B = t.align, M = B === void 0 ? {} : B, R = t.destroyTooltipOnHide, T = R === void 0 ? !1 : R, w = t.defaultVisible, x = t.getTooltipContainer, P = t.overlayInnerStyle;
|
|
574
568
|
t.arrowContent;
|
|
575
|
-
var
|
|
569
|
+
var I = t.overlay, z = t.id, y = t.showArrow, N = y === void 0 ? !0 : y, E = t.classNames, A = t.styles, L = lo(t, an), F = so(z), j = Be(null);
|
|
576
570
|
yt(o, function() {
|
|
577
|
-
return
|
|
571
|
+
return j.current;
|
|
578
572
|
});
|
|
579
|
-
var
|
|
580
|
-
"visible" in t && (
|
|
573
|
+
var H = se({}, L);
|
|
574
|
+
"visible" in t && (H.popupVisible = t.visible);
|
|
581
575
|
var D = function() {
|
|
582
576
|
return /* @__PURE__ */ l.createElement(Ue, {
|
|
583
577
|
key: "content",
|
|
584
578
|
prefixCls: m,
|
|
585
579
|
id: F,
|
|
586
|
-
bodyClassName:
|
|
587
|
-
overlayInnerStyle:
|
|
588
|
-
},
|
|
580
|
+
bodyClassName: E == null ? void 0 : E.body,
|
|
581
|
+
overlayInnerStyle: se(se({}, P), A == null ? void 0 : A.body)
|
|
582
|
+
}, I);
|
|
589
583
|
}, W = function() {
|
|
590
|
-
var G = l.Children.only(
|
|
591
|
-
"aria-describedby":
|
|
584
|
+
var G = l.Children.only(v), Z = (G == null ? void 0 : G.props) || {}, ee = se(se({}, Z), {}, {
|
|
585
|
+
"aria-describedby": I ? F : null
|
|
592
586
|
});
|
|
593
|
-
return /* @__PURE__ */ l.cloneElement(
|
|
587
|
+
return /* @__PURE__ */ l.cloneElement(v, ee);
|
|
594
588
|
};
|
|
595
|
-
return /* @__PURE__ */ l.createElement($o,
|
|
596
|
-
popupClassName: _(n,
|
|
589
|
+
return /* @__PURE__ */ l.createElement($o, ze({
|
|
590
|
+
popupClassName: _(n, E == null ? void 0 : E.root),
|
|
597
591
|
prefixCls: m,
|
|
598
592
|
popup: D,
|
|
599
593
|
action: a,
|
|
600
|
-
builtinPlacements:
|
|
594
|
+
builtinPlacements: rn,
|
|
601
595
|
popupPlacement: $,
|
|
602
|
-
ref:
|
|
603
|
-
popupAlign:
|
|
604
|
-
getPopupContainer:
|
|
596
|
+
ref: j,
|
|
597
|
+
popupAlign: M,
|
|
598
|
+
getPopupContainer: x,
|
|
605
599
|
onPopupVisibleChange: p,
|
|
606
|
-
afterPopupVisibleChange:
|
|
600
|
+
afterPopupVisibleChange: g,
|
|
607
601
|
popupTransitionName: h,
|
|
608
602
|
popupAnimation: C,
|
|
609
603
|
popupMotion: b,
|
|
610
|
-
defaultPopupVisible:
|
|
611
|
-
autoDestroy:
|
|
604
|
+
defaultPopupVisible: w,
|
|
605
|
+
autoDestroy: T,
|
|
612
606
|
mouseLeaveDelay: u,
|
|
613
|
-
popupStyle:
|
|
607
|
+
popupStyle: se(se({}, d), A == null ? void 0 : A.root),
|
|
614
608
|
mouseEnterDelay: s,
|
|
615
|
-
arrow:
|
|
616
|
-
},
|
|
609
|
+
arrow: N
|
|
610
|
+
}, H), W());
|
|
617
611
|
};
|
|
618
|
-
const
|
|
612
|
+
const sn = /* @__PURE__ */ ke(ln);
|
|
619
613
|
function Ke(e) {
|
|
620
614
|
const {
|
|
621
615
|
sizePopupArrow: t,
|
|
622
616
|
borderRadiusXS: o,
|
|
623
617
|
borderRadiusOuter: n
|
|
624
|
-
} = e, r = t / 2, a = 0, i = r, s = n * 1 / Math.sqrt(2), c = r - n * (1 - 1 / Math.sqrt(2)), u = r - o * (1 / Math.sqrt(2)), d = n * (Math.sqrt(2) - 1) + o * (1 / Math.sqrt(2)), f = 2 * r - u, m = d,
|
|
618
|
+
} = e, r = t / 2, a = 0, i = r, s = n * 1 / Math.sqrt(2), c = r - n * (1 - 1 / Math.sqrt(2)), u = r - o * (1 / Math.sqrt(2)), d = n * (Math.sqrt(2) - 1) + o * (1 / Math.sqrt(2)), f = 2 * r - u, m = d, v = 2 * r - s, p = c, g = 2 * r - a, h = i, C = r * Math.sqrt(2) + n * (Math.sqrt(2) - 2), b = n * (Math.sqrt(2) - 1), S = `polygon(${b}px 100%, 50% ${b}px, ${2 * r - b}px 100%, ${b}px 100%)`, $ = `path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${c} L ${u} ${d} A ${o} ${o} 0 0 1 ${f} ${m} L ${v} ${p} A ${n} ${n} 0 0 0 ${g} ${h} Z')`;
|
|
625
619
|
return {
|
|
626
620
|
arrowShadowWidth: C,
|
|
627
621
|
arrowPath: $,
|
|
628
622
|
arrowPolygon: S
|
|
629
623
|
};
|
|
630
624
|
}
|
|
631
|
-
const
|
|
625
|
+
const cn = (e, t, o) => {
|
|
632
626
|
const {
|
|
633
627
|
sizePopupArrow: n,
|
|
634
628
|
arrowPolygon: r,
|
|
@@ -665,7 +659,7 @@ const dn = (e, t, o) => {
|
|
|
665
659
|
margin: "auto",
|
|
666
660
|
borderRadius: {
|
|
667
661
|
_skip_check_: !0,
|
|
668
|
-
value: `0 0 ${
|
|
662
|
+
value: `0 0 ${O(s)} 0`
|
|
669
663
|
},
|
|
670
664
|
transform: "translateY(50%) rotate(-135deg)",
|
|
671
665
|
boxShadow: o,
|
|
@@ -674,7 +668,7 @@ const dn = (e, t, o) => {
|
|
|
674
668
|
}
|
|
675
669
|
};
|
|
676
670
|
}, Et = 8;
|
|
677
|
-
function
|
|
671
|
+
function _e(e) {
|
|
678
672
|
const {
|
|
679
673
|
contentRadius: t,
|
|
680
674
|
limitVerticalRadius: o
|
|
@@ -684,7 +678,7 @@ function Te(e) {
|
|
|
684
678
|
arrowOffsetVertical: o ? Et : n
|
|
685
679
|
};
|
|
686
680
|
}
|
|
687
|
-
function
|
|
681
|
+
function we(e, t) {
|
|
688
682
|
return e ? t : {};
|
|
689
683
|
}
|
|
690
684
|
function Ze(e, t, o) {
|
|
@@ -709,12 +703,12 @@ function Ze(e, t, o) {
|
|
|
709
703
|
position: "absolute",
|
|
710
704
|
zIndex: 1,
|
|
711
705
|
display: "block"
|
|
712
|
-
},
|
|
706
|
+
}, cn(e, t, r)), {
|
|
713
707
|
"&:before": {
|
|
714
708
|
background: t
|
|
715
709
|
}
|
|
716
710
|
})]
|
|
717
|
-
},
|
|
711
|
+
}, we(!!c.top, {
|
|
718
712
|
[[`&-placement-top > ${n}-arrow`, `&-placement-topLeft > ${n}-arrow`, `&-placement-topRight > ${n}-arrow`].join(",")]: {
|
|
719
713
|
bottom: s,
|
|
720
714
|
transform: "translateY(100%) rotate(180deg)"
|
|
@@ -736,7 +730,7 @@ function Ze(e, t, o) {
|
|
|
736
730
|
}
|
|
737
731
|
},
|
|
738
732
|
"&-placement-topRight": {
|
|
739
|
-
"--arrow-offset-horizontal": `calc(100% - ${
|
|
733
|
+
"--arrow-offset-horizontal": `calc(100% - ${O(i)})`,
|
|
740
734
|
[`> ${n}-arrow`]: {
|
|
741
735
|
right: {
|
|
742
736
|
_skip_check_: !0,
|
|
@@ -744,7 +738,7 @@ function Ze(e, t, o) {
|
|
|
744
738
|
}
|
|
745
739
|
}
|
|
746
740
|
}
|
|
747
|
-
})),
|
|
741
|
+
})), we(!!c.bottom, {
|
|
748
742
|
[[`&-placement-bottom > ${n}-arrow`, `&-placement-bottomLeft > ${n}-arrow`, `&-placement-bottomRight > ${n}-arrow`].join(",")]: {
|
|
749
743
|
top: s,
|
|
750
744
|
transform: "translateY(-100%)"
|
|
@@ -766,7 +760,7 @@ function Ze(e, t, o) {
|
|
|
766
760
|
}
|
|
767
761
|
},
|
|
768
762
|
"&-placement-bottomRight": {
|
|
769
|
-
"--arrow-offset-horizontal": `calc(100% - ${
|
|
763
|
+
"--arrow-offset-horizontal": `calc(100% - ${O(i)})`,
|
|
770
764
|
[`> ${n}-arrow`]: {
|
|
771
765
|
right: {
|
|
772
766
|
_skip_check_: !0,
|
|
@@ -774,7 +768,7 @@ function Ze(e, t, o) {
|
|
|
774
768
|
}
|
|
775
769
|
}
|
|
776
770
|
}
|
|
777
|
-
})),
|
|
771
|
+
})), we(!!c.left, {
|
|
778
772
|
[[`&-placement-left > ${n}-arrow`, `&-placement-leftTop > ${n}-arrow`, `&-placement-leftBottom > ${n}-arrow`].join(",")]: {
|
|
779
773
|
right: {
|
|
780
774
|
_skip_check_: !0,
|
|
@@ -795,7 +789,7 @@ function Ze(e, t, o) {
|
|
|
795
789
|
[`&-placement-leftBottom > ${n}-arrow`]: {
|
|
796
790
|
bottom: a
|
|
797
791
|
}
|
|
798
|
-
})),
|
|
792
|
+
})), we(!!c.right, {
|
|
799
793
|
[[`&-placement-right > ${n}-arrow`, `&-placement-rightTop > ${n}-arrow`, `&-placement-rightBottom > ${n}-arrow`].join(",")]: {
|
|
800
794
|
left: {
|
|
801
795
|
_skip_check_: !0,
|
|
@@ -819,7 +813,7 @@ function Ze(e, t, o) {
|
|
|
819
813
|
}))
|
|
820
814
|
};
|
|
821
815
|
}
|
|
822
|
-
function
|
|
816
|
+
function dn(e, t, o, n) {
|
|
823
817
|
if (n === !1)
|
|
824
818
|
return {
|
|
825
819
|
adjustX: !1,
|
|
@@ -876,7 +870,7 @@ const ct = {
|
|
|
876
870
|
leftBottom: {
|
|
877
871
|
points: ["br", "bl"]
|
|
878
872
|
}
|
|
879
|
-
},
|
|
873
|
+
}, un = {
|
|
880
874
|
topLeft: {
|
|
881
875
|
points: ["bl", "tc"]
|
|
882
876
|
},
|
|
@@ -901,7 +895,7 @@ const ct = {
|
|
|
901
895
|
leftBottom: {
|
|
902
896
|
points: ["br", "cl"]
|
|
903
897
|
}
|
|
904
|
-
},
|
|
898
|
+
}, mn = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]);
|
|
905
899
|
function Pt(e) {
|
|
906
900
|
const {
|
|
907
901
|
arrowWidth: t,
|
|
@@ -912,11 +906,11 @@ function Pt(e) {
|
|
|
912
906
|
visibleFirst: i
|
|
913
907
|
} = e, s = t / 2, c = {};
|
|
914
908
|
return Object.keys(ct).forEach((u) => {
|
|
915
|
-
const d = n &&
|
|
909
|
+
const d = n && un[u] || ct[u], f = Object.assign(Object.assign({}, d), {
|
|
916
910
|
offset: [0, 0],
|
|
917
911
|
dynamicInset: !0
|
|
918
912
|
});
|
|
919
|
-
switch (c[u] = f,
|
|
913
|
+
switch (c[u] = f, mn.has(u) && (f.autoArrow = !1), u) {
|
|
920
914
|
case "top":
|
|
921
915
|
case "topLeft":
|
|
922
916
|
case "topRight":
|
|
@@ -938,7 +932,7 @@ function Pt(e) {
|
|
|
938
932
|
f.offset[0] = s + r;
|
|
939
933
|
break;
|
|
940
934
|
}
|
|
941
|
-
const m =
|
|
935
|
+
const m = _e({
|
|
942
936
|
contentRadius: a,
|
|
943
937
|
limitVerticalRadius: !0
|
|
944
938
|
});
|
|
@@ -961,10 +955,10 @@ function Pt(e) {
|
|
|
961
955
|
f.offset[1] = m.arrowOffsetHorizontal * 2 - s;
|
|
962
956
|
break;
|
|
963
957
|
}
|
|
964
|
-
f.overflow =
|
|
958
|
+
f.overflow = dn(u, m, t, o), i && (f.htmlRegion = "visibleFirst");
|
|
965
959
|
}), c;
|
|
966
960
|
}
|
|
967
|
-
const
|
|
961
|
+
const pn = (e) => {
|
|
968
962
|
const {
|
|
969
963
|
calc: t,
|
|
970
964
|
componentCls: o,
|
|
@@ -979,11 +973,11 @@ const gn = (e) => {
|
|
|
979
973
|
paddingSM: d,
|
|
980
974
|
paddingXS: f,
|
|
981
975
|
arrowOffsetHorizontal: m,
|
|
982
|
-
sizePopupArrow:
|
|
983
|
-
} = e, p = t(i).add(
|
|
976
|
+
sizePopupArrow: v
|
|
977
|
+
} = e, p = t(i).add(v).add(m).equal(), g = t(i).mul(2).add(v).equal();
|
|
984
978
|
return [
|
|
985
979
|
{
|
|
986
|
-
[o]: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
980
|
+
[o]: Object.assign(Object.assign(Object.assign(Object.assign({}, ve(e)), {
|
|
987
981
|
position: "absolute",
|
|
988
982
|
zIndex: s,
|
|
989
983
|
display: "block",
|
|
@@ -999,9 +993,9 @@ const gn = (e) => {
|
|
|
999
993
|
"--antd-arrow-background-color": a,
|
|
1000
994
|
// Wrapper for the tooltip content
|
|
1001
995
|
[`${o}-inner`]: {
|
|
1002
|
-
minWidth:
|
|
996
|
+
minWidth: g,
|
|
1003
997
|
minHeight: c,
|
|
1004
|
-
padding: `${
|
|
998
|
+
padding: `${O(e.calc(d).div(2).equal())} ${O(f)}`,
|
|
1005
999
|
color: r,
|
|
1006
1000
|
textAlign: "start",
|
|
1007
1001
|
textDecoration: "none",
|
|
@@ -1056,39 +1050,39 @@ const gn = (e) => {
|
|
|
1056
1050
|
}
|
|
1057
1051
|
}
|
|
1058
1052
|
];
|
|
1059
|
-
},
|
|
1053
|
+
}, gn = (e) => Object.assign(Object.assign({
|
|
1060
1054
|
zIndexPopup: e.zIndexPopupBase + 70
|
|
1061
|
-
},
|
|
1055
|
+
}, _e({
|
|
1062
1056
|
contentRadius: e.borderRadius,
|
|
1063
1057
|
limitVerticalRadius: !0
|
|
1064
|
-
})), Ke(
|
|
1058
|
+
})), Ke(ce(e, {
|
|
1065
1059
|
borderRadiusOuter: Math.min(e.borderRadiusOuter, 4)
|
|
1066
1060
|
}))), Bt = function(e) {
|
|
1067
1061
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
1068
|
-
return
|
|
1062
|
+
return de("Tooltip", (n) => {
|
|
1069
1063
|
const {
|
|
1070
1064
|
borderRadius: r,
|
|
1071
1065
|
colorTextLightSolid: a,
|
|
1072
1066
|
colorBgSpotlight: i
|
|
1073
|
-
} = n, s =
|
|
1067
|
+
} = n, s = ce(n, {
|
|
1074
1068
|
// default variables
|
|
1075
1069
|
tooltipMaxWidth: 250,
|
|
1076
1070
|
tooltipColor: a,
|
|
1077
1071
|
tooltipBorderRadius: r,
|
|
1078
1072
|
tooltipBg: i
|
|
1079
1073
|
});
|
|
1080
|
-
return [
|
|
1081
|
-
},
|
|
1074
|
+
return [pn(s), Te(n, "zoom-big-fast")];
|
|
1075
|
+
}, gn, {
|
|
1082
1076
|
resetStyle: !1,
|
|
1083
1077
|
// Popover use Tooltip as internal component. We do not need to handle this.
|
|
1084
1078
|
injectStyle: t
|
|
1085
1079
|
})(e);
|
|
1086
|
-
},
|
|
1087
|
-
function
|
|
1088
|
-
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat(nt(
|
|
1080
|
+
}, fn = fe.map((e) => `${e}-inverse`);
|
|
1081
|
+
function vn(e) {
|
|
1082
|
+
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat(nt(fn), nt(fe)).includes(e) : fe.includes(e);
|
|
1089
1083
|
}
|
|
1090
1084
|
function zt(e, t) {
|
|
1091
|
-
const o =
|
|
1085
|
+
const o = vn(t), n = _({
|
|
1092
1086
|
[`${e}-${t}`]: t && o
|
|
1093
1087
|
}), r = {}, a = {};
|
|
1094
1088
|
return t && !o && (r.background = t, a["--antd-arrow-background-color"] = t), {
|
|
@@ -1097,7 +1091,7 @@ function zt(e, t) {
|
|
|
1097
1091
|
arrowStyle: a
|
|
1098
1092
|
};
|
|
1099
1093
|
}
|
|
1100
|
-
const
|
|
1094
|
+
const bn = (e) => {
|
|
1101
1095
|
const {
|
|
1102
1096
|
prefixCls: t,
|
|
1103
1097
|
className: o,
|
|
@@ -1107,10 +1101,10 @@ const hn = (e) => {
|
|
|
1107
1101
|
overlayInnerStyle: i
|
|
1108
1102
|
} = e, {
|
|
1109
1103
|
getPrefixCls: s
|
|
1110
|
-
} = l.useContext(
|
|
1104
|
+
} = l.useContext(ie), c = s("tooltip", t), [u, d, f] = Bt(c), m = zt(c, a), v = m.arrowStyle, p = Object.assign(Object.assign({}, i), m.overlayStyle), g = _(d, f, c, `${c}-pure`, `${c}-placement-${n}`, o, m.className);
|
|
1111
1105
|
return u(/* @__PURE__ */ l.createElement("div", {
|
|
1112
|
-
className:
|
|
1113
|
-
style:
|
|
1106
|
+
className: g,
|
|
1107
|
+
style: v
|
|
1114
1108
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
1115
1109
|
className: `${c}-arrow`
|
|
1116
1110
|
}), /* @__PURE__ */ l.createElement(Ue, Object.assign({}, e, {
|
|
@@ -1119,14 +1113,14 @@ const hn = (e) => {
|
|
|
1119
1113
|
overlayInnerStyle: p
|
|
1120
1114
|
}), r)));
|
|
1121
1115
|
};
|
|
1122
|
-
var
|
|
1116
|
+
var hn = function(e, t) {
|
|
1123
1117
|
var o = {};
|
|
1124
1118
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1125
1119
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1126
1120
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1127
1121
|
return o;
|
|
1128
1122
|
};
|
|
1129
|
-
const
|
|
1123
|
+
const $n = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
1130
1124
|
var o, n;
|
|
1131
1125
|
const {
|
|
1132
1126
|
prefixCls: r,
|
|
@@ -1138,112 +1132,112 @@ const yn = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
1138
1132
|
afterOpenChange: d,
|
|
1139
1133
|
afterVisibleChange: f,
|
|
1140
1134
|
destroyTooltipOnHide: m,
|
|
1141
|
-
arrow:
|
|
1135
|
+
arrow: v = !0,
|
|
1142
1136
|
title: p,
|
|
1143
|
-
overlay:
|
|
1137
|
+
overlay: g,
|
|
1144
1138
|
builtinPlacements: h,
|
|
1145
1139
|
arrowPointAtCenter: C = !1,
|
|
1146
1140
|
autoAdjustOverflow: b = !0,
|
|
1147
1141
|
motion: S,
|
|
1148
1142
|
getPopupContainer: $,
|
|
1149
|
-
placement:
|
|
1150
|
-
mouseEnterDelay:
|
|
1143
|
+
placement: B = "top",
|
|
1144
|
+
mouseEnterDelay: M = 0.1,
|
|
1151
1145
|
mouseLeaveDelay: R = 0.1,
|
|
1152
|
-
overlayStyle:
|
|
1153
|
-
rootClassName:
|
|
1154
|
-
overlayClassName:
|
|
1155
|
-
styles:
|
|
1156
|
-
classNames:
|
|
1157
|
-
} = e,
|
|
1158
|
-
getPopupContainer:
|
|
1159
|
-
getPrefixCls:
|
|
1146
|
+
overlayStyle: T,
|
|
1147
|
+
rootClassName: w,
|
|
1148
|
+
overlayClassName: x,
|
|
1149
|
+
styles: P,
|
|
1150
|
+
classNames: I
|
|
1151
|
+
} = e, z = hn(e, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), y = !!v, [, N] = We(), {
|
|
1152
|
+
getPopupContainer: E,
|
|
1153
|
+
getPrefixCls: A,
|
|
1160
1154
|
direction: L,
|
|
1161
1155
|
className: F,
|
|
1162
|
-
style:
|
|
1163
|
-
classNames:
|
|
1156
|
+
style: j,
|
|
1157
|
+
classNames: H,
|
|
1164
1158
|
styles: D
|
|
1165
|
-
} = Xe("tooltip"), W =
|
|
1159
|
+
} = Xe("tooltip"), W = be("Tooltip"), q = l.useRef(null), G = () => {
|
|
1166
1160
|
var K;
|
|
1167
1161
|
(K = q.current) === null || K === void 0 || K.forceAlign();
|
|
1168
1162
|
};
|
|
1169
1163
|
l.useImperativeHandle(t, () => {
|
|
1170
|
-
var K,
|
|
1164
|
+
var K, te;
|
|
1171
1165
|
return {
|
|
1172
1166
|
forceAlign: G,
|
|
1173
1167
|
forcePopupAlign: () => {
|
|
1174
1168
|
W.deprecated(!1, "forcePopupAlign", "forceAlign"), G();
|
|
1175
1169
|
},
|
|
1176
1170
|
nativeElement: (K = q.current) === null || K === void 0 ? void 0 : K.nativeElement,
|
|
1177
|
-
popupElement: (
|
|
1171
|
+
popupElement: (te = q.current) === null || te === void 0 ? void 0 : te.popupElement
|
|
1178
1172
|
};
|
|
1179
1173
|
}), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach((K) => {
|
|
1180
|
-
let [
|
|
1181
|
-
W.deprecated(!(
|
|
1182
|
-
}), process.env.NODE_ENV !== "production" && W(!m || typeof m == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && W(!
|
|
1183
|
-
const [Z,
|
|
1174
|
+
let [te, ae] = K;
|
|
1175
|
+
W.deprecated(!(te in e), te, ae);
|
|
1176
|
+
}), process.env.NODE_ENV !== "production" && W(!m || typeof m == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && W(!v || typeof v == "boolean" || !("arrowPointAtCenter" in v), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
|
|
1177
|
+
const [Z, ee] = Fe(!1, {
|
|
1184
1178
|
value: (o = e.open) !== null && o !== void 0 ? o : e.visible,
|
|
1185
1179
|
defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible
|
|
1186
|
-
}),
|
|
1187
|
-
var
|
|
1188
|
-
|
|
1189
|
-
},
|
|
1190
|
-
var K,
|
|
1191
|
-
let
|
|
1192
|
-
return typeof
|
|
1193
|
-
arrowPointAtCenter:
|
|
1180
|
+
}), k = !p && !g && p !== 0, U = (K) => {
|
|
1181
|
+
var te, ae;
|
|
1182
|
+
ee(k ? !1 : K), k || ((te = e.onOpenChange) === null || te === void 0 || te.call(e, K), (ae = e.onVisibleChange) === null || ae === void 0 || ae.call(e, K));
|
|
1183
|
+
}, Q = l.useMemo(() => {
|
|
1184
|
+
var K, te;
|
|
1185
|
+
let ae = C;
|
|
1186
|
+
return typeof v == "object" && (ae = (te = (K = v.pointAtCenter) !== null && K !== void 0 ? K : v.arrowPointAtCenter) !== null && te !== void 0 ? te : C), h || Pt({
|
|
1187
|
+
arrowPointAtCenter: ae,
|
|
1194
1188
|
autoAdjustOverflow: b,
|
|
1195
|
-
arrowWidth: y ?
|
|
1196
|
-
borderRadius:
|
|
1197
|
-
offset:
|
|
1189
|
+
arrowWidth: y ? N.sizePopupArrow : 0,
|
|
1190
|
+
borderRadius: N.borderRadius,
|
|
1191
|
+
offset: N.marginXXS,
|
|
1198
1192
|
visibleFirst: !0
|
|
1199
1193
|
});
|
|
1200
|
-
}, [C,
|
|
1194
|
+
}, [C, v, h, N]), X = l.useMemo(() => p === 0 ? p : g || p || "", [g, p]), Y = /* @__PURE__ */ l.createElement(St, {
|
|
1201
1195
|
space: !0
|
|
1202
|
-
}, typeof
|
|
1203
|
-
let
|
|
1204
|
-
!("open" in e) && !("visible" in e) &&
|
|
1205
|
-
const Me = /* @__PURE__ */ l.isValidElement(u) && !zo(u) ? u : /* @__PURE__ */ l.createElement("span", null, u),
|
|
1206
|
-
[`${
|
|
1207
|
-
}, De.className,
|
|
1196
|
+
}, typeof X == "function" ? X() : X), J = A("tooltip", r), V = A(), re = e["data-popover-inject"];
|
|
1197
|
+
let ne = Z;
|
|
1198
|
+
!("open" in e) && !("visible" in e) && k && (ne = !1);
|
|
1199
|
+
const Me = /* @__PURE__ */ l.isValidElement(u) && !zo(u) ? u : /* @__PURE__ */ l.createElement("span", null, u), ye = Me.props, Xt = !ye.className || typeof ye.className == "string" ? _(ye.className, a || `${J}-open`) : ye.className, [Ft, qt, Gt] = Bt(J, !re), De = zt(J, s), Yt = De.arrowStyle, Ut = _(x, {
|
|
1200
|
+
[`${J}-rtl`]: L === "rtl"
|
|
1201
|
+
}, De.className, w, qt, Gt, F, H.root, I == null ? void 0 : I.root), Kt = _(H.body, I == null ? void 0 : I.body), [Zt, Qt] = Ge("Tooltip", z.zIndex), Jt = /* @__PURE__ */ l.createElement(sn, Object.assign({}, z, {
|
|
1208
1202
|
zIndex: Zt,
|
|
1209
1203
|
showArrow: y,
|
|
1210
|
-
placement:
|
|
1211
|
-
mouseEnterDelay:
|
|
1204
|
+
placement: B,
|
|
1205
|
+
mouseEnterDelay: M,
|
|
1212
1206
|
mouseLeaveDelay: R,
|
|
1213
|
-
prefixCls:
|
|
1207
|
+
prefixCls: J,
|
|
1214
1208
|
classNames: {
|
|
1215
1209
|
root: Ut,
|
|
1216
1210
|
body: Kt
|
|
1217
1211
|
},
|
|
1218
1212
|
styles: {
|
|
1219
|
-
root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Yt), D.root),
|
|
1220
|
-
body: Object.assign(Object.assign(Object.assign(Object.assign({}, D.body), c),
|
|
1213
|
+
root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Yt), D.root), j), T), P == null ? void 0 : P.root),
|
|
1214
|
+
body: Object.assign(Object.assign(Object.assign(Object.assign({}, D.body), c), P == null ? void 0 : P.body), De.overlayStyle)
|
|
1221
1215
|
},
|
|
1222
|
-
getTooltipContainer: $ || i ||
|
|
1216
|
+
getTooltipContainer: $ || i || E,
|
|
1223
1217
|
ref: q,
|
|
1224
|
-
builtinPlacements:
|
|
1225
|
-
overlay:
|
|
1226
|
-
visible:
|
|
1227
|
-
onVisibleChange:
|
|
1218
|
+
builtinPlacements: Q,
|
|
1219
|
+
overlay: Y,
|
|
1220
|
+
visible: ne,
|
|
1221
|
+
onVisibleChange: U,
|
|
1228
1222
|
afterVisibleChange: d ?? f,
|
|
1229
1223
|
arrowContent: /* @__PURE__ */ l.createElement("span", {
|
|
1230
|
-
className: `${
|
|
1224
|
+
className: `${J}-arrow-content`
|
|
1231
1225
|
}),
|
|
1232
1226
|
motion: {
|
|
1233
|
-
motionName: Ct(
|
|
1227
|
+
motionName: Ct(V, "zoom-big-fast", e.transitionName),
|
|
1234
1228
|
motionDeadline: 1e3
|
|
1235
1229
|
},
|
|
1236
1230
|
destroyTooltipOnHide: !!m
|
|
1237
|
-
}),
|
|
1231
|
+
}), ne ? ue(Me, {
|
|
1238
1232
|
className: Xt
|
|
1239
1233
|
}) : Me);
|
|
1240
1234
|
return Ft(/* @__PURE__ */ l.createElement(Ot.Provider, {
|
|
1241
1235
|
value: Qt
|
|
1242
1236
|
}, Jt));
|
|
1243
|
-
}),
|
|
1244
|
-
process.env.NODE_ENV !== "production" && (
|
|
1245
|
-
|
|
1246
|
-
const
|
|
1237
|
+
}), Re = $n;
|
|
1238
|
+
process.env.NODE_ENV !== "production" && (Re.displayName = "Tooltip");
|
|
1239
|
+
Re._InternalPanelDoNotUseOrYouWillBeFired = bn;
|
|
1240
|
+
const yn = (e) => {
|
|
1247
1241
|
const {
|
|
1248
1242
|
componentCls: t,
|
|
1249
1243
|
popoverColor: o,
|
|
@@ -1257,13 +1251,13 @@ const Cn = (e) => {
|
|
|
1257
1251
|
titleMarginBottom: d,
|
|
1258
1252
|
colorBgElevated: f,
|
|
1259
1253
|
popoverBg: m,
|
|
1260
|
-
titleBorderBottom:
|
|
1254
|
+
titleBorderBottom: v,
|
|
1261
1255
|
innerContentPadding: p,
|
|
1262
|
-
titlePadding:
|
|
1256
|
+
titlePadding: g
|
|
1263
1257
|
} = e;
|
|
1264
1258
|
return [
|
|
1265
1259
|
{
|
|
1266
|
-
[t]: Object.assign(Object.assign({},
|
|
1260
|
+
[t]: Object.assign(Object.assign({}, ve(e)), {
|
|
1267
1261
|
position: "absolute",
|
|
1268
1262
|
top: 0,
|
|
1269
1263
|
// use `left` to fix https://github.com/ant-design/ant-design/issues/39195
|
|
@@ -1304,8 +1298,8 @@ const Cn = (e) => {
|
|
|
1304
1298
|
marginBottom: d,
|
|
1305
1299
|
color: s,
|
|
1306
1300
|
fontWeight: r,
|
|
1307
|
-
borderBottom:
|
|
1308
|
-
padding:
|
|
1301
|
+
borderBottom: v,
|
|
1302
|
+
padding: g
|
|
1309
1303
|
},
|
|
1310
1304
|
[`${t}-inner-content`]: {
|
|
1311
1305
|
color: o,
|
|
@@ -1328,12 +1322,12 @@ const Cn = (e) => {
|
|
|
1328
1322
|
}
|
|
1329
1323
|
}
|
|
1330
1324
|
];
|
|
1331
|
-
},
|
|
1325
|
+
}, Cn = (e) => {
|
|
1332
1326
|
const {
|
|
1333
1327
|
componentCls: t
|
|
1334
1328
|
} = e;
|
|
1335
1329
|
return {
|
|
1336
|
-
[t]:
|
|
1330
|
+
[t]: fe.map((o) => {
|
|
1337
1331
|
const n = e[`${o}6`];
|
|
1338
1332
|
return {
|
|
1339
1333
|
[`&${t}-${o}`]: {
|
|
@@ -1348,7 +1342,7 @@ const Cn = (e) => {
|
|
|
1348
1342
|
};
|
|
1349
1343
|
})
|
|
1350
1344
|
};
|
|
1351
|
-
},
|
|
1345
|
+
}, wn = (e) => {
|
|
1352
1346
|
const {
|
|
1353
1347
|
lineWidth: t,
|
|
1354
1348
|
controlHeight: o,
|
|
@@ -1361,35 +1355,35 @@ const Cn = (e) => {
|
|
|
1361
1355
|
lineType: u,
|
|
1362
1356
|
colorSplit: d,
|
|
1363
1357
|
paddingSM: f
|
|
1364
|
-
} = e, m = o - n,
|
|
1358
|
+
} = e, m = o - n, v = m / 2, p = m / 2 - t, g = r;
|
|
1365
1359
|
return Object.assign(Object.assign(Object.assign({
|
|
1366
1360
|
titleMinWidth: 177,
|
|
1367
1361
|
zIndexPopup: i + 30
|
|
1368
|
-
}, Ke(e)),
|
|
1362
|
+
}, Ke(e)), _e({
|
|
1369
1363
|
contentRadius: s,
|
|
1370
1364
|
limitVerticalRadius: !0
|
|
1371
1365
|
})), {
|
|
1372
1366
|
// internal
|
|
1373
1367
|
innerPadding: a ? 0 : 12,
|
|
1374
1368
|
titleMarginBottom: a ? 0 : c,
|
|
1375
|
-
titlePadding: a ? `${
|
|
1369
|
+
titlePadding: a ? `${v}px ${g}px ${p}px` : 0,
|
|
1376
1370
|
titleBorderBottom: a ? `${t}px ${u} ${d}` : "none",
|
|
1377
|
-
innerContentPadding: a ? `${f}px ${
|
|
1371
|
+
innerContentPadding: a ? `${f}px ${g}px` : 0
|
|
1378
1372
|
});
|
|
1379
|
-
}, jt =
|
|
1373
|
+
}, jt = de("Popover", (e) => {
|
|
1380
1374
|
const {
|
|
1381
1375
|
colorBgElevated: t,
|
|
1382
1376
|
colorText: o
|
|
1383
|
-
} = e, n =
|
|
1377
|
+
} = e, n = ce(e, {
|
|
1384
1378
|
popoverBg: t,
|
|
1385
1379
|
popoverColor: o
|
|
1386
1380
|
});
|
|
1387
|
-
return [
|
|
1388
|
-
},
|
|
1381
|
+
return [yn(n), Cn(n), Te(n, "zoom-big")];
|
|
1382
|
+
}, wn, {
|
|
1389
1383
|
resetStyle: !1,
|
|
1390
1384
|
deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
|
|
1391
1385
|
});
|
|
1392
|
-
var
|
|
1386
|
+
var xn = function(e, t) {
|
|
1393
1387
|
var o = {};
|
|
1394
1388
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1395
1389
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
@@ -1407,7 +1401,7 @@ const Tt = (e) => {
|
|
|
1407
1401
|
}, t), o && /* @__PURE__ */ l.createElement("div", {
|
|
1408
1402
|
className: `${n}-inner-content`
|
|
1409
1403
|
}, o));
|
|
1410
|
-
},
|
|
1404
|
+
}, Sn = (e) => {
|
|
1411
1405
|
const {
|
|
1412
1406
|
hashId: t,
|
|
1413
1407
|
prefixCls: o,
|
|
@@ -1417,7 +1411,7 @@ const Tt = (e) => {
|
|
|
1417
1411
|
title: i,
|
|
1418
1412
|
content: s,
|
|
1419
1413
|
children: c
|
|
1420
|
-
} = e, u =
|
|
1414
|
+
} = e, u = Ie(i), d = Ie(s), f = _(t, o, `${o}-pure`, `${o}-placement-${a}`, n);
|
|
1421
1415
|
return /* @__PURE__ */ l.createElement("div", {
|
|
1422
1416
|
className: f,
|
|
1423
1417
|
style: r
|
|
@@ -1431,27 +1425,27 @@ const Tt = (e) => {
|
|
|
1431
1425
|
title: u,
|
|
1432
1426
|
content: d
|
|
1433
1427
|
})));
|
|
1434
|
-
},
|
|
1428
|
+
}, On = (e) => {
|
|
1435
1429
|
const {
|
|
1436
1430
|
prefixCls: t,
|
|
1437
1431
|
className: o
|
|
1438
|
-
} = e, n =
|
|
1432
|
+
} = e, n = xn(e, ["prefixCls", "className"]), {
|
|
1439
1433
|
getPrefixCls: r
|
|
1440
|
-
} = l.useContext(
|
|
1441
|
-
return i(/* @__PURE__ */ l.createElement(
|
|
1434
|
+
} = l.useContext(ie), a = r("popover", t), [i, s, c] = jt(a);
|
|
1435
|
+
return i(/* @__PURE__ */ l.createElement(Sn, Object.assign({}, n, {
|
|
1442
1436
|
prefixCls: a,
|
|
1443
1437
|
hashId: s,
|
|
1444
1438
|
className: _(o, c)
|
|
1445
1439
|
})));
|
|
1446
1440
|
};
|
|
1447
|
-
var
|
|
1441
|
+
var In = function(e, t) {
|
|
1448
1442
|
var o = {};
|
|
1449
1443
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1450
1444
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1451
1445
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1452
1446
|
return o;
|
|
1453
1447
|
};
|
|
1454
|
-
const
|
|
1448
|
+
const Nn = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
1455
1449
|
var o, n;
|
|
1456
1450
|
const {
|
|
1457
1451
|
prefixCls: r,
|
|
@@ -1463,27 +1457,27 @@ const En = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
1463
1457
|
children: d,
|
|
1464
1458
|
mouseEnterDelay: f = 0.1,
|
|
1465
1459
|
mouseLeaveDelay: m = 0.1,
|
|
1466
|
-
onOpenChange:
|
|
1460
|
+
onOpenChange: v,
|
|
1467
1461
|
overlayStyle: p = {},
|
|
1468
|
-
styles:
|
|
1462
|
+
styles: g,
|
|
1469
1463
|
classNames: h
|
|
1470
|
-
} = e, C =
|
|
1464
|
+
} = e, C = In(e, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]), {
|
|
1471
1465
|
getPrefixCls: b,
|
|
1472
1466
|
className: S,
|
|
1473
1467
|
style: $,
|
|
1474
|
-
classNames:
|
|
1475
|
-
styles:
|
|
1476
|
-
} = Xe("popover"), R = b("popover", r), [
|
|
1468
|
+
classNames: B,
|
|
1469
|
+
styles: M
|
|
1470
|
+
} = Xe("popover"), R = b("popover", r), [T, w, x] = jt(R), P = b(), I = _(s, w, x, S, B.root, h == null ? void 0 : h.root), z = _(B.body, h == null ? void 0 : h.body), [y, N] = Fe(!1, {
|
|
1477
1471
|
value: (o = e.open) !== null && o !== void 0 ? o : e.visible,
|
|
1478
1472
|
defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible
|
|
1479
|
-
}),
|
|
1480
|
-
|
|
1481
|
-
},
|
|
1482
|
-
|
|
1483
|
-
}, L = (
|
|
1484
|
-
|
|
1485
|
-
}, F =
|
|
1486
|
-
return
|
|
1473
|
+
}), E = (H, D) => {
|
|
1474
|
+
N(H, !0), v == null || v(H, D);
|
|
1475
|
+
}, A = (H) => {
|
|
1476
|
+
H.keyCode === co.ESC && E(!1, H);
|
|
1477
|
+
}, L = (H) => {
|
|
1478
|
+
E(H);
|
|
1479
|
+
}, F = Ie(a), j = Ie(i);
|
|
1480
|
+
return T(/* @__PURE__ */ l.createElement(Re, Object.assign({
|
|
1487
1481
|
placement: c,
|
|
1488
1482
|
trigger: u,
|
|
1489
1483
|
mouseEnterDelay: f,
|
|
@@ -1491,31 +1485,31 @@ const En = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
1491
1485
|
}, C, {
|
|
1492
1486
|
prefixCls: R,
|
|
1493
1487
|
classNames: {
|
|
1494
|
-
root:
|
|
1495
|
-
body:
|
|
1488
|
+
root: I,
|
|
1489
|
+
body: z
|
|
1496
1490
|
},
|
|
1497
1491
|
styles: {
|
|
1498
|
-
root: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
1499
|
-
body: Object.assign(Object.assign({},
|
|
1492
|
+
root: Object.assign(Object.assign(Object.assign(Object.assign({}, M.root), $), p), g == null ? void 0 : g.root),
|
|
1493
|
+
body: Object.assign(Object.assign({}, M.body), g == null ? void 0 : g.body)
|
|
1500
1494
|
},
|
|
1501
1495
|
ref: t,
|
|
1502
1496
|
open: y,
|
|
1503
1497
|
onOpenChange: L,
|
|
1504
|
-
overlay: F ||
|
|
1498
|
+
overlay: F || j ? /* @__PURE__ */ l.createElement(Tt, {
|
|
1505
1499
|
prefixCls: R,
|
|
1506
1500
|
title: F,
|
|
1507
|
-
content:
|
|
1501
|
+
content: j
|
|
1508
1502
|
}) : null,
|
|
1509
|
-
transitionName: Ct(
|
|
1503
|
+
transitionName: Ct(P, "zoom-big", C.transitionName),
|
|
1510
1504
|
"data-popover-inject": !0
|
|
1511
|
-
}),
|
|
1512
|
-
onKeyDown: (
|
|
1505
|
+
}), ue(d, {
|
|
1506
|
+
onKeyDown: (H) => {
|
|
1513
1507
|
var D, W;
|
|
1514
|
-
/* @__PURE__ */ l.isValidElement(d) && ((W = d == null ? void 0 : (D = d.props).onKeyDown) === null || W === void 0 || W.call(D,
|
|
1508
|
+
/* @__PURE__ */ l.isValidElement(d) && ((W = d == null ? void 0 : (D = d.props).onKeyDown) === null || W === void 0 || W.call(D, H)), A(H);
|
|
1515
1509
|
}
|
|
1516
1510
|
})));
|
|
1517
|
-
}), Qe =
|
|
1518
|
-
Qe._InternalPanelDoNotUseOrYouWillBeFired =
|
|
1511
|
+
}), Qe = Nn;
|
|
1512
|
+
Qe._InternalPanelDoNotUseOrYouWillBeFired = On;
|
|
1519
1513
|
process.env.NODE_ENV !== "production" && (Qe.displayName = "Popover");
|
|
1520
1514
|
const dt = (e) => {
|
|
1521
1515
|
const {
|
|
@@ -1528,91 +1522,91 @@ const dt = (e) => {
|
|
|
1528
1522
|
return /* @__PURE__ */ l.createElement(Le.Provider, {
|
|
1529
1523
|
value: n
|
|
1530
1524
|
}, e.children);
|
|
1531
|
-
},
|
|
1525
|
+
}, En = (e) => {
|
|
1532
1526
|
var t, o, n, r;
|
|
1533
1527
|
const {
|
|
1534
1528
|
getPrefixCls: a,
|
|
1535
1529
|
direction: i
|
|
1536
|
-
} = l.useContext(
|
|
1530
|
+
} = l.useContext(ie), {
|
|
1537
1531
|
prefixCls: s,
|
|
1538
1532
|
className: c,
|
|
1539
1533
|
rootClassName: u,
|
|
1540
1534
|
style: d,
|
|
1541
1535
|
maxCount: f,
|
|
1542
1536
|
maxStyle: m,
|
|
1543
|
-
size:
|
|
1537
|
+
size: v,
|
|
1544
1538
|
shape: p,
|
|
1545
|
-
maxPopoverPlacement:
|
|
1539
|
+
maxPopoverPlacement: g,
|
|
1546
1540
|
maxPopoverTrigger: h,
|
|
1547
1541
|
children: C,
|
|
1548
1542
|
max: b
|
|
1549
1543
|
} = e;
|
|
1550
1544
|
if (process.env.NODE_ENV !== "production") {
|
|
1551
|
-
const
|
|
1545
|
+
const z = be("Avatar.Group");
|
|
1552
1546
|
[["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach((y) => {
|
|
1553
|
-
let [
|
|
1554
|
-
|
|
1547
|
+
let [N, E] = y;
|
|
1548
|
+
z.deprecated(!(N in e), N, E);
|
|
1555
1549
|
});
|
|
1556
1550
|
}
|
|
1557
|
-
const S = a("avatar", s), $ = `${S}-group`,
|
|
1551
|
+
const S = a("avatar", s), $ = `${S}-group`, B = je(S), [M, R, T] = Nt(S, B), w = _($, {
|
|
1558
1552
|
[`${$}-rtl`]: i === "rtl"
|
|
1559
|
-
},
|
|
1553
|
+
}, T, B, c, u, R), x = qe(C).map((z, y) => ue(z, {
|
|
1560
1554
|
// eslint-disable-next-line react/no-array-index-key
|
|
1561
1555
|
key: `avatar-key-${y}`
|
|
1562
|
-
})),
|
|
1563
|
-
if (
|
|
1564
|
-
const
|
|
1556
|
+
})), P = (b == null ? void 0 : b.count) || f, I = x.length;
|
|
1557
|
+
if (P && P < I) {
|
|
1558
|
+
const z = x.slice(0, P), y = x.slice(P, I), N = (b == null ? void 0 : b.style) || m, E = ((t = b == null ? void 0 : b.popover) === null || t === void 0 ? void 0 : t.trigger) || h || "hover", A = ((o = b == null ? void 0 : b.popover) === null || o === void 0 ? void 0 : o.placement) || g || "top", L = Object.assign(Object.assign({
|
|
1565
1559
|
content: y
|
|
1566
1560
|
}, b == null ? void 0 : b.popover), {
|
|
1567
1561
|
classNames: {
|
|
1568
1562
|
root: _(`${$}-popover`, (r = (n = b == null ? void 0 : b.popover) === null || n === void 0 ? void 0 : n.classNames) === null || r === void 0 ? void 0 : r.root)
|
|
1569
1563
|
},
|
|
1570
|
-
placement:
|
|
1571
|
-
trigger:
|
|
1564
|
+
placement: A,
|
|
1565
|
+
trigger: E
|
|
1572
1566
|
});
|
|
1573
|
-
return
|
|
1567
|
+
return z.push(/* @__PURE__ */ l.createElement(Qe, Object.assign({
|
|
1574
1568
|
key: "avatar-popover-key",
|
|
1575
1569
|
destroyTooltipOnHide: !0
|
|
1576
1570
|
}, L), /* @__PURE__ */ l.createElement(Ye, {
|
|
1577
|
-
style:
|
|
1578
|
-
}, `+${
|
|
1571
|
+
style: N
|
|
1572
|
+
}, `+${I - P}`))), M(/* @__PURE__ */ l.createElement(dt, {
|
|
1579
1573
|
shape: p,
|
|
1580
|
-
size:
|
|
1574
|
+
size: v
|
|
1581
1575
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
1582
|
-
className:
|
|
1576
|
+
className: w,
|
|
1583
1577
|
style: d
|
|
1584
|
-
},
|
|
1578
|
+
}, z)));
|
|
1585
1579
|
}
|
|
1586
|
-
return
|
|
1580
|
+
return M(/* @__PURE__ */ l.createElement(dt, {
|
|
1587
1581
|
shape: p,
|
|
1588
|
-
size:
|
|
1582
|
+
size: v
|
|
1589
1583
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
1590
|
-
className:
|
|
1584
|
+
className: w,
|
|
1591
1585
|
style: d
|
|
1592
|
-
},
|
|
1586
|
+
}, x)));
|
|
1593
1587
|
}, _t = Ye;
|
|
1594
|
-
_t.Group =
|
|
1595
|
-
var
|
|
1596
|
-
return /* @__PURE__ */ l.createElement(Ve,
|
|
1588
|
+
_t.Group = En;
|
|
1589
|
+
var Pn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, Bn = function(t, o) {
|
|
1590
|
+
return /* @__PURE__ */ l.createElement(Ve, ze({}, t, {
|
|
1597
1591
|
ref: o,
|
|
1598
|
-
icon:
|
|
1592
|
+
icon: Pn
|
|
1599
1593
|
}));
|
|
1600
|
-
},
|
|
1601
|
-
process.env.NODE_ENV !== "production" && (
|
|
1602
|
-
const
|
|
1603
|
-
var
|
|
1604
|
-
return /* @__PURE__ */ l.createElement(Ve,
|
|
1594
|
+
}, Ne = /* @__PURE__ */ l.forwardRef(Bn);
|
|
1595
|
+
process.env.NODE_ENV !== "production" && (Ne.displayName = "LeftOutlined");
|
|
1596
|
+
const zn = (e) => typeof e != "object" && typeof e != "function" || e === null;
|
|
1597
|
+
var jn = { 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" }, Tn = function(t, o) {
|
|
1598
|
+
return /* @__PURE__ */ l.createElement(Ve, ze({}, t, {
|
|
1605
1599
|
ref: o,
|
|
1606
|
-
icon:
|
|
1600
|
+
icon: jn
|
|
1607
1601
|
}));
|
|
1608
|
-
}, Rt = /* @__PURE__ */ l.forwardRef(
|
|
1602
|
+
}, Rt = /* @__PURE__ */ l.forwardRef(Tn);
|
|
1609
1603
|
process.env.NODE_ENV !== "production" && (Rt.displayName = "BarsOutlined");
|
|
1610
|
-
const
|
|
1604
|
+
const _n = /* @__PURE__ */ l.createContext({
|
|
1611
1605
|
siderHook: {
|
|
1612
1606
|
addSider: () => null,
|
|
1613
1607
|
removeSider: () => null
|
|
1614
1608
|
}
|
|
1615
|
-
}),
|
|
1609
|
+
}), Rn = (e) => {
|
|
1616
1610
|
const {
|
|
1617
1611
|
antCls: t,
|
|
1618
1612
|
// .ant
|
|
@@ -1659,7 +1653,7 @@ const Rn = /* @__PURE__ */ l.createContext({
|
|
|
1659
1653
|
height: a,
|
|
1660
1654
|
padding: i,
|
|
1661
1655
|
color: s,
|
|
1662
|
-
lineHeight:
|
|
1656
|
+
lineHeight: O(a),
|
|
1663
1657
|
background: f,
|
|
1664
1658
|
// Other components/menu/style/index.less line:686
|
|
1665
1659
|
// Integration with header element so menu items have the same height
|
|
@@ -1716,10 +1710,10 @@ const Rn = /* @__PURE__ */ l.createContext({
|
|
|
1716
1710
|
lightTriggerColor: r
|
|
1717
1711
|
};
|
|
1718
1712
|
}, Dt = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
|
|
1719
|
-
|
|
1713
|
+
de("Layout", (e) => [Rn(e)], Mt, {
|
|
1720
1714
|
deprecatedTokens: Dt
|
|
1721
1715
|
});
|
|
1722
|
-
const
|
|
1716
|
+
const Mn = (e) => {
|
|
1723
1717
|
const {
|
|
1724
1718
|
componentCls: t,
|
|
1725
1719
|
siderBg: o,
|
|
@@ -1733,9 +1727,9 @@ const Dn = (e) => {
|
|
|
1733
1727
|
zeroTriggerWidth: d,
|
|
1734
1728
|
zeroTriggerHeight: f,
|
|
1735
1729
|
borderRadiusLG: m,
|
|
1736
|
-
lightSiderBg:
|
|
1730
|
+
lightSiderBg: v,
|
|
1737
1731
|
lightTriggerColor: p,
|
|
1738
|
-
lightTriggerBg:
|
|
1732
|
+
lightTriggerBg: g,
|
|
1739
1733
|
bodyBg: h
|
|
1740
1734
|
} = e;
|
|
1741
1735
|
return {
|
|
@@ -1771,7 +1765,7 @@ const Dn = (e) => {
|
|
|
1771
1765
|
zIndex: 1,
|
|
1772
1766
|
height: i,
|
|
1773
1767
|
color: s,
|
|
1774
|
-
lineHeight:
|
|
1768
|
+
lineHeight: O(i),
|
|
1775
1769
|
textAlign: "center",
|
|
1776
1770
|
background: c,
|
|
1777
1771
|
cursor: "pointer",
|
|
@@ -1790,7 +1784,7 @@ const Dn = (e) => {
|
|
|
1790
1784
|
alignItems: "center",
|
|
1791
1785
|
justifyContent: "center",
|
|
1792
1786
|
background: o,
|
|
1793
|
-
borderRadius: `0 ${
|
|
1787
|
+
borderRadius: `0 ${O(m)} ${O(m)} 0`,
|
|
1794
1788
|
cursor: "pointer",
|
|
1795
1789
|
transition: `background ${r} ease`,
|
|
1796
1790
|
"&::after": {
|
|
@@ -1805,19 +1799,19 @@ const Dn = (e) => {
|
|
|
1805
1799
|
},
|
|
1806
1800
|
"&-right": {
|
|
1807
1801
|
insetInlineStart: e.calc(d).mul(-1).equal(),
|
|
1808
|
-
borderRadius: `${
|
|
1802
|
+
borderRadius: `${O(m)} 0 0 ${O(m)}`
|
|
1809
1803
|
}
|
|
1810
1804
|
},
|
|
1811
1805
|
// Light
|
|
1812
1806
|
"&-light": {
|
|
1813
|
-
background:
|
|
1807
|
+
background: v,
|
|
1814
1808
|
[`${t}-trigger`]: {
|
|
1815
1809
|
color: p,
|
|
1816
|
-
background:
|
|
1810
|
+
background: g
|
|
1817
1811
|
},
|
|
1818
1812
|
[`${t}-zero-width-trigger`]: {
|
|
1819
1813
|
color: p,
|
|
1820
|
-
background:
|
|
1814
|
+
background: g,
|
|
1821
1815
|
border: `1px solid ${h}`,
|
|
1822
1816
|
// Safe to modify to any other color
|
|
1823
1817
|
borderInlineStart: 0
|
|
@@ -1825,10 +1819,10 @@ const Dn = (e) => {
|
|
|
1825
1819
|
}
|
|
1826
1820
|
}
|
|
1827
1821
|
};
|
|
1828
|
-
},
|
|
1822
|
+
}, Dn = de(["Layout", "Sider"], (e) => [Mn(e)], Mt, {
|
|
1829
1823
|
deprecatedTokens: Dt
|
|
1830
1824
|
});
|
|
1831
|
-
var
|
|
1825
|
+
var Hn = function(e, t) {
|
|
1832
1826
|
var o = {};
|
|
1833
1827
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1834
1828
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
@@ -1842,13 +1836,13 @@ const ut = {
|
|
|
1842
1836
|
lg: "991.98px",
|
|
1843
1837
|
xl: "1199.98px",
|
|
1844
1838
|
xxl: "1599.98px"
|
|
1845
|
-
},
|
|
1839
|
+
}, An = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), Je = /* @__PURE__ */ l.createContext({}), Ln = /* @__PURE__ */ (() => {
|
|
1846
1840
|
let e = 0;
|
|
1847
1841
|
return function() {
|
|
1848
1842
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
1849
1843
|
return e += 1, `${t}${e}`;
|
|
1850
1844
|
};
|
|
1851
|
-
})(),
|
|
1845
|
+
})(), kn = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
1852
1846
|
const {
|
|
1853
1847
|
prefixCls: o,
|
|
1854
1848
|
className: n,
|
|
@@ -1861,66 +1855,66 @@ const ut = {
|
|
|
1861
1855
|
reverseArrow: d = !1,
|
|
1862
1856
|
width: f = 200,
|
|
1863
1857
|
collapsedWidth: m = 80,
|
|
1864
|
-
zeroWidthTriggerStyle:
|
|
1858
|
+
zeroWidthTriggerStyle: v,
|
|
1865
1859
|
breakpoint: p,
|
|
1866
|
-
onCollapse:
|
|
1860
|
+
onCollapse: g,
|
|
1867
1861
|
onBreakpoint: h
|
|
1868
|
-
} = e, C =
|
|
1862
|
+
} = e, C = Hn(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
|
|
1869
1863
|
siderHook: b
|
|
1870
|
-
} = tt(
|
|
1864
|
+
} = tt(_n), [S, $] = ot("collapsed" in e ? e.collapsed : i), [B, M] = ot(!1);
|
|
1871
1865
|
He(() => {
|
|
1872
1866
|
"collapsed" in e && $(e.collapsed);
|
|
1873
1867
|
}, [e.collapsed]);
|
|
1874
|
-
const R = (
|
|
1875
|
-
"collapsed" in e || $(
|
|
1868
|
+
const R = (k, U) => {
|
|
1869
|
+
"collapsed" in e || $(k), g == null || g(k, U);
|
|
1876
1870
|
}, {
|
|
1877
|
-
getPrefixCls:
|
|
1878
|
-
direction:
|
|
1879
|
-
} = tt(
|
|
1880
|
-
y.current = (
|
|
1881
|
-
|
|
1871
|
+
getPrefixCls: T,
|
|
1872
|
+
direction: w
|
|
1873
|
+
} = tt(ie), x = T("layout-sider", o), [P, I, z] = Dn(x), y = Be(null);
|
|
1874
|
+
y.current = (k) => {
|
|
1875
|
+
M(k.matches), h == null || h(k.matches), S !== k.matches && R(k.matches, "responsive");
|
|
1882
1876
|
}, He(() => {
|
|
1883
|
-
function
|
|
1884
|
-
return y.current(
|
|
1877
|
+
function k(Q) {
|
|
1878
|
+
return y.current(Q);
|
|
1885
1879
|
}
|
|
1886
|
-
let
|
|
1880
|
+
let U;
|
|
1887
1881
|
if (typeof window < "u") {
|
|
1888
1882
|
const {
|
|
1889
|
-
matchMedia:
|
|
1883
|
+
matchMedia: Q
|
|
1890
1884
|
} = window;
|
|
1891
|
-
if (
|
|
1892
|
-
|
|
1885
|
+
if (Q && p && p in ut) {
|
|
1886
|
+
U = Q(`screen and (max-width: ${ut[p]})`);
|
|
1893
1887
|
try {
|
|
1894
|
-
|
|
1888
|
+
U.addEventListener("change", k);
|
|
1895
1889
|
} catch {
|
|
1896
|
-
|
|
1890
|
+
U.addListener(k);
|
|
1897
1891
|
}
|
|
1898
|
-
|
|
1892
|
+
k(U);
|
|
1899
1893
|
}
|
|
1900
1894
|
}
|
|
1901
1895
|
return () => {
|
|
1902
1896
|
try {
|
|
1903
|
-
|
|
1897
|
+
U == null || U.removeEventListener("change", k);
|
|
1904
1898
|
} catch {
|
|
1905
|
-
|
|
1899
|
+
U == null || U.removeListener(k);
|
|
1906
1900
|
}
|
|
1907
1901
|
};
|
|
1908
1902
|
}, [p]), He(() => {
|
|
1909
|
-
const
|
|
1910
|
-
return b.addSider(
|
|
1903
|
+
const k = Ln("ant-sider-");
|
|
1904
|
+
return b.addSider(k), () => b.removeSider(k);
|
|
1911
1905
|
}, []);
|
|
1912
|
-
const
|
|
1906
|
+
const N = () => {
|
|
1913
1907
|
R(!S, "clickTrigger");
|
|
1914
|
-
},
|
|
1915
|
-
onClick:
|
|
1916
|
-
className: _(`${
|
|
1917
|
-
style:
|
|
1918
|
-
}, r || /* @__PURE__ */ l.createElement(Rt, null)) : null,
|
|
1919
|
-
expanded:
|
|
1920
|
-
collapsed:
|
|
1908
|
+
}, E = he(C, ["collapsed"]), A = S ? m : f, L = An(A) ? `${A}px` : String(A), F = parseFloat(String(m || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
|
|
1909
|
+
onClick: N,
|
|
1910
|
+
className: _(`${x}-zero-width-trigger`, `${x}-zero-width-trigger-${d ? "right" : "left"}`),
|
|
1911
|
+
style: v
|
|
1912
|
+
}, r || /* @__PURE__ */ l.createElement(Rt, null)) : null, j = w === "rtl" == !d, W = {
|
|
1913
|
+
expanded: j ? /* @__PURE__ */ l.createElement(Oe, null) : /* @__PURE__ */ l.createElement(Ne, null),
|
|
1914
|
+
collapsed: j ? /* @__PURE__ */ l.createElement(Ne, null) : /* @__PURE__ */ l.createElement(Oe, null)
|
|
1921
1915
|
}[S ? "collapsed" : "expanded"], q = r !== null ? F || /* @__PURE__ */ l.createElement("div", {
|
|
1922
|
-
className: `${
|
|
1923
|
-
onClick:
|
|
1916
|
+
className: `${x}-trigger`,
|
|
1917
|
+
onClick: N,
|
|
1924
1918
|
style: {
|
|
1925
1919
|
width: L
|
|
1926
1920
|
}
|
|
@@ -1929,32 +1923,32 @@ const ut = {
|
|
|
1929
1923
|
maxWidth: L,
|
|
1930
1924
|
minWidth: L,
|
|
1931
1925
|
width: L
|
|
1932
|
-
}), Z = _(
|
|
1933
|
-
[`${
|
|
1934
|
-
[`${
|
|
1935
|
-
[`${
|
|
1936
|
-
[`${
|
|
1937
|
-
}, n,
|
|
1926
|
+
}), Z = _(x, `${x}-${s}`, {
|
|
1927
|
+
[`${x}-collapsed`]: !!S,
|
|
1928
|
+
[`${x}-has-trigger`]: u && r !== null && !F,
|
|
1929
|
+
[`${x}-below`]: !!B,
|
|
1930
|
+
[`${x}-zero-width`]: parseFloat(L) === 0
|
|
1931
|
+
}, n, I, z), ee = l.useMemo(() => ({
|
|
1938
1932
|
siderCollapsed: S
|
|
1939
1933
|
}), [S]);
|
|
1940
|
-
return
|
|
1941
|
-
value:
|
|
1934
|
+
return P(/* @__PURE__ */ l.createElement(Je.Provider, {
|
|
1935
|
+
value: ee
|
|
1942
1936
|
}, /* @__PURE__ */ l.createElement("aside", Object.assign({
|
|
1943
1937
|
className: Z
|
|
1944
|
-
},
|
|
1938
|
+
}, E, {
|
|
1945
1939
|
style: G,
|
|
1946
1940
|
ref: t
|
|
1947
1941
|
}), /* @__PURE__ */ l.createElement("div", {
|
|
1948
|
-
className: `${
|
|
1949
|
-
}, a), u ||
|
|
1942
|
+
className: `${x}-children`
|
|
1943
|
+
}, a), u || B && F ? q : null)));
|
|
1950
1944
|
});
|
|
1951
|
-
process.env.NODE_ENV !== "production" && (
|
|
1952
|
-
const
|
|
1945
|
+
process.env.NODE_ENV !== "production" && (kn.displayName = "Sider");
|
|
1946
|
+
const Ee = /* @__PURE__ */ to({
|
|
1953
1947
|
prefixCls: "",
|
|
1954
1948
|
firstLevel: !0,
|
|
1955
1949
|
inlineCollapsed: !1
|
|
1956
1950
|
});
|
|
1957
|
-
var
|
|
1951
|
+
var Vn = function(e, t) {
|
|
1958
1952
|
var o = {};
|
|
1959
1953
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1960
1954
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
@@ -1966,9 +1960,9 @@ const Ht = (e) => {
|
|
|
1966
1960
|
prefixCls: t,
|
|
1967
1961
|
className: o,
|
|
1968
1962
|
dashed: n
|
|
1969
|
-
} = e, r =
|
|
1963
|
+
} = e, r = Vn(e, ["prefixCls", "className", "dashed"]), {
|
|
1970
1964
|
getPrefixCls: a
|
|
1971
|
-
} = l.useContext(
|
|
1965
|
+
} = l.useContext(ie), i = a("menu", t), s = _({
|
|
1972
1966
|
[`${i}-item-divider-dashed`]: !!n
|
|
1973
1967
|
}, o);
|
|
1974
1968
|
return /* @__PURE__ */ l.createElement(yo, Object.assign({
|
|
@@ -1989,52 +1983,52 @@ const Ht = (e) => {
|
|
|
1989
1983
|
direction: d,
|
|
1990
1984
|
disableMenuItemTitleTooltip: f,
|
|
1991
1985
|
inlineCollapsed: m
|
|
1992
|
-
} = l.useContext(
|
|
1993
|
-
const $ = n == null ? void 0 : n[0],
|
|
1986
|
+
} = l.useContext(Ee), v = (S) => {
|
|
1987
|
+
const $ = n == null ? void 0 : n[0], B = /* @__PURE__ */ l.createElement("span", {
|
|
1994
1988
|
className: _(`${c}-title-content`, {
|
|
1995
1989
|
[`${c}-title-content-with-extra`]: !!s || s === 0
|
|
1996
1990
|
})
|
|
1997
1991
|
}, n);
|
|
1998
1992
|
return (!r || /* @__PURE__ */ l.isValidElement(n) && n.type === "span") && n && S && u && typeof $ == "string" ? /* @__PURE__ */ l.createElement("div", {
|
|
1999
1993
|
className: `${c}-inline-collapsed-noicon`
|
|
2000
|
-
}, $.charAt(0)) :
|
|
1994
|
+
}, $.charAt(0)) : B;
|
|
2001
1995
|
}, {
|
|
2002
1996
|
siderCollapsed: p
|
|
2003
1997
|
} = l.useContext(Je);
|
|
2004
|
-
let
|
|
2005
|
-
typeof a > "u" ?
|
|
1998
|
+
let g = a;
|
|
1999
|
+
typeof a > "u" ? g = u ? n : "" : a === !1 && (g = "");
|
|
2006
2000
|
const h = {
|
|
2007
|
-
title:
|
|
2001
|
+
title: g
|
|
2008
2002
|
};
|
|
2009
2003
|
!p && !m && (h.title = null, h.open = !1);
|
|
2010
2004
|
const C = qe(n).length;
|
|
2011
|
-
let b = /* @__PURE__ */ l.createElement(Co, Object.assign({},
|
|
2005
|
+
let b = /* @__PURE__ */ l.createElement(Co, Object.assign({}, he(e, ["title", "icon", "danger"]), {
|
|
2012
2006
|
className: _({
|
|
2013
2007
|
[`${c}-item-danger`]: i,
|
|
2014
2008
|
[`${c}-item-only-child`]: (r ? C + 1 : C) === 1
|
|
2015
2009
|
}, o),
|
|
2016
2010
|
title: typeof a == "string" ? a : void 0
|
|
2017
|
-
}),
|
|
2011
|
+
}), ue(r, {
|
|
2018
2012
|
className: _(/* @__PURE__ */ l.isValidElement(r) ? (t = r.props) === null || t === void 0 ? void 0 : t.className : "", `${c}-item-icon`)
|
|
2019
|
-
}),
|
|
2020
|
-
return f || (b = /* @__PURE__ */ l.createElement(
|
|
2013
|
+
}), v(m));
|
|
2014
|
+
return f || (b = /* @__PURE__ */ l.createElement(Re, Object.assign({}, h, {
|
|
2021
2015
|
placement: d === "rtl" ? "left" : "right",
|
|
2022
2016
|
classNames: {
|
|
2023
2017
|
root: `${c}-inline-collapsed-tooltip`
|
|
2024
2018
|
}
|
|
2025
2019
|
}), b)), b;
|
|
2026
2020
|
};
|
|
2027
|
-
var
|
|
2021
|
+
var Wn = function(e, t) {
|
|
2028
2022
|
var o = {};
|
|
2029
2023
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
2030
2024
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
2031
2025
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
2032
2026
|
return o;
|
|
2033
2027
|
};
|
|
2034
|
-
const
|
|
2028
|
+
const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
2035
2029
|
const {
|
|
2036
2030
|
children: o
|
|
2037
|
-
} = e, n =
|
|
2031
|
+
} = e, n = Wn(e, ["children"]), r = l.useContext(Pe), a = l.useMemo(() => Object.assign(Object.assign({}, r), n), [
|
|
2038
2032
|
r,
|
|
2039
2033
|
n.prefixCls,
|
|
2040
2034
|
// restProps.expandIcon, Not mark as deps since this is a ReactNode
|
|
@@ -2043,14 +2037,14 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2043
2037
|
n.rootClassName
|
|
2044
2038
|
// restProps.validator, Not mark as deps since this is a function
|
|
2045
2039
|
]), i = uo(o), s = mo(t, i ? po(o) : null);
|
|
2046
|
-
return /* @__PURE__ */ l.createElement(
|
|
2040
|
+
return /* @__PURE__ */ l.createElement(Pe.Provider, {
|
|
2047
2041
|
value: a
|
|
2048
2042
|
}, /* @__PURE__ */ l.createElement(St, {
|
|
2049
2043
|
space: !0
|
|
2050
2044
|
}, i ? /* @__PURE__ */ l.cloneElement(o, {
|
|
2051
2045
|
ref: s
|
|
2052
2046
|
}) : o));
|
|
2053
|
-
}),
|
|
2047
|
+
}), Fn = (e) => {
|
|
2054
2048
|
const {
|
|
2055
2049
|
componentCls: t,
|
|
2056
2050
|
motionDurationSlow: o,
|
|
@@ -2064,7 +2058,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2064
2058
|
[`${t}-horizontal`]: {
|
|
2065
2059
|
lineHeight: n,
|
|
2066
2060
|
border: 0,
|
|
2067
|
-
borderBottom: `${
|
|
2061
|
+
borderBottom: `${O(a)} ${i} ${r}`,
|
|
2068
2062
|
boxShadow: "none",
|
|
2069
2063
|
"&::after": {
|
|
2070
2064
|
display: "block",
|
|
@@ -2093,7 +2087,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2093
2087
|
}
|
|
2094
2088
|
}
|
|
2095
2089
|
};
|
|
2096
|
-
},
|
|
2090
|
+
}, qn = (e) => {
|
|
2097
2091
|
let {
|
|
2098
2092
|
componentCls: t,
|
|
2099
2093
|
menuArrowOffset: o,
|
|
@@ -2111,10 +2105,10 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2111
2105
|
${t}-submenu-rtl ${t}-vertical`]: {
|
|
2112
2106
|
[`${t}-submenu-arrow`]: {
|
|
2113
2107
|
"&::before": {
|
|
2114
|
-
transform: `rotate(-45deg) translateY(${
|
|
2108
|
+
transform: `rotate(-45deg) translateY(${O(n(o).mul(-1).equal())})`
|
|
2115
2109
|
},
|
|
2116
2110
|
"&::after": {
|
|
2117
|
-
transform: `rotate(45deg) translateY(${
|
|
2111
|
+
transform: `rotate(45deg) translateY(${O(o)})`
|
|
2118
2112
|
}
|
|
2119
2113
|
}
|
|
2120
2114
|
}
|
|
@@ -2132,31 +2126,31 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2132
2126
|
activeBarHeight: d,
|
|
2133
2127
|
activeBarWidth: f,
|
|
2134
2128
|
activeBarBorderWidth: m,
|
|
2135
|
-
motionDurationSlow:
|
|
2129
|
+
motionDurationSlow: v,
|
|
2136
2130
|
motionEaseInOut: p,
|
|
2137
|
-
motionEaseOut:
|
|
2131
|
+
motionEaseOut: g,
|
|
2138
2132
|
itemPaddingInline: h,
|
|
2139
2133
|
motionDurationMid: C,
|
|
2140
2134
|
itemHoverColor: b,
|
|
2141
2135
|
lineType: S,
|
|
2142
2136
|
colorSplit: $,
|
|
2143
2137
|
// Disabled
|
|
2144
|
-
itemDisabledColor:
|
|
2138
|
+
itemDisabledColor: B,
|
|
2145
2139
|
// Danger
|
|
2146
|
-
dangerItemColor:
|
|
2140
|
+
dangerItemColor: M,
|
|
2147
2141
|
dangerItemHoverColor: R,
|
|
2148
|
-
dangerItemSelectedColor:
|
|
2149
|
-
dangerItemActiveBg:
|
|
2150
|
-
dangerItemSelectedBg:
|
|
2142
|
+
dangerItemSelectedColor: T,
|
|
2143
|
+
dangerItemActiveBg: w,
|
|
2144
|
+
dangerItemSelectedBg: x,
|
|
2151
2145
|
// Bg
|
|
2152
|
-
popupBg:
|
|
2153
|
-
itemHoverBg:
|
|
2154
|
-
itemActiveBg:
|
|
2146
|
+
popupBg: P,
|
|
2147
|
+
itemHoverBg: I,
|
|
2148
|
+
itemActiveBg: z,
|
|
2155
2149
|
menuSubMenuBg: y,
|
|
2156
2150
|
// Horizontal
|
|
2157
|
-
horizontalItemSelectedColor:
|
|
2158
|
-
horizontalItemSelectedBg:
|
|
2159
|
-
horizontalItemBorderRadius:
|
|
2151
|
+
horizontalItemSelectedColor: N,
|
|
2152
|
+
horizontalItemSelectedBg: E,
|
|
2153
|
+
horizontalItemBorderRadius: A,
|
|
2160
2154
|
horizontalItemHoverBg: L
|
|
2161
2155
|
} = e;
|
|
2162
2156
|
return {
|
|
@@ -2179,7 +2173,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2179
2173
|
},
|
|
2180
2174
|
// Disabled
|
|
2181
2175
|
[`${o}-item-disabled, ${o}-submenu-disabled`]: {
|
|
2182
|
-
color: `${
|
|
2176
|
+
color: `${B} !important`
|
|
2183
2177
|
},
|
|
2184
2178
|
// Hover
|
|
2185
2179
|
[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]: {
|
|
@@ -2190,31 +2184,31 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2190
2184
|
[`&:not(${o}-horizontal)`]: {
|
|
2191
2185
|
[`${o}-item:not(${o}-item-selected)`]: {
|
|
2192
2186
|
"&:hover": {
|
|
2193
|
-
backgroundColor:
|
|
2187
|
+
backgroundColor: I
|
|
2194
2188
|
},
|
|
2195
2189
|
"&:active": {
|
|
2196
|
-
backgroundColor:
|
|
2190
|
+
backgroundColor: z
|
|
2197
2191
|
}
|
|
2198
2192
|
},
|
|
2199
2193
|
[`${o}-submenu-title`]: {
|
|
2200
2194
|
"&:hover": {
|
|
2201
|
-
backgroundColor:
|
|
2195
|
+
backgroundColor: I
|
|
2202
2196
|
},
|
|
2203
2197
|
"&:active": {
|
|
2204
|
-
backgroundColor:
|
|
2198
|
+
backgroundColor: z
|
|
2205
2199
|
}
|
|
2206
2200
|
}
|
|
2207
2201
|
},
|
|
2208
2202
|
// Danger - only Item has
|
|
2209
2203
|
[`${o}-item-danger`]: {
|
|
2210
|
-
color:
|
|
2204
|
+
color: M,
|
|
2211
2205
|
[`&${o}-item:hover`]: {
|
|
2212
2206
|
[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]: {
|
|
2213
2207
|
color: R
|
|
2214
2208
|
}
|
|
2215
2209
|
},
|
|
2216
2210
|
[`&${o}-item:active`]: {
|
|
2217
|
-
background:
|
|
2211
|
+
background: w
|
|
2218
2212
|
}
|
|
2219
2213
|
},
|
|
2220
2214
|
[`${o}-item a`]: {
|
|
@@ -2226,7 +2220,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2226
2220
|
color: r,
|
|
2227
2221
|
// Danger
|
|
2228
2222
|
[`&${o}-item-danger`]: {
|
|
2229
|
-
color:
|
|
2223
|
+
color: T
|
|
2230
2224
|
},
|
|
2231
2225
|
"a, a:hover": {
|
|
2232
2226
|
color: "inherit"
|
|
@@ -2236,7 +2230,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2236
2230
|
backgroundColor: u,
|
|
2237
2231
|
// Danger
|
|
2238
2232
|
[`&${o}-item-danger`]: {
|
|
2239
|
-
backgroundColor:
|
|
2233
|
+
backgroundColor: x
|
|
2240
2234
|
}
|
|
2241
2235
|
},
|
|
2242
2236
|
[`&${o}-submenu > ${o}`]: {
|
|
@@ -2245,10 +2239,10 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2245
2239
|
// ===== 设置浮层的颜色 =======
|
|
2246
2240
|
// !dark 模式会被popupBg 会被rest 为 darkPopupBg
|
|
2247
2241
|
[`&${o}-popup > ${o}`]: {
|
|
2248
|
-
backgroundColor:
|
|
2242
|
+
backgroundColor: P
|
|
2249
2243
|
},
|
|
2250
2244
|
[`&${o}-submenu-popup > ${o}`]: {
|
|
2251
|
-
backgroundColor:
|
|
2245
|
+
backgroundColor: P
|
|
2252
2246
|
},
|
|
2253
2247
|
// ===== 设置浮层的颜色 end =======
|
|
2254
2248
|
// ====================== Horizontal ======================
|
|
@@ -2259,31 +2253,31 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2259
2253
|
top: m,
|
|
2260
2254
|
marginTop: e.calc(m).mul(-1).equal(),
|
|
2261
2255
|
marginBottom: 0,
|
|
2262
|
-
borderRadius:
|
|
2256
|
+
borderRadius: A,
|
|
2263
2257
|
"&::after": {
|
|
2264
2258
|
position: "absolute",
|
|
2265
2259
|
insetInline: h,
|
|
2266
2260
|
bottom: 0,
|
|
2267
|
-
borderBottom: `${
|
|
2268
|
-
transition: `border-color ${
|
|
2261
|
+
borderBottom: `${O(d)} solid transparent`,
|
|
2262
|
+
transition: `border-color ${v} ${p}`,
|
|
2269
2263
|
content: '""'
|
|
2270
2264
|
},
|
|
2271
2265
|
"&:hover, &-active, &-open": {
|
|
2272
2266
|
background: L,
|
|
2273
2267
|
"&::after": {
|
|
2274
2268
|
borderBottomWidth: d,
|
|
2275
|
-
borderBottomColor:
|
|
2269
|
+
borderBottomColor: N
|
|
2276
2270
|
}
|
|
2277
2271
|
},
|
|
2278
2272
|
"&-selected": {
|
|
2279
|
-
color:
|
|
2280
|
-
backgroundColor:
|
|
2273
|
+
color: N,
|
|
2274
|
+
backgroundColor: E,
|
|
2281
2275
|
"&:hover": {
|
|
2282
|
-
backgroundColor:
|
|
2276
|
+
backgroundColor: E
|
|
2283
2277
|
},
|
|
2284
2278
|
"&::after": {
|
|
2285
2279
|
borderBottomWidth: d,
|
|
2286
|
-
borderBottomColor:
|
|
2280
|
+
borderBottomColor: N
|
|
2287
2281
|
}
|
|
2288
2282
|
}
|
|
2289
2283
|
}
|
|
@@ -2292,7 +2286,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2292
2286
|
//
|
|
2293
2287
|
[`&${o}-root`]: {
|
|
2294
2288
|
[`&${o}-inline, &${o}-vertical`]: {
|
|
2295
|
-
borderInlineEnd: `${
|
|
2289
|
+
borderInlineEnd: `${O(m)} ${S} ${$}`
|
|
2296
2290
|
}
|
|
2297
2291
|
},
|
|
2298
2292
|
// ======================== Inline ========================
|
|
@@ -2307,16 +2301,16 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2307
2301
|
position: "absolute",
|
|
2308
2302
|
insetBlock: 0,
|
|
2309
2303
|
insetInlineEnd: 0,
|
|
2310
|
-
borderInlineEnd: `${
|
|
2304
|
+
borderInlineEnd: `${O(f)} solid ${r}`,
|
|
2311
2305
|
transform: "scaleY(0.0001)",
|
|
2312
2306
|
opacity: 0,
|
|
2313
|
-
transition: [`transform ${C} ${
|
|
2307
|
+
transition: [`transform ${C} ${g}`, `opacity ${C} ${g}`].join(","),
|
|
2314
2308
|
content: '""'
|
|
2315
2309
|
},
|
|
2316
2310
|
// Danger
|
|
2317
2311
|
[`&${o}-item-danger`]: {
|
|
2318
2312
|
"&::after": {
|
|
2319
|
-
borderInlineEndColor:
|
|
2313
|
+
borderInlineEndColor: T
|
|
2320
2314
|
}
|
|
2321
2315
|
}
|
|
2322
2316
|
},
|
|
@@ -2349,7 +2343,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2349
2343
|
},
|
|
2350
2344
|
[`${t}-item, ${t}-submenu-title`]: {
|
|
2351
2345
|
height: o,
|
|
2352
|
-
lineHeight:
|
|
2346
|
+
lineHeight: O(o),
|
|
2353
2347
|
paddingInline: u,
|
|
2354
2348
|
overflow: "hidden",
|
|
2355
2349
|
textOverflow: "ellipsis",
|
|
@@ -2360,14 +2354,14 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2360
2354
|
[`> ${t}-item,
|
|
2361
2355
|
> ${t}-submenu > ${t}-submenu-title`]: {
|
|
2362
2356
|
height: o,
|
|
2363
|
-
lineHeight:
|
|
2357
|
+
lineHeight: O(o)
|
|
2364
2358
|
},
|
|
2365
2359
|
[`${t}-item-group-list ${t}-submenu-title,
|
|
2366
2360
|
${t}-submenu-title`]: {
|
|
2367
2361
|
paddingInlineEnd: d
|
|
2368
2362
|
}
|
|
2369
2363
|
};
|
|
2370
|
-
},
|
|
2364
|
+
}, Gn = (e) => {
|
|
2371
2365
|
const {
|
|
2372
2366
|
componentCls: t,
|
|
2373
2367
|
iconCls: o,
|
|
@@ -2381,13 +2375,13 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2381
2375
|
fontSizeLG: d,
|
|
2382
2376
|
motionDurationFast: f,
|
|
2383
2377
|
motionDurationSlow: m,
|
|
2384
|
-
paddingXS:
|
|
2378
|
+
paddingXS: v,
|
|
2385
2379
|
boxShadowSecondary: p,
|
|
2386
|
-
collapsedWidth:
|
|
2380
|
+
collapsedWidth: g,
|
|
2387
2381
|
collapsedIconSize: h
|
|
2388
2382
|
} = e, C = {
|
|
2389
2383
|
height: n,
|
|
2390
|
-
lineHeight:
|
|
2384
|
+
lineHeight: O(n),
|
|
2391
2385
|
listStylePosition: "inside",
|
|
2392
2386
|
listStyleType: "disc"
|
|
2393
2387
|
};
|
|
@@ -2410,7 +2404,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2410
2404
|
{
|
|
2411
2405
|
[`${t}-submenu-popup ${t}-vertical${t}-sub`]: {
|
|
2412
2406
|
minWidth: a,
|
|
2413
|
-
maxHeight: `calc(100vh - ${
|
|
2407
|
+
maxHeight: `calc(100vh - ${O(e.calc(i).mul(2.5).equal())})`,
|
|
2414
2408
|
padding: "0",
|
|
2415
2409
|
overflow: "hidden",
|
|
2416
2410
|
borderInlineEnd: 0,
|
|
@@ -2461,7 +2455,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2461
2455
|
// Inline Collapse Only
|
|
2462
2456
|
{
|
|
2463
2457
|
[`${t}-inline-collapsed`]: {
|
|
2464
|
-
width:
|
|
2458
|
+
width: g,
|
|
2465
2459
|
[`&${t}-root`]: {
|
|
2466
2460
|
[`${t}-item, ${t}-submenu ${t}-submenu-title`]: {
|
|
2467
2461
|
[`> ${t}-inline-collapsed-noicon`]: {
|
|
@@ -2475,7 +2469,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2475
2469
|
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
2476
2470
|
> ${t}-submenu > ${t}-submenu-title`]: {
|
|
2477
2471
|
insetInlineStart: 0,
|
|
2478
|
-
paddingInline: `calc(50% - ${
|
|
2472
|
+
paddingInline: `calc(50% - ${O(e.calc(h).div(2).equal())} - ${O(u)})`,
|
|
2479
2473
|
textOverflow: "clip",
|
|
2480
2474
|
[`
|
|
2481
2475
|
${t}-submenu-arrow,
|
|
@@ -2486,7 +2480,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2486
2480
|
[`${t}-item-icon, ${o}`]: {
|
|
2487
2481
|
margin: 0,
|
|
2488
2482
|
fontSize: h,
|
|
2489
|
-
lineHeight:
|
|
2483
|
+
lineHeight: O(n),
|
|
2490
2484
|
"+ span": {
|
|
2491
2485
|
display: "inline-block",
|
|
2492
2486
|
opacity: 0
|
|
@@ -2506,7 +2500,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2506
2500
|
}
|
|
2507
2501
|
},
|
|
2508
2502
|
[`${t}-item-group-title`]: Object.assign(Object.assign({}, fo), {
|
|
2509
|
-
paddingInline:
|
|
2503
|
+
paddingInline: v
|
|
2510
2504
|
})
|
|
2511
2505
|
}
|
|
2512
2506
|
}
|
|
@@ -2598,15 +2592,15 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2598
2592
|
content: '""'
|
|
2599
2593
|
},
|
|
2600
2594
|
"&::before": {
|
|
2601
|
-
transform: `rotate(45deg) translateY(${
|
|
2595
|
+
transform: `rotate(45deg) translateY(${O(e.calc(i).mul(-1).equal())})`
|
|
2602
2596
|
},
|
|
2603
2597
|
"&::after": {
|
|
2604
|
-
transform: `rotate(-45deg) translateY(${
|
|
2598
|
+
transform: `rotate(-45deg) translateY(${O(i)})`
|
|
2605
2599
|
}
|
|
2606
2600
|
}
|
|
2607
2601
|
}
|
|
2608
2602
|
};
|
|
2609
|
-
},
|
|
2603
|
+
}, Yn = (e) => {
|
|
2610
2604
|
const {
|
|
2611
2605
|
antCls: t,
|
|
2612
2606
|
componentCls: o,
|
|
@@ -2620,9 +2614,9 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2620
2614
|
lineWidth: d,
|
|
2621
2615
|
zIndexPopup: f,
|
|
2622
2616
|
borderRadiusLG: m,
|
|
2623
|
-
subMenuItemBorderRadius:
|
|
2617
|
+
subMenuItemBorderRadius: v,
|
|
2624
2618
|
menuArrowSize: p,
|
|
2625
|
-
menuArrowOffset:
|
|
2619
|
+
menuArrowOffset: g,
|
|
2626
2620
|
lineType: h,
|
|
2627
2621
|
groupTitleLineHeight: C,
|
|
2628
2622
|
groupTitleFontSize: b
|
|
@@ -2643,7 +2637,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2643
2637
|
}
|
|
2644
2638
|
},
|
|
2645
2639
|
{
|
|
2646
|
-
[o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
2640
|
+
[o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ve(e)), rt()), {
|
|
2647
2641
|
marginBottom: 0,
|
|
2648
2642
|
paddingInlineStart: 0,
|
|
2649
2643
|
// Override default ul/ol
|
|
@@ -2669,7 +2663,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2669
2663
|
borderRadius: e.itemBorderRadius
|
|
2670
2664
|
},
|
|
2671
2665
|
[`${o}-item-group-title`]: {
|
|
2672
|
-
padding: `${
|
|
2666
|
+
padding: `${O(s)} ${O(c)}`,
|
|
2673
2667
|
fontSize: b,
|
|
2674
2668
|
lineHeight: C,
|
|
2675
2669
|
transition: `all ${r}`
|
|
@@ -2731,7 +2725,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2731
2725
|
margin: 0,
|
|
2732
2726
|
padding: 0,
|
|
2733
2727
|
[`${o}-item, ${o}-submenu-title`]: {
|
|
2734
|
-
paddingInline: `${
|
|
2728
|
+
paddingInline: `${O(e.calc(n).mul(2).equal())} ${O(c)}`
|
|
2735
2729
|
}
|
|
2736
2730
|
}
|
|
2737
2731
|
},
|
|
@@ -2760,7 +2754,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2760
2754
|
borderRadius: m
|
|
2761
2755
|
}, ft(e)), vt(e)), {
|
|
2762
2756
|
[`${o}-item, ${o}-submenu > ${o}-submenu-title`]: {
|
|
2763
|
-
borderRadius:
|
|
2757
|
+
borderRadius: v
|
|
2764
2758
|
},
|
|
2765
2759
|
[`${o}-submenu-title::after`]: {
|
|
2766
2760
|
transition: `transform ${r} ${i}`
|
|
@@ -2797,20 +2791,20 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2797
2791
|
&-inline ${o}-submenu-arrow`]: {
|
|
2798
2792
|
// ↓
|
|
2799
2793
|
"&::before": {
|
|
2800
|
-
transform: `rotate(-45deg) translateX(${
|
|
2794
|
+
transform: `rotate(-45deg) translateX(${O(g)})`
|
|
2801
2795
|
},
|
|
2802
2796
|
"&::after": {
|
|
2803
|
-
transform: `rotate(45deg) translateX(${
|
|
2797
|
+
transform: `rotate(45deg) translateX(${O(e.calc(g).mul(-1).equal())})`
|
|
2804
2798
|
}
|
|
2805
2799
|
},
|
|
2806
2800
|
[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]: {
|
|
2807
2801
|
// ↑
|
|
2808
|
-
transform: `translateY(${
|
|
2802
|
+
transform: `translateY(${O(e.calc(p).mul(0.2).mul(-1).equal())})`,
|
|
2809
2803
|
"&::after": {
|
|
2810
|
-
transform: `rotate(-45deg) translateX(${
|
|
2804
|
+
transform: `rotate(-45deg) translateX(${O(e.calc(g).mul(-1).equal())})`
|
|
2811
2805
|
},
|
|
2812
2806
|
"&::before": {
|
|
2813
|
-
transform: `rotate(45deg) translateX(${
|
|
2807
|
+
transform: `rotate(45deg) translateX(${O(g)})`
|
|
2814
2808
|
}
|
|
2815
2809
|
}
|
|
2816
2810
|
})
|
|
@@ -2824,7 +2818,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2824
2818
|
}
|
|
2825
2819
|
}
|
|
2826
2820
|
];
|
|
2827
|
-
},
|
|
2821
|
+
}, Un = (e) => {
|
|
2828
2822
|
var t, o, n;
|
|
2829
2823
|
const {
|
|
2830
2824
|
colorPrimary: r,
|
|
@@ -2836,21 +2830,21 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2836
2830
|
colorBgContainer: d,
|
|
2837
2831
|
colorFillAlter: f,
|
|
2838
2832
|
colorFillContent: m,
|
|
2839
|
-
lineWidth:
|
|
2833
|
+
lineWidth: v,
|
|
2840
2834
|
lineWidthBold: p,
|
|
2841
|
-
controlItemBgActive:
|
|
2835
|
+
controlItemBgActive: g,
|
|
2842
2836
|
colorBgTextHover: h,
|
|
2843
2837
|
controlHeightLG: C,
|
|
2844
2838
|
lineHeight: b,
|
|
2845
2839
|
colorBgElevated: S,
|
|
2846
2840
|
marginXXS: $,
|
|
2847
|
-
padding:
|
|
2848
|
-
fontSize:
|
|
2841
|
+
padding: B,
|
|
2842
|
+
fontSize: M,
|
|
2849
2843
|
controlHeightSM: R,
|
|
2850
|
-
fontSizeLG:
|
|
2851
|
-
colorTextLightSolid:
|
|
2852
|
-
colorErrorHover:
|
|
2853
|
-
} = e,
|
|
2844
|
+
fontSizeLG: T,
|
|
2845
|
+
colorTextLightSolid: w,
|
|
2846
|
+
colorErrorHover: x
|
|
2847
|
+
} = e, P = (t = e.activeBarWidth) !== null && t !== void 0 ? t : 0, I = (o = e.activeBarBorderWidth) !== null && o !== void 0 ? o : v, z = (n = e.itemMarginInline) !== null && n !== void 0 ? n : e.marginXXS, y = new it(w).setA(0.65).toRgbString();
|
|
2854
2848
|
return {
|
|
2855
2849
|
dropdownWidth: 160,
|
|
2856
2850
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
@@ -2876,19 +2870,19 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2876
2870
|
colorItemBgHover: h,
|
|
2877
2871
|
itemHoverBg: h,
|
|
2878
2872
|
colorItemBgActive: m,
|
|
2879
|
-
itemActiveBg:
|
|
2873
|
+
itemActiveBg: g,
|
|
2880
2874
|
colorSubItemBg: f,
|
|
2881
2875
|
subMenuItemBg: f,
|
|
2882
|
-
colorItemBgSelected:
|
|
2883
|
-
itemSelectedBg:
|
|
2876
|
+
colorItemBgSelected: g,
|
|
2877
|
+
itemSelectedBg: g,
|
|
2884
2878
|
colorItemBgSelectedHorizontal: "transparent",
|
|
2885
2879
|
horizontalItemSelectedBg: "transparent",
|
|
2886
2880
|
colorActiveBarWidth: 0,
|
|
2887
|
-
activeBarWidth:
|
|
2881
|
+
activeBarWidth: P,
|
|
2888
2882
|
colorActiveBarHeight: p,
|
|
2889
2883
|
activeBarHeight: p,
|
|
2890
|
-
colorActiveBarBorderSize:
|
|
2891
|
-
activeBarBorderWidth:
|
|
2884
|
+
colorActiveBarBorderSize: v,
|
|
2885
|
+
activeBarBorderWidth: I,
|
|
2892
2886
|
// Disabled
|
|
2893
2887
|
colorItemTextDisabled: i,
|
|
2894
2888
|
itemDisabledColor: i,
|
|
@@ -2903,7 +2897,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2903
2897
|
dangerItemActiveBg: s,
|
|
2904
2898
|
colorDangerItemBgSelected: s,
|
|
2905
2899
|
dangerItemSelectedBg: s,
|
|
2906
|
-
itemMarginInline:
|
|
2900
|
+
itemMarginInline: z,
|
|
2907
2901
|
horizontalItemBorderRadius: 0,
|
|
2908
2902
|
horizontalItemHoverBg: "transparent",
|
|
2909
2903
|
itemHeight: C,
|
|
@@ -2911,35 +2905,35 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2911
2905
|
collapsedWidth: C * 2,
|
|
2912
2906
|
popupBg: S,
|
|
2913
2907
|
itemMarginBlock: $,
|
|
2914
|
-
itemPaddingInline:
|
|
2908
|
+
itemPaddingInline: B,
|
|
2915
2909
|
horizontalLineHeight: `${C * 1.15}px`,
|
|
2916
|
-
iconSize:
|
|
2917
|
-
iconMarginInlineEnd: R -
|
|
2918
|
-
collapsedIconSize:
|
|
2919
|
-
groupTitleFontSize:
|
|
2910
|
+
iconSize: M,
|
|
2911
|
+
iconMarginInlineEnd: R - M,
|
|
2912
|
+
collapsedIconSize: T,
|
|
2913
|
+
groupTitleFontSize: M,
|
|
2920
2914
|
// Disabled
|
|
2921
|
-
darkItemDisabledColor: new it(
|
|
2915
|
+
darkItemDisabledColor: new it(w).setA(0.25).toRgbString(),
|
|
2922
2916
|
// Dark
|
|
2923
2917
|
darkItemColor: y,
|
|
2924
2918
|
darkDangerItemColor: a,
|
|
2925
2919
|
darkItemBg: "#001529",
|
|
2926
2920
|
darkPopupBg: "#001529",
|
|
2927
2921
|
darkSubMenuItemBg: "#000c17",
|
|
2928
|
-
darkItemSelectedColor:
|
|
2922
|
+
darkItemSelectedColor: w,
|
|
2929
2923
|
darkItemSelectedBg: r,
|
|
2930
2924
|
darkDangerItemSelectedBg: a,
|
|
2931
2925
|
darkItemHoverBg: "transparent",
|
|
2932
2926
|
darkGroupTitleColor: y,
|
|
2933
|
-
darkItemHoverColor:
|
|
2934
|
-
darkDangerItemHoverColor:
|
|
2935
|
-
darkDangerItemSelectedColor:
|
|
2927
|
+
darkItemHoverColor: w,
|
|
2928
|
+
darkDangerItemHoverColor: x,
|
|
2929
|
+
darkDangerItemSelectedColor: w,
|
|
2936
2930
|
darkDangerItemActiveBg: a,
|
|
2937
2931
|
// internal
|
|
2938
|
-
itemWidth:
|
|
2932
|
+
itemWidth: P ? `calc(100% + ${I}px)` : `calc(100% - ${z * 2}px)`
|
|
2939
2933
|
};
|
|
2940
|
-
},
|
|
2934
|
+
}, Kn = function(e) {
|
|
2941
2935
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
2942
|
-
return
|
|
2936
|
+
return de("Menu", (r) => {
|
|
2943
2937
|
const {
|
|
2944
2938
|
colorBgElevated: a,
|
|
2945
2939
|
controlHeightLG: i,
|
|
@@ -2949,25 +2943,25 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2949
2943
|
darkItemBg: d,
|
|
2950
2944
|
darkSubMenuItemBg: f,
|
|
2951
2945
|
darkItemSelectedColor: m,
|
|
2952
|
-
darkItemSelectedBg:
|
|
2946
|
+
darkItemSelectedBg: v,
|
|
2953
2947
|
darkDangerItemSelectedBg: p,
|
|
2954
|
-
darkItemHoverBg:
|
|
2948
|
+
darkItemHoverBg: g,
|
|
2955
2949
|
darkGroupTitleColor: h,
|
|
2956
2950
|
darkItemHoverColor: C,
|
|
2957
2951
|
darkItemDisabledColor: b,
|
|
2958
2952
|
darkDangerItemHoverColor: S,
|
|
2959
2953
|
darkDangerItemSelectedColor: $,
|
|
2960
|
-
darkDangerItemActiveBg:
|
|
2961
|
-
popupBg:
|
|
2954
|
+
darkDangerItemActiveBg: B,
|
|
2955
|
+
popupBg: M,
|
|
2962
2956
|
darkPopupBg: R
|
|
2963
|
-
} = r,
|
|
2964
|
-
menuArrowSize:
|
|
2957
|
+
} = r, T = r.calc(s).div(7).mul(5).equal(), w = ce(r, {
|
|
2958
|
+
menuArrowSize: T,
|
|
2965
2959
|
menuHorizontalHeight: r.calc(i).mul(1.15).equal(),
|
|
2966
|
-
menuArrowOffset: r.calc(
|
|
2960
|
+
menuArrowOffset: r.calc(T).mul(0.25).equal(),
|
|
2967
2961
|
menuSubMenuBg: a,
|
|
2968
2962
|
calc: r.calc,
|
|
2969
|
-
popupBg:
|
|
2970
|
-
}),
|
|
2963
|
+
popupBg: M
|
|
2964
|
+
}), x = ce(w, {
|
|
2971
2965
|
itemColor: c,
|
|
2972
2966
|
itemHoverColor: C,
|
|
2973
2967
|
groupTitleColor: h,
|
|
@@ -2977,44 +2971,44 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
2977
2971
|
popupBg: R,
|
|
2978
2972
|
subMenuItemBg: f,
|
|
2979
2973
|
itemActiveBg: "transparent",
|
|
2980
|
-
itemSelectedBg:
|
|
2974
|
+
itemSelectedBg: v,
|
|
2981
2975
|
activeBarHeight: 0,
|
|
2982
2976
|
activeBarBorderWidth: 0,
|
|
2983
|
-
itemHoverBg:
|
|
2977
|
+
itemHoverBg: g,
|
|
2984
2978
|
// Disabled
|
|
2985
2979
|
itemDisabledColor: b,
|
|
2986
2980
|
// Danger
|
|
2987
2981
|
dangerItemColor: u,
|
|
2988
2982
|
dangerItemHoverColor: S,
|
|
2989
2983
|
dangerItemSelectedColor: $,
|
|
2990
|
-
dangerItemActiveBg:
|
|
2984
|
+
dangerItemActiveBg: B,
|
|
2991
2985
|
dangerItemSelectedBg: p,
|
|
2992
2986
|
menuSubMenuBg: f,
|
|
2993
2987
|
// Horizontal
|
|
2994
2988
|
horizontalItemSelectedColor: m,
|
|
2995
|
-
horizontalItemSelectedBg:
|
|
2989
|
+
horizontalItemSelectedBg: v
|
|
2996
2990
|
});
|
|
2997
2991
|
return [
|
|
2998
2992
|
// Basic
|
|
2999
|
-
|
|
2993
|
+
Yn(w),
|
|
3000
2994
|
// Horizontal
|
|
3001
|
-
|
|
2995
|
+
Fn(w),
|
|
3002
2996
|
// Hard code for some light style
|
|
3003
2997
|
// Vertical
|
|
3004
|
-
|
|
2998
|
+
Gn(w),
|
|
3005
2999
|
// Hard code for some light style
|
|
3006
3000
|
// Theme
|
|
3007
|
-
pt(
|
|
3008
|
-
pt(
|
|
3001
|
+
pt(w, "light"),
|
|
3002
|
+
pt(x, "dark"),
|
|
3009
3003
|
// RTL
|
|
3010
|
-
|
|
3004
|
+
qn(w),
|
|
3011
3005
|
// Motion
|
|
3012
|
-
Ao(
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3006
|
+
Ao(w),
|
|
3007
|
+
Se(w, "slide-up"),
|
|
3008
|
+
Se(w, "slide-down"),
|
|
3009
|
+
Te(w, "zoom-big")
|
|
3016
3010
|
];
|
|
3017
|
-
},
|
|
3011
|
+
}, Un, {
|
|
3018
3012
|
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"]],
|
|
3019
3013
|
// Dropdown will handle menu style self. We do not need to handle this.
|
|
3020
3014
|
injectStyle: o,
|
|
@@ -3029,7 +3023,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
3029
3023
|
icon: n,
|
|
3030
3024
|
title: r,
|
|
3031
3025
|
theme: a
|
|
3032
|
-
} = e, i = l.useContext(
|
|
3026
|
+
} = e, i = l.useContext(Ee), {
|
|
3033
3027
|
prefixCls: s,
|
|
3034
3028
|
inlineCollapsed: c,
|
|
3035
3029
|
theme: u
|
|
@@ -3043,7 +3037,7 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
3043
3037
|
}, r);
|
|
3044
3038
|
else {
|
|
3045
3039
|
const p = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
|
|
3046
|
-
f = /* @__PURE__ */ l.createElement(l.Fragment, null,
|
|
3040
|
+
f = /* @__PURE__ */ l.createElement(l.Fragment, null, ue(n, {
|
|
3047
3041
|
className: _(/* @__PURE__ */ l.isValidElement(n) ? (t = n.props) === null || t === void 0 ? void 0 : t.className : "", `${s}-item-icon`)
|
|
3048
3042
|
}), p ? r : /* @__PURE__ */ l.createElement("span", {
|
|
3049
3043
|
className: `${s}-title-content`
|
|
@@ -3051,18 +3045,18 @@ const Ee = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forward
|
|
|
3051
3045
|
}
|
|
3052
3046
|
const m = l.useMemo(() => Object.assign(Object.assign({}, i), {
|
|
3053
3047
|
firstLevel: !1
|
|
3054
|
-
}), [i]), [
|
|
3055
|
-
return /* @__PURE__ */ l.createElement(
|
|
3048
|
+
}), [i]), [v] = Ge("Menu");
|
|
3049
|
+
return /* @__PURE__ */ l.createElement(Ee.Provider, {
|
|
3056
3050
|
value: m
|
|
3057
|
-
}, /* @__PURE__ */ l.createElement(xo, Object.assign({},
|
|
3051
|
+
}, /* @__PURE__ */ l.createElement(xo, Object.assign({}, he(e, ["icon"]), {
|
|
3058
3052
|
title: f,
|
|
3059
3053
|
popupClassName: _(s, o, `${s}-${a || u}`),
|
|
3060
3054
|
popupStyle: Object.assign({
|
|
3061
|
-
zIndex:
|
|
3055
|
+
zIndex: v
|
|
3062
3056
|
}, e.popupStyle)
|
|
3063
3057
|
})));
|
|
3064
3058
|
};
|
|
3065
|
-
var
|
|
3059
|
+
var Zn = function(e, t) {
|
|
3066
3060
|
var o = {};
|
|
3067
3061
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
3068
3062
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
@@ -3072,43 +3066,43 @@ var Qn = function(e, t) {
|
|
|
3072
3066
|
function Ae(e) {
|
|
3073
3067
|
return e === null || e === !1;
|
|
3074
3068
|
}
|
|
3075
|
-
const
|
|
3069
|
+
const Qn = {
|
|
3076
3070
|
item: At,
|
|
3077
3071
|
submenu: Lt,
|
|
3078
3072
|
divider: Ht
|
|
3079
|
-
},
|
|
3073
|
+
}, Jn = /* @__PURE__ */ ke((e, t) => {
|
|
3080
3074
|
var o;
|
|
3081
|
-
const n = l.useContext(
|
|
3075
|
+
const n = l.useContext(Pe), r = n || {}, {
|
|
3082
3076
|
getPrefixCls: a,
|
|
3083
3077
|
getPopupContainer: i,
|
|
3084
3078
|
direction: s,
|
|
3085
3079
|
menu: c
|
|
3086
|
-
} = l.useContext(
|
|
3080
|
+
} = l.useContext(ie), u = a(), {
|
|
3087
3081
|
prefixCls: d,
|
|
3088
3082
|
className: f,
|
|
3089
3083
|
style: m,
|
|
3090
|
-
theme:
|
|
3084
|
+
theme: v = "light",
|
|
3091
3085
|
expandIcon: p,
|
|
3092
|
-
_internalDisableMenuItemTitleTooltip:
|
|
3086
|
+
_internalDisableMenuItemTitleTooltip: g,
|
|
3093
3087
|
inlineCollapsed: h,
|
|
3094
3088
|
siderCollapsed: C,
|
|
3095
3089
|
rootClassName: b,
|
|
3096
3090
|
mode: S,
|
|
3097
3091
|
selectable: $,
|
|
3098
|
-
onClick:
|
|
3099
|
-
overflowedIndicatorPopupClassName:
|
|
3100
|
-
} = e, R =
|
|
3092
|
+
onClick: B,
|
|
3093
|
+
overflowedIndicatorPopupClassName: M
|
|
3094
|
+
} = e, R = Zn(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), T = he(R, ["collapsedWidth"]);
|
|
3101
3095
|
if (process.env.NODE_ENV !== "production") {
|
|
3102
|
-
const D =
|
|
3096
|
+
const D = be("Menu");
|
|
3103
3097
|
process.env.NODE_ENV !== "production" && D(!("inlineCollapsed" in e && S !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), D.deprecated("items" in e && !e.children, "children", "items");
|
|
3104
3098
|
}
|
|
3105
3099
|
(o = r.validator) === null || o === void 0 || o.call(r, {
|
|
3106
3100
|
mode: S
|
|
3107
3101
|
});
|
|
3108
|
-
const
|
|
3102
|
+
const w = wt(function() {
|
|
3109
3103
|
var D;
|
|
3110
|
-
|
|
3111
|
-
}),
|
|
3104
|
+
B == null || B.apply(void 0, arguments), (D = r.onClick) === null || D === void 0 || D.call(r);
|
|
3105
|
+
}), x = r.mode || S, P = $ ?? r.selectable, I = h ?? C, z = {
|
|
3112
3106
|
horizontal: {
|
|
3113
3107
|
motionName: `${u}-slide-up`
|
|
3114
3108
|
},
|
|
@@ -3116,7 +3110,7 @@ const Jn = {
|
|
|
3116
3110
|
other: {
|
|
3117
3111
|
motionName: `${u}-zoom-big`
|
|
3118
3112
|
}
|
|
3119
|
-
}, y = a("menu", d || r.prefixCls),
|
|
3113
|
+
}, y = a("menu", d || r.prefixCls), N = je(y), [E, A, L] = Kn(y, N, !n), F = _(`${y}-${v}`, c == null ? void 0 : c.className, f), j = l.useMemo(() => {
|
|
3120
3114
|
var D, W;
|
|
3121
3115
|
if (typeof p == "function" || Ae(p))
|
|
3122
3116
|
return p || null;
|
|
@@ -3125,59 +3119,59 @@ const Jn = {
|
|
|
3125
3119
|
if (typeof (c == null ? void 0 : c.expandIcon) == "function" || Ae(c == null ? void 0 : c.expandIcon))
|
|
3126
3120
|
return (c == null ? void 0 : c.expandIcon) || null;
|
|
3127
3121
|
const q = (D = p ?? (r == null ? void 0 : r.expandIcon)) !== null && D !== void 0 ? D : c == null ? void 0 : c.expandIcon;
|
|
3128
|
-
return
|
|
3122
|
+
return ue(q, {
|
|
3129
3123
|
className: _(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(q) ? (W = q.props) === null || W === void 0 ? void 0 : W.className : void 0)
|
|
3130
3124
|
});
|
|
3131
|
-
}, [p, r == null ? void 0 : r.expandIcon, c == null ? void 0 : c.expandIcon, y]),
|
|
3125
|
+
}, [p, r == null ? void 0 : r.expandIcon, c == null ? void 0 : c.expandIcon, y]), H = l.useMemo(() => ({
|
|
3132
3126
|
prefixCls: y,
|
|
3133
|
-
inlineCollapsed:
|
|
3127
|
+
inlineCollapsed: I || !1,
|
|
3134
3128
|
direction: s,
|
|
3135
3129
|
firstLevel: !0,
|
|
3136
|
-
theme:
|
|
3137
|
-
mode:
|
|
3138
|
-
disableMenuItemTitleTooltip:
|
|
3139
|
-
}), [y,
|
|
3140
|
-
return
|
|
3130
|
+
theme: v,
|
|
3131
|
+
mode: x,
|
|
3132
|
+
disableMenuItemTitleTooltip: g
|
|
3133
|
+
}), [y, I, s, g, v]);
|
|
3134
|
+
return E(/* @__PURE__ */ l.createElement(Pe.Provider, {
|
|
3141
3135
|
value: null
|
|
3142
|
-
}, /* @__PURE__ */ l.createElement(
|
|
3143
|
-
value:
|
|
3136
|
+
}, /* @__PURE__ */ l.createElement(Ee.Provider, {
|
|
3137
|
+
value: H
|
|
3144
3138
|
}, /* @__PURE__ */ l.createElement(So, Object.assign({
|
|
3145
3139
|
getPopupContainer: i,
|
|
3146
3140
|
overflowedIndicator: /* @__PURE__ */ l.createElement(xt, null),
|
|
3147
|
-
overflowedIndicatorPopupClassName: _(y, `${y}-${
|
|
3148
|
-
mode:
|
|
3149
|
-
selectable:
|
|
3150
|
-
onClick:
|
|
3151
|
-
},
|
|
3152
|
-
inlineCollapsed:
|
|
3141
|
+
overflowedIndicatorPopupClassName: _(y, `${y}-${v}`, M),
|
|
3142
|
+
mode: x,
|
|
3143
|
+
selectable: P,
|
|
3144
|
+
onClick: w
|
|
3145
|
+
}, T, {
|
|
3146
|
+
inlineCollapsed: I,
|
|
3153
3147
|
style: Object.assign(Object.assign({}, c == null ? void 0 : c.style), m),
|
|
3154
3148
|
className: F,
|
|
3155
3149
|
prefixCls: y,
|
|
3156
3150
|
direction: s,
|
|
3157
|
-
defaultMotions:
|
|
3158
|
-
expandIcon:
|
|
3151
|
+
defaultMotions: z,
|
|
3152
|
+
expandIcon: j,
|
|
3159
3153
|
ref: t,
|
|
3160
|
-
rootClassName: _(b,
|
|
3161
|
-
_internalComponents:
|
|
3154
|
+
rootClassName: _(b, A, r.rootClassName, L, N),
|
|
3155
|
+
_internalComponents: Qn
|
|
3162
3156
|
})))));
|
|
3163
|
-
}),
|
|
3164
|
-
const o =
|
|
3157
|
+
}), ge = /* @__PURE__ */ ke((e, t) => {
|
|
3158
|
+
const o = Be(null), n = l.useContext(Je);
|
|
3165
3159
|
return yt(t, () => ({
|
|
3166
3160
|
menu: o.current,
|
|
3167
3161
|
focus: (r) => {
|
|
3168
3162
|
var a;
|
|
3169
3163
|
(a = o.current) === null || a === void 0 || a.focus(r);
|
|
3170
3164
|
}
|
|
3171
|
-
})), /* @__PURE__ */ l.createElement(
|
|
3165
|
+
})), /* @__PURE__ */ l.createElement(Jn, Object.assign({
|
|
3172
3166
|
ref: o
|
|
3173
3167
|
}, e, n));
|
|
3174
3168
|
});
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
process.env.NODE_ENV !== "production" && (
|
|
3180
|
-
const
|
|
3169
|
+
ge.Item = At;
|
|
3170
|
+
ge.SubMenu = Lt;
|
|
3171
|
+
ge.Divider = Ht;
|
|
3172
|
+
ge.ItemGroup = Oo;
|
|
3173
|
+
process.env.NODE_ENV !== "production" && (ge.displayName = "Menu");
|
|
3174
|
+
const er = (e) => {
|
|
3181
3175
|
const {
|
|
3182
3176
|
componentCls: t,
|
|
3183
3177
|
menuCls: o,
|
|
@@ -3197,7 +3191,7 @@ const tr = (e) => {
|
|
|
3197
3191
|
}
|
|
3198
3192
|
}
|
|
3199
3193
|
};
|
|
3200
|
-
},
|
|
3194
|
+
}, tr = (e) => {
|
|
3201
3195
|
const {
|
|
3202
3196
|
componentCls: t,
|
|
3203
3197
|
menuCls: o,
|
|
@@ -3211,9 +3205,9 @@ const tr = (e) => {
|
|
|
3211
3205
|
fontSize: d,
|
|
3212
3206
|
dropdownEdgeChildPadding: f,
|
|
3213
3207
|
colorTextDisabled: m,
|
|
3214
|
-
fontSizeIcon:
|
|
3208
|
+
fontSizeIcon: v,
|
|
3215
3209
|
controlPaddingHorizontal: p,
|
|
3216
|
-
colorBgElevated:
|
|
3210
|
+
colorBgElevated: g
|
|
3217
3211
|
} = e;
|
|
3218
3212
|
return [
|
|
3219
3213
|
{
|
|
@@ -3242,13 +3236,13 @@ const tr = (e) => {
|
|
|
3242
3236
|
},
|
|
3243
3237
|
[`&-trigger${i}-btn`]: {
|
|
3244
3238
|
[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]: {
|
|
3245
|
-
fontSize:
|
|
3239
|
+
fontSize: v
|
|
3246
3240
|
}
|
|
3247
3241
|
},
|
|
3248
3242
|
[`${t}-wrap`]: {
|
|
3249
3243
|
position: "relative",
|
|
3250
3244
|
[`${i}-btn > ${s}-down`]: {
|
|
3251
|
-
fontSize:
|
|
3245
|
+
fontSize: v
|
|
3252
3246
|
},
|
|
3253
3247
|
[`${s}-down::before`]: {
|
|
3254
3248
|
transition: `transform ${c}`
|
|
@@ -3298,7 +3292,7 @@ const tr = (e) => {
|
|
|
3298
3292
|
// =============================================================
|
|
3299
3293
|
// == Arrow style ==
|
|
3300
3294
|
// =============================================================
|
|
3301
|
-
Ze(e,
|
|
3295
|
+
Ze(e, g, {
|
|
3302
3296
|
arrowPlacement: {
|
|
3303
3297
|
top: !0,
|
|
3304
3298
|
bottom: !0
|
|
@@ -3323,11 +3317,11 @@ const tr = (e) => {
|
|
|
3323
3317
|
margin: 0
|
|
3324
3318
|
}
|
|
3325
3319
|
},
|
|
3326
|
-
[`${t}, ${t}-menu-submenu`]: Object.assign(Object.assign({},
|
|
3320
|
+
[`${t}, ${t}-menu-submenu`]: Object.assign(Object.assign({}, ve(e)), {
|
|
3327
3321
|
[o]: Object.assign(Object.assign({
|
|
3328
3322
|
padding: f,
|
|
3329
3323
|
listStyleType: "none",
|
|
3330
|
-
backgroundColor:
|
|
3324
|
+
backgroundColor: g,
|
|
3331
3325
|
backgroundClip: "padding-box",
|
|
3332
3326
|
borderRadius: e.borderRadiusLG,
|
|
3333
3327
|
outline: "none",
|
|
@@ -3338,7 +3332,7 @@ const tr = (e) => {
|
|
|
3338
3332
|
boxShadow: "none"
|
|
3339
3333
|
},
|
|
3340
3334
|
[`${o}-item-group-title`]: {
|
|
3341
|
-
padding: `${
|
|
3335
|
+
padding: `${O(u)} ${O(p)}`,
|
|
3342
3336
|
color: e.colorTextDescription,
|
|
3343
3337
|
transition: `all ${c}`
|
|
3344
3338
|
},
|
|
@@ -3383,7 +3377,7 @@ const tr = (e) => {
|
|
|
3383
3377
|
[`${o}-item, ${o}-submenu-title`]: Object.assign(Object.assign({
|
|
3384
3378
|
display: "flex",
|
|
3385
3379
|
margin: 0,
|
|
3386
|
-
padding: `${
|
|
3380
|
+
padding: `${O(u)} ${O(p)}`,
|
|
3387
3381
|
color: e.colorText,
|
|
3388
3382
|
fontWeight: "normal",
|
|
3389
3383
|
fontSize: d,
|
|
@@ -3407,7 +3401,7 @@ const tr = (e) => {
|
|
|
3407
3401
|
cursor: "not-allowed",
|
|
3408
3402
|
"&:hover": {
|
|
3409
3403
|
color: m,
|
|
3410
|
-
backgroundColor:
|
|
3404
|
+
backgroundColor: g,
|
|
3411
3405
|
cursor: "not-allowed"
|
|
3412
3406
|
},
|
|
3413
3407
|
a: {
|
|
@@ -3417,7 +3411,7 @@ const tr = (e) => {
|
|
|
3417
3411
|
"&-divider": {
|
|
3418
3412
|
height: 1,
|
|
3419
3413
|
// By design
|
|
3420
|
-
margin: `${
|
|
3414
|
+
margin: `${O(e.marginXXS)} 0`,
|
|
3421
3415
|
overflow: "hidden",
|
|
3422
3416
|
lineHeight: 0,
|
|
3423
3417
|
backgroundColor: e.colorSplit
|
|
@@ -3427,14 +3421,14 @@ const tr = (e) => {
|
|
|
3427
3421
|
insetInlineEnd: e.paddingXS,
|
|
3428
3422
|
[`${t}-menu-submenu-arrow-icon`]: {
|
|
3429
3423
|
marginInlineEnd: "0 !important",
|
|
3430
|
-
color: e.
|
|
3431
|
-
fontSize:
|
|
3424
|
+
color: e.colorIcon,
|
|
3425
|
+
fontSize: v,
|
|
3432
3426
|
fontStyle: "normal"
|
|
3433
3427
|
}
|
|
3434
3428
|
}
|
|
3435
3429
|
}),
|
|
3436
3430
|
[`${o}-item-group-list`]: {
|
|
3437
|
-
margin: `0 ${
|
|
3431
|
+
margin: `0 ${O(e.marginXS)}`,
|
|
3438
3432
|
padding: 0,
|
|
3439
3433
|
listStyle: "none"
|
|
3440
3434
|
},
|
|
@@ -3447,7 +3441,7 @@ const tr = (e) => {
|
|
|
3447
3441
|
[`${o}-submenu${o}-submenu-disabled ${t}-menu-submenu-title`]: {
|
|
3448
3442
|
[`&, ${t}-menu-submenu-arrow-icon`]: {
|
|
3449
3443
|
color: m,
|
|
3450
|
-
backgroundColor:
|
|
3444
|
+
backgroundColor: g,
|
|
3451
3445
|
cursor: "not-allowed"
|
|
3452
3446
|
}
|
|
3453
3447
|
},
|
|
@@ -3459,29 +3453,29 @@ const tr = (e) => {
|
|
|
3459
3453
|
})
|
|
3460
3454
|
},
|
|
3461
3455
|
// Follow code may reuse in other components
|
|
3462
|
-
[
|
|
3456
|
+
[Se(e, "slide-up"), Se(e, "slide-down"), st(e, "move-up"), st(e, "move-down"), Te(e, "zoom-big")]
|
|
3463
3457
|
];
|
|
3464
|
-
},
|
|
3458
|
+
}, or = (e) => Object.assign(Object.assign({
|
|
3465
3459
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
3466
3460
|
paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
|
|
3467
|
-
},
|
|
3461
|
+
}, _e({
|
|
3468
3462
|
contentRadius: e.borderRadiusLG,
|
|
3469
3463
|
limitVerticalRadius: !0
|
|
3470
|
-
})), Ke(e)),
|
|
3464
|
+
})), Ke(e)), nr = de("Dropdown", (e) => {
|
|
3471
3465
|
const {
|
|
3472
3466
|
marginXXS: t,
|
|
3473
3467
|
sizePopupArrow: o,
|
|
3474
3468
|
paddingXXS: n,
|
|
3475
3469
|
componentCls: r
|
|
3476
|
-
} = e, a =
|
|
3470
|
+
} = e, a = ce(e, {
|
|
3477
3471
|
menuCls: `${r}-menu`,
|
|
3478
3472
|
dropdownArrowDistance: e.calc(o).div(2).add(t).equal(),
|
|
3479
3473
|
dropdownEdgeChildPadding: n
|
|
3480
3474
|
});
|
|
3481
|
-
return [
|
|
3482
|
-
},
|
|
3475
|
+
return [tr(a), er(a)];
|
|
3476
|
+
}, or, {
|
|
3483
3477
|
resetStyle: !1
|
|
3484
|
-
}),
|
|
3478
|
+
}), $e = (e) => {
|
|
3485
3479
|
var t;
|
|
3486
3480
|
const {
|
|
3487
3481
|
menu: o,
|
|
@@ -3495,113 +3489,113 @@ const tr = (e) => {
|
|
|
3495
3489
|
overlayClassName: d,
|
|
3496
3490
|
rootClassName: f,
|
|
3497
3491
|
overlayStyle: m,
|
|
3498
|
-
open:
|
|
3492
|
+
open: v,
|
|
3499
3493
|
onOpenChange: p,
|
|
3500
3494
|
// Deprecated
|
|
3501
|
-
visible:
|
|
3495
|
+
visible: g,
|
|
3502
3496
|
onVisibleChange: h,
|
|
3503
3497
|
mouseEnterDelay: C = 0.15,
|
|
3504
3498
|
mouseLeaveDelay: b = 0.1,
|
|
3505
3499
|
autoAdjustOverflow: S = !0,
|
|
3506
3500
|
placement: $ = "",
|
|
3507
|
-
overlay:
|
|
3508
|
-
transitionName:
|
|
3501
|
+
overlay: B,
|
|
3502
|
+
transitionName: M
|
|
3509
3503
|
} = e, {
|
|
3510
3504
|
getPopupContainer: R,
|
|
3511
|
-
getPrefixCls:
|
|
3512
|
-
direction:
|
|
3513
|
-
dropdown:
|
|
3514
|
-
} = l.useContext(
|
|
3515
|
-
process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((
|
|
3516
|
-
let [
|
|
3517
|
-
|
|
3518
|
-
}),
|
|
3519
|
-
const
|
|
3520
|
-
const
|
|
3521
|
-
return
|
|
3522
|
-
}, [
|
|
3505
|
+
getPrefixCls: T,
|
|
3506
|
+
direction: w,
|
|
3507
|
+
dropdown: x
|
|
3508
|
+
} = l.useContext(ie), P = be("Dropdown");
|
|
3509
|
+
process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((V) => {
|
|
3510
|
+
let [re, ne] = V;
|
|
3511
|
+
P.deprecated(!(re in e), re, ne);
|
|
3512
|
+
}), P.deprecated(!("overlay" in e), "overlay", "menu"));
|
|
3513
|
+
const I = l.useMemo(() => {
|
|
3514
|
+
const V = T();
|
|
3515
|
+
return M !== void 0 ? M : $.includes("top") ? `${V}-slide-down` : `${V}-slide-up`;
|
|
3516
|
+
}, [T, $, M]), z = l.useMemo(() => $ ? $.includes("Center") ? $.slice(0, $.indexOf("Center")) : $ : w === "rtl" ? "bottomRight" : "bottomLeft", [$, w]);
|
|
3523
3517
|
if (process.env.NODE_ENV !== "production") {
|
|
3524
3518
|
if ($.includes("Center")) {
|
|
3525
|
-
const
|
|
3526
|
-
process.env.NODE_ENV !== "production" &&
|
|
3519
|
+
const V = $.slice(0, $.indexOf("Center"));
|
|
3520
|
+
process.env.NODE_ENV !== "production" && P(!$.includes("Center"), "deprecated", `You are using '${$}' placement in Dropdown, which is deprecated. Try to use '${V}' instead.`);
|
|
3527
3521
|
}
|
|
3528
|
-
[["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((
|
|
3529
|
-
let [
|
|
3530
|
-
|
|
3522
|
+
[["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((V) => {
|
|
3523
|
+
let [re, ne] = V;
|
|
3524
|
+
P.deprecated(!(re in e), re, ne);
|
|
3531
3525
|
});
|
|
3532
3526
|
}
|
|
3533
|
-
const y =
|
|
3527
|
+
const y = T("dropdown", r), N = je(y), [E, A, L] = nr(y, N), [, F] = We(), j = l.Children.only(zn(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), H = ue(j, {
|
|
3534
3528
|
className: _(`${y}-trigger`, {
|
|
3535
|
-
[`${y}-rtl`]:
|
|
3536
|
-
},
|
|
3537
|
-
disabled: (t =
|
|
3529
|
+
[`${y}-rtl`]: w === "rtl"
|
|
3530
|
+
}, j.props.className),
|
|
3531
|
+
disabled: (t = j.props.disabled) !== null && t !== void 0 ? t : s
|
|
3538
3532
|
}), D = s ? [] : i, W = !!(D != null && D.includes("contextMenu")), [q, G] = Fe(!1, {
|
|
3539
|
-
value:
|
|
3540
|
-
}), Z = wt((
|
|
3541
|
-
p == null || p(
|
|
3533
|
+
value: v ?? g
|
|
3534
|
+
}), Z = wt((V) => {
|
|
3535
|
+
p == null || p(V, {
|
|
3542
3536
|
source: "trigger"
|
|
3543
|
-
}), h == null || h(
|
|
3544
|
-
}),
|
|
3545
|
-
[`${y}-rtl`]:
|
|
3546
|
-
}),
|
|
3537
|
+
}), h == null || h(V), G(V);
|
|
3538
|
+
}), ee = _(d, f, A, L, N, x == null ? void 0 : x.className, {
|
|
3539
|
+
[`${y}-rtl`]: w === "rtl"
|
|
3540
|
+
}), k = Pt({
|
|
3547
3541
|
arrowPointAtCenter: typeof n == "object" && n.pointAtCenter,
|
|
3548
3542
|
autoAdjustOverflow: S,
|
|
3549
3543
|
offset: F.marginXXS,
|
|
3550
3544
|
arrowWidth: n ? F.sizePopupArrow : 0,
|
|
3551
3545
|
borderRadius: F.borderRadius
|
|
3552
|
-
}),
|
|
3546
|
+
}), U = l.useCallback(() => {
|
|
3553
3547
|
o != null && o.selectable && (o != null && o.multiple) || (p == null || p(!1, {
|
|
3554
3548
|
source: "menu"
|
|
3555
3549
|
}), G(!1));
|
|
3556
|
-
}, [o == null ? void 0 : o.selectable, o == null ? void 0 : o.multiple]),
|
|
3557
|
-
let
|
|
3558
|
-
return o != null && o.items ?
|
|
3550
|
+
}, [o == null ? void 0 : o.selectable, o == null ? void 0 : o.multiple]), Q = () => {
|
|
3551
|
+
let V;
|
|
3552
|
+
return o != null && o.items ? V = /* @__PURE__ */ l.createElement(ge, Object.assign({}, o)) : typeof B == "function" ? V = B() : V = B, c && (V = c(V)), V = l.Children.only(typeof V == "string" ? /* @__PURE__ */ l.createElement("span", null, V) : V), /* @__PURE__ */ l.createElement(Xn, {
|
|
3559
3553
|
prefixCls: `${y}-menu`,
|
|
3560
|
-
rootClassName: _(L,
|
|
3554
|
+
rootClassName: _(L, N),
|
|
3561
3555
|
expandIcon: /* @__PURE__ */ l.createElement("span", {
|
|
3562
3556
|
className: `${y}-menu-submenu-arrow`
|
|
3563
|
-
},
|
|
3557
|
+
}, w === "rtl" ? /* @__PURE__ */ l.createElement(Ne, {
|
|
3564
3558
|
className: `${y}-menu-submenu-arrow-icon`
|
|
3565
|
-
}) : /* @__PURE__ */ l.createElement(
|
|
3559
|
+
}) : /* @__PURE__ */ l.createElement(Oe, {
|
|
3566
3560
|
className: `${y}-menu-submenu-arrow-icon`
|
|
3567
3561
|
})),
|
|
3568
3562
|
mode: "vertical",
|
|
3569
3563
|
selectable: !1,
|
|
3570
|
-
onClick:
|
|
3571
|
-
validator: (
|
|
3564
|
+
onClick: U,
|
|
3565
|
+
validator: (re) => {
|
|
3572
3566
|
let {
|
|
3573
|
-
mode:
|
|
3574
|
-
} =
|
|
3575
|
-
process.env.NODE_ENV !== "production" &&
|
|
3567
|
+
mode: ne
|
|
3568
|
+
} = re;
|
|
3569
|
+
process.env.NODE_ENV !== "production" && P(!ne || ne === "vertical", "usage", `mode="${ne}" is not supported for Dropdown's Menu.`);
|
|
3576
3570
|
}
|
|
3577
|
-
},
|
|
3578
|
-
}, [
|
|
3579
|
-
let
|
|
3571
|
+
}, V);
|
|
3572
|
+
}, [X, Y] = Ge("Dropdown", m == null ? void 0 : m.zIndex);
|
|
3573
|
+
let J = /* @__PURE__ */ l.createElement(Bo, Object.assign({
|
|
3580
3574
|
alignPoint: W
|
|
3581
|
-
},
|
|
3575
|
+
}, he(e, ["rootClassName"]), {
|
|
3582
3576
|
mouseEnterDelay: C,
|
|
3583
3577
|
mouseLeaveDelay: b,
|
|
3584
3578
|
visible: q,
|
|
3585
|
-
builtinPlacements:
|
|
3579
|
+
builtinPlacements: k,
|
|
3586
3580
|
arrow: !!n,
|
|
3587
|
-
overlayClassName:
|
|
3581
|
+
overlayClassName: ee,
|
|
3588
3582
|
prefixCls: y,
|
|
3589
3583
|
getPopupContainer: u || R,
|
|
3590
|
-
transitionName:
|
|
3584
|
+
transitionName: I,
|
|
3591
3585
|
trigger: D,
|
|
3592
|
-
overlay:
|
|
3593
|
-
placement:
|
|
3586
|
+
overlay: Q,
|
|
3587
|
+
placement: z,
|
|
3594
3588
|
onVisibleChange: Z,
|
|
3595
|
-
overlayStyle: Object.assign(Object.assign(Object.assign({},
|
|
3596
|
-
zIndex:
|
|
3589
|
+
overlayStyle: Object.assign(Object.assign(Object.assign({}, x == null ? void 0 : x.style), m), {
|
|
3590
|
+
zIndex: X
|
|
3597
3591
|
})
|
|
3598
|
-
}),
|
|
3599
|
-
return
|
|
3600
|
-
value:
|
|
3601
|
-
},
|
|
3602
|
-
},
|
|
3603
|
-
|
|
3604
|
-
process.env.NODE_ENV !== "production" && (
|
|
3592
|
+
}), H);
|
|
3593
|
+
return X && (J = /* @__PURE__ */ l.createElement(Ot.Provider, {
|
|
3594
|
+
value: Y
|
|
3595
|
+
}, J)), E(J);
|
|
3596
|
+
}, rr = jo($e, "align", void 0, "dropdown", (e) => e), ir = (e) => /* @__PURE__ */ l.createElement(rr, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
|
|
3597
|
+
$e._InternalPanelDoNotUseOrYouWillBeFired = ir;
|
|
3598
|
+
process.env.NODE_ENV !== "production" && ($e.displayName = "Dropdown");
|
|
3605
3599
|
function bt(e) {
|
|
3606
3600
|
return ["small", "middle", "large"].includes(e);
|
|
3607
3601
|
}
|
|
@@ -3610,7 +3604,7 @@ function ht(e) {
|
|
|
3610
3604
|
}
|
|
3611
3605
|
const kt = /* @__PURE__ */ $t.createContext({
|
|
3612
3606
|
latestIndex: 0
|
|
3613
|
-
}),
|
|
3607
|
+
}), ar = kt.Provider, lr = (e) => {
|
|
3614
3608
|
let {
|
|
3615
3609
|
className: t,
|
|
3616
3610
|
index: o,
|
|
@@ -3628,14 +3622,14 @@ const kt = /* @__PURE__ */ $t.createContext({
|
|
|
3628
3622
|
className: `${t}-split`
|
|
3629
3623
|
}, r));
|
|
3630
3624
|
};
|
|
3631
|
-
var
|
|
3625
|
+
var sr = function(e, t) {
|
|
3632
3626
|
var o = {};
|
|
3633
3627
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
3634
3628
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
3635
3629
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
3636
3630
|
return o;
|
|
3637
3631
|
};
|
|
3638
|
-
const
|
|
3632
|
+
const cr = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
3639
3633
|
var o;
|
|
3640
3634
|
const {
|
|
3641
3635
|
getPrefixCls: n,
|
|
@@ -3649,52 +3643,52 @@ const dr = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
3649
3643
|
size: d = a ?? "small",
|
|
3650
3644
|
align: f,
|
|
3651
3645
|
className: m,
|
|
3652
|
-
rootClassName:
|
|
3646
|
+
rootClassName: v,
|
|
3653
3647
|
children: p,
|
|
3654
|
-
direction:
|
|
3648
|
+
direction: g = "horizontal",
|
|
3655
3649
|
prefixCls: h,
|
|
3656
3650
|
split: C,
|
|
3657
3651
|
style: b,
|
|
3658
3652
|
wrap: S = !1,
|
|
3659
3653
|
classNames: $,
|
|
3660
|
-
styles:
|
|
3661
|
-
} = e,
|
|
3654
|
+
styles: B
|
|
3655
|
+
} = e, M = sr(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [R, T] = Array.isArray(d) ? d : [d, d], w = bt(T), x = bt(R), P = ht(T), I = ht(R), z = qe(p, {
|
|
3662
3656
|
keepEmpty: !0
|
|
3663
|
-
}), y = f === void 0 &&
|
|
3664
|
-
[`${
|
|
3665
|
-
[`${
|
|
3666
|
-
[`${
|
|
3667
|
-
[`${
|
|
3668
|
-
}, m,
|
|
3669
|
-
let
|
|
3670
|
-
const D =
|
|
3671
|
-
var
|
|
3672
|
-
G != null && (
|
|
3673
|
-
const
|
|
3674
|
-
return /* @__PURE__ */ l.createElement(
|
|
3675
|
-
className:
|
|
3676
|
-
key:
|
|
3657
|
+
}), y = f === void 0 && g === "horizontal" ? "center" : f, N = n("space", h), [E, A, L] = To(N), F = _(N, i, A, `${N}-${g}`, {
|
|
3658
|
+
[`${N}-rtl`]: r === "rtl",
|
|
3659
|
+
[`${N}-align-${y}`]: y,
|
|
3660
|
+
[`${N}-gap-row-${T}`]: w,
|
|
3661
|
+
[`${N}-gap-col-${R}`]: x
|
|
3662
|
+
}, m, v, L), j = _(`${N}-item`, (o = $ == null ? void 0 : $.item) !== null && o !== void 0 ? o : c.item);
|
|
3663
|
+
let H = 0;
|
|
3664
|
+
const D = z.map((G, Z) => {
|
|
3665
|
+
var ee;
|
|
3666
|
+
G != null && (H = Z);
|
|
3667
|
+
const k = (G == null ? void 0 : G.key) || `${j}-${Z}`;
|
|
3668
|
+
return /* @__PURE__ */ l.createElement(lr, {
|
|
3669
|
+
className: j,
|
|
3670
|
+
key: k,
|
|
3677
3671
|
index: Z,
|
|
3678
3672
|
split: C,
|
|
3679
|
-
style: (
|
|
3673
|
+
style: (ee = B == null ? void 0 : B.item) !== null && ee !== void 0 ? ee : u.item
|
|
3680
3674
|
}, G);
|
|
3681
3675
|
}), W = l.useMemo(() => ({
|
|
3682
|
-
latestIndex:
|
|
3683
|
-
}), [
|
|
3684
|
-
if (
|
|
3676
|
+
latestIndex: H
|
|
3677
|
+
}), [H]);
|
|
3678
|
+
if (z.length === 0)
|
|
3685
3679
|
return null;
|
|
3686
3680
|
const q = {};
|
|
3687
|
-
return S && (q.flexWrap = "wrap"), !
|
|
3681
|
+
return S && (q.flexWrap = "wrap"), !x && I && (q.columnGap = R), !w && P && (q.rowGap = T), E(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
3688
3682
|
ref: t,
|
|
3689
3683
|
className: F,
|
|
3690
3684
|
style: Object.assign(Object.assign(Object.assign({}, q), s), b)
|
|
3691
|
-
},
|
|
3685
|
+
}, M), /* @__PURE__ */ l.createElement(ar, {
|
|
3692
3686
|
value: W
|
|
3693
3687
|
}, D)));
|
|
3694
|
-
}), et =
|
|
3688
|
+
}), et = cr;
|
|
3695
3689
|
et.Compact = _o;
|
|
3696
3690
|
process.env.NODE_ENV !== "production" && (et.displayName = "Space");
|
|
3697
|
-
var
|
|
3691
|
+
var dr = function(e, t) {
|
|
3698
3692
|
var o = {};
|
|
3699
3693
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
3700
3694
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
@@ -3706,7 +3700,7 @@ const Vt = (e) => {
|
|
|
3706
3700
|
getPopupContainer: t,
|
|
3707
3701
|
getPrefixCls: o,
|
|
3708
3702
|
direction: n
|
|
3709
|
-
} = l.useContext(
|
|
3703
|
+
} = l.useContext(ie), {
|
|
3710
3704
|
prefixCls: r,
|
|
3711
3705
|
type: a = "default",
|
|
3712
3706
|
danger: i,
|
|
@@ -3716,46 +3710,46 @@ const Vt = (e) => {
|
|
|
3716
3710
|
htmlType: d,
|
|
3717
3711
|
children: f,
|
|
3718
3712
|
className: m,
|
|
3719
|
-
menu:
|
|
3713
|
+
menu: v,
|
|
3720
3714
|
arrow: p,
|
|
3721
|
-
autoFocus:
|
|
3715
|
+
autoFocus: g,
|
|
3722
3716
|
overlay: h,
|
|
3723
3717
|
trigger: C,
|
|
3724
3718
|
align: b,
|
|
3725
3719
|
open: S,
|
|
3726
3720
|
onOpenChange: $,
|
|
3727
|
-
placement:
|
|
3728
|
-
getPopupContainer:
|
|
3721
|
+
placement: B,
|
|
3722
|
+
getPopupContainer: M,
|
|
3729
3723
|
href: R,
|
|
3730
|
-
icon:
|
|
3731
|
-
title:
|
|
3732
|
-
buttonsRender:
|
|
3733
|
-
mouseEnterDelay:
|
|
3734
|
-
mouseLeaveDelay:
|
|
3735
|
-
overlayClassName:
|
|
3724
|
+
icon: T = /* @__PURE__ */ l.createElement(xt, null),
|
|
3725
|
+
title: w,
|
|
3726
|
+
buttonsRender: x = (k) => k,
|
|
3727
|
+
mouseEnterDelay: P,
|
|
3728
|
+
mouseLeaveDelay: I,
|
|
3729
|
+
overlayClassName: z,
|
|
3736
3730
|
overlayStyle: y,
|
|
3737
|
-
destroyPopupOnHide:
|
|
3738
|
-
dropdownRender:
|
|
3739
|
-
} = e,
|
|
3740
|
-
menu:
|
|
3731
|
+
destroyPopupOnHide: N,
|
|
3732
|
+
dropdownRender: E
|
|
3733
|
+
} = e, A = dr(e, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]), L = o("dropdown", r), F = `${L}-button`, j = {
|
|
3734
|
+
menu: v,
|
|
3741
3735
|
arrow: p,
|
|
3742
|
-
autoFocus:
|
|
3736
|
+
autoFocus: g,
|
|
3743
3737
|
align: b,
|
|
3744
3738
|
disabled: s,
|
|
3745
3739
|
trigger: s ? [] : C,
|
|
3746
3740
|
onOpenChange: $,
|
|
3747
|
-
getPopupContainer:
|
|
3748
|
-
mouseEnterDelay:
|
|
3749
|
-
mouseLeaveDelay:
|
|
3750
|
-
overlayClassName:
|
|
3741
|
+
getPopupContainer: M || t,
|
|
3742
|
+
mouseEnterDelay: P,
|
|
3743
|
+
mouseLeaveDelay: I,
|
|
3744
|
+
overlayClassName: z,
|
|
3751
3745
|
overlayStyle: y,
|
|
3752
|
-
destroyPopupOnHide:
|
|
3753
|
-
dropdownRender:
|
|
3746
|
+
destroyPopupOnHide: N,
|
|
3747
|
+
dropdownRender: E
|
|
3754
3748
|
}, {
|
|
3755
|
-
compactSize:
|
|
3749
|
+
compactSize: H,
|
|
3756
3750
|
compactItemClassnames: D
|
|
3757
3751
|
} = Ro(L, n), W = _(F, D, m);
|
|
3758
|
-
"overlay" in e && (
|
|
3752
|
+
"overlay" in e && (j.overlay = h), "open" in e && (j.open = S), "placement" in e ? j.placement = B : j.placement = n === "rtl" ? "bottomLeft" : "bottomRight";
|
|
3759
3753
|
const q = /* @__PURE__ */ l.createElement(lt, {
|
|
3760
3754
|
type: a,
|
|
3761
3755
|
danger: i,
|
|
@@ -3764,33 +3758,33 @@ const Vt = (e) => {
|
|
|
3764
3758
|
onClick: u,
|
|
3765
3759
|
htmlType: d,
|
|
3766
3760
|
href: R,
|
|
3767
|
-
title:
|
|
3761
|
+
title: w
|
|
3768
3762
|
}, f), G = /* @__PURE__ */ l.createElement(lt, {
|
|
3769
3763
|
type: a,
|
|
3770
3764
|
danger: i,
|
|
3771
|
-
icon:
|
|
3772
|
-
}), [Z,
|
|
3765
|
+
icon: T
|
|
3766
|
+
}), [Z, ee] = x([q, G]);
|
|
3773
3767
|
return /* @__PURE__ */ l.createElement(et.Compact, Object.assign({
|
|
3774
3768
|
className: W,
|
|
3775
|
-
size:
|
|
3769
|
+
size: H,
|
|
3776
3770
|
block: !0
|
|
3777
|
-
},
|
|
3771
|
+
}, A), Z, /* @__PURE__ */ l.createElement($e, Object.assign({}, j), ee));
|
|
3778
3772
|
};
|
|
3779
3773
|
Vt.__ANT_BUTTON = !0;
|
|
3780
|
-
const Wt =
|
|
3774
|
+
const Wt = $e;
|
|
3781
3775
|
Wt.Button = Vt;
|
|
3782
|
-
const
|
|
3783
|
-
avatar:
|
|
3784
|
-
pointer:
|
|
3785
|
-
flexRowCenter:
|
|
3786
|
-
userTitle:
|
|
3787
|
-
},
|
|
3788
|
-
/* @__PURE__ */
|
|
3789
|
-
!o && /* @__PURE__ */
|
|
3790
|
-
!o && /* @__PURE__ */
|
|
3776
|
+
const ur = (e) => /* @__PURE__ */ l.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ l.createElement("path", { d: "M19 9L12 16L5 9", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), mr = "_avatar_1r72q_43", pr = "_pointer_1r72q_49", gr = "_flexRowCenter_1r72q_53", fr = "_userTitle_1r72q_60", xe = {
|
|
3777
|
+
avatar: mr,
|
|
3778
|
+
pointer: pr,
|
|
3779
|
+
flexRowCenter: gr,
|
|
3780
|
+
userTitle: fr
|
|
3781
|
+
}, xr = ({ items: e, user: t, collapsed: o, handleMenuClick: n }) => /* @__PURE__ */ Ce(Wt, { menu: { items: e, onClick: n }, trigger: ["click"], children: /* @__PURE__ */ eo("a", { onClick: (r) => r.preventDefault(), className: xe.flexRowCenter, children: [
|
|
3782
|
+
/* @__PURE__ */ Ce(_t, { className: oo(xe.avatar, xe.pointer), size: "large", children: t[0] }),
|
|
3783
|
+
!o && /* @__PURE__ */ Ce("span", { className: xe.userTitle, children: t }),
|
|
3784
|
+
!o && /* @__PURE__ */ Ce(ur, {})
|
|
3791
3785
|
] }) });
|
|
3792
3786
|
export {
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3787
|
+
ge as M,
|
|
3788
|
+
ur as S,
|
|
3789
|
+
xr as U
|
|
3796
3790
|
};
|