@amateescu/portal-ui-components 0.0.34 → 0.0.35-beta0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Box-D-aleOLf.js → Box-C-zPAMZN.js} +1 -1
- package/dist/{Button-xgiLW4_3.js → Button-DG4uye8X.js} +3 -3
- package/dist/{ButtonBase-DUKuDCWw.js → ButtonBase-DrxMtoTW.js} +1 -1
- package/dist/{CircularProgress-Dq_bUtxt.js → CircularProgress-DpvktFBW.js} +1 -1
- package/dist/{EllipsisOutlined-CmR4hXJ_.js → EllipsisOutlined-DfCu6q_b.js} +816 -816
- package/dist/{PurePanel-CykVuv66.js → PurePanel-DvQTygSo.js} +487 -491
- package/dist/{Skeleton-BBwDqRB3.js → Skeleton-Bh0A9xju.js} +15 -18
- package/dist/{UserInfoDropdown-Bf6STdbW.js → UserInfoDropdown-CWTcdnqL.js} +1186 -1221
- 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.js +1 -1
- package/dist/components/CustomPagination/CustomPagination.js +4 -4
- 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 +715 -682
- package/dist/components/LoadingAnimation/LoadingAnimation.js +2 -2
- package/dist/components/Login/Login.js +775 -760
- package/dist/components/Login/Login.stories.js +4 -1
- package/dist/components/SideMenu/SideMenu.js +1 -1
- 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-dCWAMvX5.js +7320 -0
- package/dist/createSimplePaletteValueFilter-CwLqlaaZ.js +3457 -0
- package/dist/{createSvgIcon-CgFXfzFk.js → createSvgIcon-DNSRtm3a.js} +1 -1
- package/dist/index-B00P9-H3.js +1681 -0
- package/dist/main.js +1 -1
- package/dist/{useSlot-Baxtq84W.js → useSlot-B4sbbhYz.js} +2 -2
- package/package.json +28 -28
- package/dist/context-4ttylmIf.js +0 -7356
- package/dist/createSimplePaletteValueFilter-evt-Xthj.js +0 -3444
- package/dist/index-Dz00OoV7.js +0 -1687
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as we, jsxs as no } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import
|
|
4
|
-
import { cn as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { I as
|
|
7
|
-
import { R as
|
|
8
|
-
import { P as
|
|
9
|
-
import './assets/UserInfoDropdown.css';function
|
|
10
|
-
return
|
|
3
|
+
import Ct, { useRef as ze, forwardRef as We, useImperativeHandle as wt, isValidElement as ro, useContext as nt, useState as rt, useEffect as Le, createContext as io } from "react";
|
|
4
|
+
import { cn as ao } from "./portal-utils/cn.js";
|
|
5
|
+
import { _ as je } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
|
|
6
|
+
import { I as Xe, K as ae, H as lo, U as Fe, ah as so, g as de, m as ce, y as be, u as I, a2 as co, a as re, E as uo, v as he, D as Te, c as _, p as mo, N as po, e as se, l as it, b as Ge, s as Ye, t as xt, j as go, x as Ue, o as $e, an as fo, n as vo, a4 as bo, A as ho, z as $o, F as at, aa as lt, ad as yo, k as St, ao as Co, B as st } from "./context-dCWAMvX5.js";
|
|
7
|
+
import { R as wo, T as xo, c as So, M as Oo, a as Oe, u as Io, S as Po, E as Eo, b as Ot, d as No, s as Bo, e as zo, f as jo, g as To, D as _o } from "./EllipsisOutlined-DfCu6q_b.js";
|
|
8
|
+
import { P as ve, i as _e, C as It, d as Ro, u as qe, e as ue, z as Pt, g as Mo, f as Ho, h as Do, j as Ao, B as ct } from "./PurePanel-DvQTygSo.js";
|
|
9
|
+
import './assets/UserInfoDropdown.css';function Lo(e, t) {
|
|
10
|
+
return ve.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,
|
|
@@ -17,14 +17,14 @@ import './assets/UserInfoDropdown.css';function Mo(e, t) {
|
|
|
17
17
|
}));
|
|
18
18
|
}, {});
|
|
19
19
|
}
|
|
20
|
-
var
|
|
21
|
-
return /* @__PURE__ */ l.createElement(
|
|
20
|
+
var ko = { 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" }, Vo = function(t, o) {
|
|
21
|
+
return /* @__PURE__ */ l.createElement(Xe, je({}, t, {
|
|
22
22
|
ref: o,
|
|
23
|
-
icon:
|
|
23
|
+
icon: ko
|
|
24
24
|
}));
|
|
25
|
-
},
|
|
26
|
-
process.env.NODE_ENV !== "production" && (
|
|
27
|
-
const
|
|
25
|
+
}, Ie = /* @__PURE__ */ l.forwardRef(Vo);
|
|
26
|
+
process.env.NODE_ENV !== "production" && (Ie.displayName = "RightOutlined");
|
|
27
|
+
const Wo = (e) => ({
|
|
28
28
|
[e.componentCls]: {
|
|
29
29
|
// For common/openAnimation
|
|
30
30
|
[`${e.antCls}-motion-collapse-legacy`]: {
|
|
@@ -40,7 +40,7 @@ const Ao = (e) => ({
|
|
|
40
40
|
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
43
|
+
}), Xo = new ae("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
|
-
}),
|
|
54
|
+
}), Fo = new ae("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
|
-
}),
|
|
65
|
+
}), Go = new ae("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
|
-
}),
|
|
76
|
+
}), Yo = new ae("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
|
-
}),
|
|
87
|
+
}), Uo = new ae("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
|
-
}),
|
|
98
|
+
}), qo = new ae("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
|
-
}),
|
|
109
|
+
}), Ko = new ae("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
|
-
}),
|
|
120
|
+
}), Zo = new ae("antMoveUpOut", {
|
|
121
121
|
"0%": {
|
|
122
122
|
transform: "translate3d(0, 0, 0)",
|
|
123
123
|
transformOrigin: "0 0",
|
|
@@ -128,31 +128,31 @@ const Ao = (e) => ({
|
|
|
128
128
|
transformOrigin: "0 0",
|
|
129
129
|
opacity: 0
|
|
130
130
|
}
|
|
131
|
-
}),
|
|
131
|
+
}), Qo = {
|
|
132
132
|
"move-up": {
|
|
133
|
-
inKeyframes:
|
|
134
|
-
outKeyframes:
|
|
133
|
+
inKeyframes: Ko,
|
|
134
|
+
outKeyframes: Zo
|
|
135
135
|
},
|
|
136
136
|
"move-down": {
|
|
137
|
-
inKeyframes:
|
|
138
|
-
outKeyframes:
|
|
137
|
+
inKeyframes: Xo,
|
|
138
|
+
outKeyframes: Fo
|
|
139
139
|
},
|
|
140
140
|
"move-left": {
|
|
141
|
-
inKeyframes:
|
|
142
|
-
outKeyframes:
|
|
141
|
+
inKeyframes: Go,
|
|
142
|
+
outKeyframes: Yo
|
|
143
143
|
},
|
|
144
144
|
"move-right": {
|
|
145
|
-
inKeyframes:
|
|
146
|
-
outKeyframes:
|
|
145
|
+
inKeyframes: Uo,
|
|
146
|
+
outKeyframes: qo
|
|
147
147
|
}
|
|
148
|
-
},
|
|
148
|
+
}, dt = (e, t) => {
|
|
149
149
|
const {
|
|
150
150
|
antCls: o
|
|
151
151
|
} = e, n = `${o}-${t}`, {
|
|
152
152
|
inKeyframes: r,
|
|
153
153
|
outKeyframes: a
|
|
154
|
-
} =
|
|
155
|
-
return [
|
|
154
|
+
} = Qo[t];
|
|
155
|
+
return [lo(n, r, a, e.motionDurationMid), {
|
|
156
156
|
[`
|
|
157
157
|
${n}-enter,
|
|
158
158
|
${n}-appear
|
|
@@ -164,15 +164,19 @@ const Ao = (e) => ({
|
|
|
164
164
|
animationTimingFunction: e.motionEaseInOutCirc
|
|
165
165
|
}
|
|
166
166
|
}];
|
|
167
|
-
},
|
|
167
|
+
}, Et = (e, t) => {
|
|
168
|
+
typeof (e == null ? void 0 : e.addEventListener) < "u" ? e.addEventListener("change", t) : typeof (e == null ? void 0 : e.addListener) < "u" && e.addListener(t);
|
|
169
|
+
}, Nt = (e, t) => {
|
|
170
|
+
typeof (e == null ? void 0 : e.removeEventListener) < "u" ? e.removeEventListener("change", t) : typeof (e == null ? void 0 : e.removeListener) < "u" && e.removeListener(t);
|
|
171
|
+
}, Bt = ["xxl", "xl", "lg", "md", "sm", "xs"], Jo = (e) => ({
|
|
168
172
|
xs: `(max-width: ${e.screenXSMax}px)`,
|
|
169
173
|
sm: `(min-width: ${e.screenSM}px)`,
|
|
170
174
|
md: `(min-width: ${e.screenMD}px)`,
|
|
171
175
|
lg: `(min-width: ${e.screenLG}px)`,
|
|
172
176
|
xl: `(min-width: ${e.screenXL}px)`,
|
|
173
177
|
xxl: `(min-width: ${e.screenXXL}px)`
|
|
174
|
-
}),
|
|
175
|
-
const t = e, o = [].concat(
|
|
178
|
+
}), en = (e) => {
|
|
179
|
+
const t = e, o = [].concat(Bt).reverse();
|
|
176
180
|
return o.forEach((n, r) => {
|
|
177
181
|
const a = n.toUpperCase(), i = `screen${a}Min`, s = `screen${a}`;
|
|
178
182
|
if (!(t[i] <= t[s]))
|
|
@@ -186,9 +190,9 @@ const Ao = (e) => ({
|
|
|
186
190
|
throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`);
|
|
187
191
|
}
|
|
188
192
|
}), e;
|
|
189
|
-
},
|
|
190
|
-
const [, e] =
|
|
191
|
-
return
|
|
193
|
+
}, tn = () => {
|
|
194
|
+
const [, e] = Fe(), t = Jo(en(e));
|
|
195
|
+
return Ct.useMemo(() => {
|
|
192
196
|
const o = /* @__PURE__ */ new Map();
|
|
193
197
|
let n = -1, r = {};
|
|
194
198
|
return {
|
|
@@ -204,45 +208,43 @@ const Ao = (e) => ({
|
|
|
204
208
|
o.delete(a), o.size || this.unregister();
|
|
205
209
|
},
|
|
206
210
|
register() {
|
|
207
|
-
Object.
|
|
208
|
-
const
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
} = u;
|
|
211
|
+
Object.entries(t).forEach(([a, i]) => {
|
|
212
|
+
const s = ({
|
|
213
|
+
matches: m
|
|
214
|
+
}) => {
|
|
212
215
|
this.dispatch(Object.assign(Object.assign({}, r), {
|
|
213
|
-
[a]:
|
|
216
|
+
[a]: m
|
|
214
217
|
}));
|
|
215
218
|
}, c = window.matchMedia(i);
|
|
216
|
-
c
|
|
219
|
+
Et(c, s), this.matchHandlers[i] = {
|
|
217
220
|
mql: c,
|
|
218
221
|
listener: s
|
|
219
222
|
}, s(c);
|
|
220
223
|
});
|
|
221
224
|
},
|
|
222
225
|
unregister() {
|
|
223
|
-
Object.
|
|
224
|
-
const i =
|
|
225
|
-
|
|
226
|
+
Object.values(t).forEach((a) => {
|
|
227
|
+
const i = this.matchHandlers[a];
|
|
228
|
+
Nt(i == null ? void 0 : i.mql, i == null ? void 0 : i.listener);
|
|
226
229
|
}), o.clear();
|
|
227
230
|
}
|
|
228
231
|
};
|
|
229
232
|
}, [e]);
|
|
230
233
|
};
|
|
231
|
-
function
|
|
234
|
+
function on() {
|
|
232
235
|
const [, e] = l.useReducer((t) => t + 1, 0);
|
|
233
236
|
return e;
|
|
234
237
|
}
|
|
235
|
-
function
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
return ro(() => {
|
|
238
|
+
function nn(e = !0, t = {}) {
|
|
239
|
+
const o = ze(t), n = on(), r = tn();
|
|
240
|
+
return so(() => {
|
|
239
241
|
const a = r.subscribe((i) => {
|
|
240
242
|
o.current = i, e && n();
|
|
241
243
|
});
|
|
242
244
|
return () => r.unsubscribe(a);
|
|
243
245
|
}, []), o.current;
|
|
244
246
|
}
|
|
245
|
-
const
|
|
247
|
+
const Ve = /* @__PURE__ */ l.createContext({}), rn = (e) => {
|
|
246
248
|
const {
|
|
247
249
|
antCls: t,
|
|
248
250
|
componentCls: o,
|
|
@@ -252,20 +254,20 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
252
254
|
containerSize: i,
|
|
253
255
|
containerSizeLG: s,
|
|
254
256
|
containerSizeSM: c,
|
|
255
|
-
textFontSize:
|
|
257
|
+
textFontSize: m,
|
|
256
258
|
textFontSizeLG: d,
|
|
257
259
|
textFontSizeSM: f,
|
|
258
|
-
borderRadius:
|
|
260
|
+
borderRadius: p,
|
|
259
261
|
borderRadiusLG: v,
|
|
260
|
-
borderRadiusSM:
|
|
261
|
-
lineWidth:
|
|
262
|
+
borderRadiusSM: g,
|
|
263
|
+
lineWidth: u,
|
|
262
264
|
lineType: h
|
|
263
|
-
} = e,
|
|
265
|
+
} = e, $ = (b, S, N) => ({
|
|
264
266
|
width: b,
|
|
265
267
|
height: b,
|
|
266
268
|
borderRadius: "50%",
|
|
267
269
|
[`&${o}-square`]: {
|
|
268
|
-
borderRadius:
|
|
270
|
+
borderRadius: N
|
|
269
271
|
},
|
|
270
272
|
[`&${o}-icon`]: {
|
|
271
273
|
fontSize: S,
|
|
@@ -275,7 +277,7 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
275
277
|
}
|
|
276
278
|
});
|
|
277
279
|
return {
|
|
278
|
-
[o]: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
280
|
+
[o]: Object.assign(Object.assign(Object.assign(Object.assign({}, be(e)), {
|
|
279
281
|
position: "relative",
|
|
280
282
|
display: "inline-flex",
|
|
281
283
|
justifyContent: "center",
|
|
@@ -286,16 +288,16 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
286
288
|
textAlign: "center",
|
|
287
289
|
verticalAlign: "middle",
|
|
288
290
|
background: r,
|
|
289
|
-
border: `${
|
|
291
|
+
border: `${I(u)} ${h} transparent`,
|
|
290
292
|
"&-image": {
|
|
291
293
|
background: "transparent"
|
|
292
294
|
},
|
|
293
295
|
[`${t}-image-img`]: {
|
|
294
296
|
display: "block"
|
|
295
297
|
}
|
|
296
|
-
}),
|
|
297
|
-
"&-lg": Object.assign({},
|
|
298
|
-
"&-sm": Object.assign({},
|
|
298
|
+
}), $(i, m, p)), {
|
|
299
|
+
"&-lg": Object.assign({}, $(s, d, v)),
|
|
300
|
+
"&-sm": Object.assign({}, $(c, f, g)),
|
|
299
301
|
"> img": {
|
|
300
302
|
display: "block",
|
|
301
303
|
width: "100%",
|
|
@@ -304,7 +306,7 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
304
306
|
}
|
|
305
307
|
})
|
|
306
308
|
};
|
|
307
|
-
},
|
|
309
|
+
}, an = (e) => {
|
|
308
310
|
const {
|
|
309
311
|
componentCls: t,
|
|
310
312
|
groupBorderColor: o,
|
|
@@ -327,7 +329,7 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
327
329
|
}
|
|
328
330
|
}
|
|
329
331
|
};
|
|
330
|
-
},
|
|
332
|
+
}, ln = (e) => {
|
|
331
333
|
const {
|
|
332
334
|
controlHeight: t,
|
|
333
335
|
controlHeightLG: o,
|
|
@@ -337,7 +339,7 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
337
339
|
fontSizeXL: i,
|
|
338
340
|
fontSizeHeading3: s,
|
|
339
341
|
marginXS: c,
|
|
340
|
-
marginXXS:
|
|
342
|
+
marginXXS: m,
|
|
341
343
|
colorBorderBg: d
|
|
342
344
|
} = e;
|
|
343
345
|
return {
|
|
@@ -347,11 +349,11 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
347
349
|
textFontSize: Math.round((a + i) / 2),
|
|
348
350
|
textFontSizeLG: s,
|
|
349
351
|
textFontSizeSM: r,
|
|
350
|
-
groupSpace:
|
|
352
|
+
groupSpace: m,
|
|
351
353
|
groupOverlapping: -c,
|
|
352
354
|
groupBorderColor: d
|
|
353
355
|
};
|
|
354
|
-
},
|
|
356
|
+
}, zt = de("Avatar", (e) => {
|
|
355
357
|
const {
|
|
356
358
|
colorTextLightSolid: t,
|
|
357
359
|
colorTextPlaceholder: o
|
|
@@ -359,16 +361,16 @@ const Le = /* @__PURE__ */ l.createContext({}), en = (e) => {
|
|
|
359
361
|
avatarBg: o,
|
|
360
362
|
avatarColor: t
|
|
361
363
|
});
|
|
362
|
-
return [
|
|
363
|
-
},
|
|
364
|
-
var
|
|
364
|
+
return [rn(n), an(n)];
|
|
365
|
+
}, ln);
|
|
366
|
+
var sn = function(e, t) {
|
|
365
367
|
var o = {};
|
|
366
368
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
367
369
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
368
370
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
369
371
|
return o;
|
|
370
372
|
};
|
|
371
|
-
const
|
|
373
|
+
const Ke = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
372
374
|
const {
|
|
373
375
|
prefixCls: o,
|
|
374
376
|
shape: n,
|
|
@@ -377,102 +379,102 @@ const Ye = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
377
379
|
srcSet: i,
|
|
378
380
|
icon: s,
|
|
379
381
|
className: c,
|
|
380
|
-
rootClassName:
|
|
382
|
+
rootClassName: m,
|
|
381
383
|
style: d,
|
|
382
384
|
alt: f,
|
|
383
|
-
draggable:
|
|
385
|
+
draggable: p,
|
|
384
386
|
children: v,
|
|
385
|
-
crossOrigin:
|
|
386
|
-
gap:
|
|
387
|
+
crossOrigin: g,
|
|
388
|
+
gap: u = 4,
|
|
387
389
|
onError: h
|
|
388
|
-
} = e,
|
|
389
|
-
getPrefixCls:
|
|
390
|
-
avatar:
|
|
391
|
-
} = l.useContext(
|
|
392
|
-
if (!
|
|
390
|
+
} = e, $ = sn(e, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]), [b, S] = l.useState(1), [N, y] = l.useState(!1), [M, j] = l.useState(!0), T = l.useRef(null), O = l.useRef(null), E = co(t, T), {
|
|
391
|
+
getPrefixCls: H,
|
|
392
|
+
avatar: x
|
|
393
|
+
} = l.useContext(re), C = l.useContext(Ve), w = () => {
|
|
394
|
+
if (!O.current || !T.current)
|
|
393
395
|
return;
|
|
394
|
-
const
|
|
395
|
-
|
|
396
|
+
const V = O.current.offsetWidth, Y = T.current.offsetWidth;
|
|
397
|
+
V !== 0 && Y !== 0 && u * 2 < Y && S(Y - u * 2 < V ? (Y - u * 2) / V : 1);
|
|
396
398
|
};
|
|
397
399
|
l.useEffect(() => {
|
|
398
|
-
|
|
400
|
+
y(!0);
|
|
399
401
|
}, []), l.useEffect(() => {
|
|
400
|
-
|
|
401
|
-
}, [a]), l.useEffect(
|
|
402
|
-
const
|
|
403
|
-
(h == null ? void 0 : h()) !== !1 &&
|
|
404
|
-
},
|
|
405
|
-
var Y,
|
|
406
|
-
return (
|
|
407
|
-
}),
|
|
408
|
-
if (typeof
|
|
402
|
+
j(!0), S(1);
|
|
403
|
+
}, [a]), l.useEffect(w, [u]);
|
|
404
|
+
const B = () => {
|
|
405
|
+
(h == null ? void 0 : h()) !== !1 && j(!1);
|
|
406
|
+
}, P = uo((V) => {
|
|
407
|
+
var Y, ne;
|
|
408
|
+
return (ne = (Y = r ?? (C == null ? void 0 : C.size)) !== null && Y !== void 0 ? Y : V) !== null && ne !== void 0 ? ne : "default";
|
|
409
|
+
}), L = Object.keys(typeof P == "object" ? P || {} : {}).some((V) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(V)), z = nn(L), F = l.useMemo(() => {
|
|
410
|
+
if (typeof P != "object")
|
|
409
411
|
return {};
|
|
410
|
-
const
|
|
412
|
+
const V = Bt.find((ne) => z[ne]), Y = P[V];
|
|
411
413
|
return Y ? {
|
|
412
414
|
width: Y,
|
|
413
415
|
height: Y,
|
|
414
416
|
fontSize: Y && (s || v) ? Y / 2 : 18
|
|
415
417
|
} : {};
|
|
416
|
-
}, [
|
|
418
|
+
}, [z, P]);
|
|
417
419
|
if (process.env.NODE_ENV !== "production") {
|
|
418
|
-
const
|
|
419
|
-
process.env.NODE_ENV !== "production" &&
|
|
420
|
+
const V = he("Avatar");
|
|
421
|
+
process.env.NODE_ENV !== "production" && V(!(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`);
|
|
420
422
|
}
|
|
421
|
-
const
|
|
422
|
-
[`${
|
|
423
|
-
[`${
|
|
424
|
-
}),
|
|
425
|
-
[`${
|
|
426
|
-
[`${
|
|
427
|
-
},
|
|
428
|
-
width:
|
|
429
|
-
height:
|
|
430
|
-
fontSize: s ?
|
|
423
|
+
const D = H("avatar", o), A = Te(D), [k, R, W] = zt(D, A), G = _({
|
|
424
|
+
[`${D}-lg`]: P === "large",
|
|
425
|
+
[`${D}-sm`]: P === "small"
|
|
426
|
+
}), q = /* @__PURE__ */ l.isValidElement(a), Q = n || (C == null ? void 0 : C.shape) || "circle", X = _(D, G, x == null ? void 0 : x.className, `${D}-${Q}`, {
|
|
427
|
+
[`${D}-image`]: q || a && M,
|
|
428
|
+
[`${D}-icon`]: !!s
|
|
429
|
+
}, W, A, c, m, R), Z = typeof P == "number" ? {
|
|
430
|
+
width: P,
|
|
431
|
+
height: P,
|
|
432
|
+
fontSize: s ? P / 2 : 18
|
|
431
433
|
} : {};
|
|
432
|
-
let
|
|
434
|
+
let J;
|
|
433
435
|
if (typeof a == "string" && M)
|
|
434
|
-
|
|
436
|
+
J = /* @__PURE__ */ l.createElement("img", {
|
|
435
437
|
src: a,
|
|
436
|
-
draggable:
|
|
438
|
+
draggable: p,
|
|
437
439
|
srcSet: i,
|
|
438
|
-
onError:
|
|
440
|
+
onError: B,
|
|
439
441
|
alt: f,
|
|
440
|
-
crossOrigin:
|
|
442
|
+
crossOrigin: g
|
|
441
443
|
});
|
|
442
|
-
else if (
|
|
443
|
-
|
|
444
|
+
else if (q)
|
|
445
|
+
J = a;
|
|
444
446
|
else if (s)
|
|
445
|
-
|
|
446
|
-
else if (
|
|
447
|
-
const
|
|
448
|
-
msTransform:
|
|
449
|
-
WebkitTransform:
|
|
450
|
-
transform:
|
|
447
|
+
J = s;
|
|
448
|
+
else if (N || b !== 1) {
|
|
449
|
+
const V = `scale(${b})`, Y = {
|
|
450
|
+
msTransform: V,
|
|
451
|
+
WebkitTransform: V,
|
|
452
|
+
transform: V
|
|
451
453
|
};
|
|
452
|
-
|
|
453
|
-
onResize:
|
|
454
|
+
J = /* @__PURE__ */ l.createElement(wo, {
|
|
455
|
+
onResize: w
|
|
454
456
|
}, /* @__PURE__ */ l.createElement("span", {
|
|
455
|
-
className: `${
|
|
456
|
-
ref:
|
|
457
|
+
className: `${D}-string`,
|
|
458
|
+
ref: O,
|
|
457
459
|
style: Object.assign({}, Y)
|
|
458
460
|
}, v));
|
|
459
461
|
} else
|
|
460
|
-
|
|
461
|
-
className: `${
|
|
462
|
+
J = /* @__PURE__ */ l.createElement("span", {
|
|
463
|
+
className: `${D}-string`,
|
|
462
464
|
style: {
|
|
463
465
|
opacity: 0
|
|
464
466
|
},
|
|
465
|
-
ref:
|
|
467
|
+
ref: O
|
|
466
468
|
}, v);
|
|
467
|
-
return
|
|
468
|
-
style: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
469
|
-
className:
|
|
470
|
-
ref:
|
|
471
|
-
}),
|
|
469
|
+
return k(/* @__PURE__ */ l.createElement("span", Object.assign({}, $, {
|
|
470
|
+
style: Object.assign(Object.assign(Object.assign(Object.assign({}, Z), F), x == null ? void 0 : x.style), d),
|
|
471
|
+
className: X,
|
|
472
|
+
ref: E
|
|
473
|
+
}), J));
|
|
472
474
|
});
|
|
473
|
-
process.env.NODE_ENV !== "production" && (
|
|
474
|
-
const
|
|
475
|
-
function
|
|
475
|
+
process.env.NODE_ENV !== "production" && (Ke.displayName = "Avatar");
|
|
476
|
+
const Pe = (e) => e ? typeof e == "function" ? e() : e : null;
|
|
477
|
+
function Ze(e) {
|
|
476
478
|
var t = e.children, o = e.prefixCls, n = e.id, r = e.overlayInnerStyle, a = e.bodyClassName, i = e.className, s = e.style;
|
|
477
479
|
return /* @__PURE__ */ l.createElement("div", {
|
|
478
480
|
className: _("".concat(o, "-content"), i),
|
|
@@ -484,145 +486,145 @@ function Ue(e) {
|
|
|
484
486
|
style: r
|
|
485
487
|
}, typeof t == "function" ? t() : t));
|
|
486
488
|
}
|
|
487
|
-
var
|
|
489
|
+
var pe = {
|
|
488
490
|
shiftX: 64,
|
|
489
491
|
adjustY: 1
|
|
490
|
-
},
|
|
492
|
+
}, ge = {
|
|
491
493
|
adjustX: 1,
|
|
492
494
|
shiftY: !0
|
|
493
|
-
},
|
|
495
|
+
}, te = [0, 0], cn = {
|
|
494
496
|
left: {
|
|
495
497
|
points: ["cr", "cl"],
|
|
496
|
-
overflow:
|
|
498
|
+
overflow: ge,
|
|
497
499
|
offset: [-4, 0],
|
|
498
|
-
targetOffset:
|
|
500
|
+
targetOffset: te
|
|
499
501
|
},
|
|
500
502
|
right: {
|
|
501
503
|
points: ["cl", "cr"],
|
|
502
|
-
overflow:
|
|
504
|
+
overflow: ge,
|
|
503
505
|
offset: [4, 0],
|
|
504
|
-
targetOffset:
|
|
506
|
+
targetOffset: te
|
|
505
507
|
},
|
|
506
508
|
top: {
|
|
507
509
|
points: ["bc", "tc"],
|
|
508
|
-
overflow:
|
|
510
|
+
overflow: pe,
|
|
509
511
|
offset: [0, -4],
|
|
510
|
-
targetOffset:
|
|
512
|
+
targetOffset: te
|
|
511
513
|
},
|
|
512
514
|
bottom: {
|
|
513
515
|
points: ["tc", "bc"],
|
|
514
|
-
overflow:
|
|
516
|
+
overflow: pe,
|
|
515
517
|
offset: [0, 4],
|
|
516
|
-
targetOffset:
|
|
518
|
+
targetOffset: te
|
|
517
519
|
},
|
|
518
520
|
topLeft: {
|
|
519
521
|
points: ["bl", "tl"],
|
|
520
|
-
overflow:
|
|
522
|
+
overflow: pe,
|
|
521
523
|
offset: [0, -4],
|
|
522
|
-
targetOffset:
|
|
524
|
+
targetOffset: te
|
|
523
525
|
},
|
|
524
526
|
leftTop: {
|
|
525
527
|
points: ["tr", "tl"],
|
|
526
|
-
overflow:
|
|
528
|
+
overflow: ge,
|
|
527
529
|
offset: [-4, 0],
|
|
528
|
-
targetOffset:
|
|
530
|
+
targetOffset: te
|
|
529
531
|
},
|
|
530
532
|
topRight: {
|
|
531
533
|
points: ["br", "tr"],
|
|
532
|
-
overflow:
|
|
534
|
+
overflow: pe,
|
|
533
535
|
offset: [0, -4],
|
|
534
|
-
targetOffset:
|
|
536
|
+
targetOffset: te
|
|
535
537
|
},
|
|
536
538
|
rightTop: {
|
|
537
539
|
points: ["tl", "tr"],
|
|
538
|
-
overflow:
|
|
540
|
+
overflow: ge,
|
|
539
541
|
offset: [4, 0],
|
|
540
|
-
targetOffset:
|
|
542
|
+
targetOffset: te
|
|
541
543
|
},
|
|
542
544
|
bottomRight: {
|
|
543
545
|
points: ["tr", "br"],
|
|
544
|
-
overflow:
|
|
546
|
+
overflow: pe,
|
|
545
547
|
offset: [0, 4],
|
|
546
|
-
targetOffset:
|
|
548
|
+
targetOffset: te
|
|
547
549
|
},
|
|
548
550
|
rightBottom: {
|
|
549
551
|
points: ["bl", "br"],
|
|
550
|
-
overflow:
|
|
552
|
+
overflow: ge,
|
|
551
553
|
offset: [4, 0],
|
|
552
|
-
targetOffset:
|
|
554
|
+
targetOffset: te
|
|
553
555
|
},
|
|
554
556
|
bottomLeft: {
|
|
555
557
|
points: ["tl", "bl"],
|
|
556
|
-
overflow:
|
|
558
|
+
overflow: pe,
|
|
557
559
|
offset: [0, 4],
|
|
558
|
-
targetOffset:
|
|
560
|
+
targetOffset: te
|
|
559
561
|
},
|
|
560
562
|
leftBottom: {
|
|
561
563
|
points: ["br", "bl"],
|
|
562
|
-
overflow:
|
|
564
|
+
overflow: ge,
|
|
563
565
|
offset: [-4, 0],
|
|
564
|
-
targetOffset:
|
|
566
|
+
targetOffset: te
|
|
565
567
|
}
|
|
566
|
-
},
|
|
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,
|
|
568
|
+
}, dn = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], un = function(t, o) {
|
|
569
|
+
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, m = c === void 0 ? 0.1 : c, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, v = t.children, g = t.onVisibleChange, u = t.afterVisibleChange, h = t.transitionName, $ = t.animation, b = t.motion, S = t.placement, N = S === void 0 ? "right" : S, y = t.align, M = y === void 0 ? {} : y, j = t.destroyTooltipOnHide, T = j === void 0 ? !1 : j, O = t.defaultVisible, E = t.getTooltipContainer, H = t.overlayInnerStyle;
|
|
568
570
|
t.arrowContent;
|
|
569
|
-
var
|
|
570
|
-
|
|
571
|
-
return
|
|
571
|
+
var x = t.overlay, C = t.id, w = t.showArrow, B = w === void 0 ? !0 : w, P = t.classNames, L = t.styles, z = mo(t, dn), F = po(C), D = ze(null);
|
|
572
|
+
wt(o, function() {
|
|
573
|
+
return D.current;
|
|
572
574
|
});
|
|
573
|
-
var
|
|
574
|
-
"visible" in t && (
|
|
575
|
-
var
|
|
576
|
-
return /* @__PURE__ */ l.createElement(
|
|
575
|
+
var A = se({}, z);
|
|
576
|
+
"visible" in t && (A.popupVisible = t.visible);
|
|
577
|
+
var k = function() {
|
|
578
|
+
return /* @__PURE__ */ l.createElement(Ze, {
|
|
577
579
|
key: "content",
|
|
578
|
-
prefixCls:
|
|
580
|
+
prefixCls: p,
|
|
579
581
|
id: F,
|
|
580
|
-
bodyClassName:
|
|
581
|
-
overlayInnerStyle: se(se({},
|
|
582
|
-
},
|
|
583
|
-
},
|
|
584
|
-
var
|
|
585
|
-
"aria-describedby":
|
|
582
|
+
bodyClassName: P == null ? void 0 : P.body,
|
|
583
|
+
overlayInnerStyle: se(se({}, H), L == null ? void 0 : L.body)
|
|
584
|
+
}, x);
|
|
585
|
+
}, R = function() {
|
|
586
|
+
var G = l.Children.only(v), q = (G == null ? void 0 : G.props) || {}, Q = se(se({}, q), {}, {
|
|
587
|
+
"aria-describedby": x ? F : null
|
|
586
588
|
});
|
|
587
|
-
return /* @__PURE__ */ l.cloneElement(v,
|
|
589
|
+
return /* @__PURE__ */ l.cloneElement(v, Q);
|
|
588
590
|
};
|
|
589
|
-
return /* @__PURE__ */ l.createElement(
|
|
590
|
-
popupClassName: _(n,
|
|
591
|
-
prefixCls:
|
|
592
|
-
popup:
|
|
591
|
+
return /* @__PURE__ */ l.createElement(xo, je({
|
|
592
|
+
popupClassName: _(n, P == null ? void 0 : P.root),
|
|
593
|
+
prefixCls: p,
|
|
594
|
+
popup: k,
|
|
593
595
|
action: a,
|
|
594
|
-
builtinPlacements:
|
|
595
|
-
popupPlacement:
|
|
596
|
-
ref:
|
|
596
|
+
builtinPlacements: cn,
|
|
597
|
+
popupPlacement: N,
|
|
598
|
+
ref: D,
|
|
597
599
|
popupAlign: M,
|
|
598
|
-
getPopupContainer:
|
|
599
|
-
onPopupVisibleChange:
|
|
600
|
-
afterPopupVisibleChange:
|
|
600
|
+
getPopupContainer: E,
|
|
601
|
+
onPopupVisibleChange: g,
|
|
602
|
+
afterPopupVisibleChange: u,
|
|
601
603
|
popupTransitionName: h,
|
|
602
|
-
popupAnimation:
|
|
604
|
+
popupAnimation: $,
|
|
603
605
|
popupMotion: b,
|
|
604
|
-
defaultPopupVisible:
|
|
606
|
+
defaultPopupVisible: O,
|
|
605
607
|
autoDestroy: T,
|
|
606
|
-
mouseLeaveDelay:
|
|
607
|
-
popupStyle: se(se({}, d),
|
|
608
|
+
mouseLeaveDelay: m,
|
|
609
|
+
popupStyle: se(se({}, d), L == null ? void 0 : L.root),
|
|
608
610
|
mouseEnterDelay: s,
|
|
609
|
-
arrow:
|
|
610
|
-
},
|
|
611
|
+
arrow: B
|
|
612
|
+
}, A), R());
|
|
611
613
|
};
|
|
612
|
-
const
|
|
613
|
-
function
|
|
614
|
+
const mn = /* @__PURE__ */ We(un);
|
|
615
|
+
function Qe(e) {
|
|
614
616
|
const {
|
|
615
617
|
sizePopupArrow: t,
|
|
616
618
|
borderRadiusXS: o,
|
|
617
619
|
borderRadiusOuter: n
|
|
618
|
-
} = e, r = t / 2, a = 0, i = r, s = n * 1 / Math.sqrt(2), c = r - n * (1 - 1 / Math.sqrt(2)),
|
|
620
|
+
} = e, r = t / 2, a = 0, i = r, s = n * 1 / Math.sqrt(2), c = r - n * (1 - 1 / Math.sqrt(2)), m = r - o * (1 / Math.sqrt(2)), d = n * (Math.sqrt(2) - 1) + o * (1 / Math.sqrt(2)), f = 2 * r - m, p = d, v = 2 * r - s, g = c, u = 2 * r - a, h = i, $ = 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%)`, N = `path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${c} L ${m} ${d} A ${o} ${o} 0 0 1 ${f} ${p} L ${v} ${g} A ${n} ${n} 0 0 0 ${u} ${h} Z')`;
|
|
619
621
|
return {
|
|
620
|
-
arrowShadowWidth:
|
|
621
|
-
arrowPath:
|
|
622
|
+
arrowShadowWidth: $,
|
|
623
|
+
arrowPath: N,
|
|
622
624
|
arrowPolygon: S
|
|
623
625
|
};
|
|
624
626
|
}
|
|
625
|
-
const
|
|
627
|
+
const pn = (e, t, o) => {
|
|
626
628
|
const {
|
|
627
629
|
sizePopupArrow: n,
|
|
628
630
|
arrowPolygon: r,
|
|
@@ -659,7 +661,7 @@ const cn = (e, t, o) => {
|
|
|
659
661
|
margin: "auto",
|
|
660
662
|
borderRadius: {
|
|
661
663
|
_skip_check_: !0,
|
|
662
|
-
value: `0 0 ${
|
|
664
|
+
value: `0 0 ${I(s)} 0`
|
|
663
665
|
},
|
|
664
666
|
transform: "translateY(50%) rotate(-135deg)",
|
|
665
667
|
boxShadow: o,
|
|
@@ -667,21 +669,21 @@ const cn = (e, t, o) => {
|
|
|
667
669
|
background: "transparent"
|
|
668
670
|
}
|
|
669
671
|
};
|
|
670
|
-
},
|
|
671
|
-
function
|
|
672
|
+
}, jt = 8;
|
|
673
|
+
function Re(e) {
|
|
672
674
|
const {
|
|
673
675
|
contentRadius: t,
|
|
674
676
|
limitVerticalRadius: o
|
|
675
677
|
} = e, n = t > 12 ? t + 2 : 12;
|
|
676
678
|
return {
|
|
677
679
|
arrowOffsetHorizontal: n,
|
|
678
|
-
arrowOffsetVertical: o ?
|
|
680
|
+
arrowOffsetVertical: o ? jt : n
|
|
679
681
|
};
|
|
680
682
|
}
|
|
681
|
-
function
|
|
683
|
+
function xe(e, t) {
|
|
682
684
|
return e ? t : {};
|
|
683
685
|
}
|
|
684
|
-
function
|
|
686
|
+
function Je(e, t, o) {
|
|
685
687
|
const {
|
|
686
688
|
componentCls: n,
|
|
687
689
|
boxShadowPopoverArrow: r,
|
|
@@ -703,12 +705,12 @@ function Ze(e, t, o) {
|
|
|
703
705
|
position: "absolute",
|
|
704
706
|
zIndex: 1,
|
|
705
707
|
display: "block"
|
|
706
|
-
},
|
|
708
|
+
}, pn(e, t, r)), {
|
|
707
709
|
"&:before": {
|
|
708
710
|
background: t
|
|
709
711
|
}
|
|
710
712
|
})]
|
|
711
|
-
},
|
|
713
|
+
}, xe(!!c.top, {
|
|
712
714
|
[[`&-placement-top > ${n}-arrow`, `&-placement-topLeft > ${n}-arrow`, `&-placement-topRight > ${n}-arrow`].join(",")]: {
|
|
713
715
|
bottom: s,
|
|
714
716
|
transform: "translateY(100%) rotate(180deg)"
|
|
@@ -730,7 +732,7 @@ function Ze(e, t, o) {
|
|
|
730
732
|
}
|
|
731
733
|
},
|
|
732
734
|
"&-placement-topRight": {
|
|
733
|
-
"--arrow-offset-horizontal": `calc(100% - ${
|
|
735
|
+
"--arrow-offset-horizontal": `calc(100% - ${I(i)})`,
|
|
734
736
|
[`> ${n}-arrow`]: {
|
|
735
737
|
right: {
|
|
736
738
|
_skip_check_: !0,
|
|
@@ -738,7 +740,7 @@ function Ze(e, t, o) {
|
|
|
738
740
|
}
|
|
739
741
|
}
|
|
740
742
|
}
|
|
741
|
-
})),
|
|
743
|
+
})), xe(!!c.bottom, {
|
|
742
744
|
[[`&-placement-bottom > ${n}-arrow`, `&-placement-bottomLeft > ${n}-arrow`, `&-placement-bottomRight > ${n}-arrow`].join(",")]: {
|
|
743
745
|
top: s,
|
|
744
746
|
transform: "translateY(-100%)"
|
|
@@ -760,7 +762,7 @@ function Ze(e, t, o) {
|
|
|
760
762
|
}
|
|
761
763
|
},
|
|
762
764
|
"&-placement-bottomRight": {
|
|
763
|
-
"--arrow-offset-horizontal": `calc(100% - ${
|
|
765
|
+
"--arrow-offset-horizontal": `calc(100% - ${I(i)})`,
|
|
764
766
|
[`> ${n}-arrow`]: {
|
|
765
767
|
right: {
|
|
766
768
|
_skip_check_: !0,
|
|
@@ -768,7 +770,7 @@ function Ze(e, t, o) {
|
|
|
768
770
|
}
|
|
769
771
|
}
|
|
770
772
|
}
|
|
771
|
-
})),
|
|
773
|
+
})), xe(!!c.left, {
|
|
772
774
|
[[`&-placement-left > ${n}-arrow`, `&-placement-leftTop > ${n}-arrow`, `&-placement-leftBottom > ${n}-arrow`].join(",")]: {
|
|
773
775
|
right: {
|
|
774
776
|
_skip_check_: !0,
|
|
@@ -789,7 +791,7 @@ function Ze(e, t, o) {
|
|
|
789
791
|
[`&-placement-leftBottom > ${n}-arrow`]: {
|
|
790
792
|
bottom: a
|
|
791
793
|
}
|
|
792
|
-
})),
|
|
794
|
+
})), xe(!!c.right, {
|
|
793
795
|
[[`&-placement-right > ${n}-arrow`, `&-placement-rightTop > ${n}-arrow`, `&-placement-rightBottom > ${n}-arrow`].join(",")]: {
|
|
794
796
|
left: {
|
|
795
797
|
_skip_check_: !0,
|
|
@@ -813,7 +815,7 @@ function Ze(e, t, o) {
|
|
|
813
815
|
}))
|
|
814
816
|
};
|
|
815
817
|
}
|
|
816
|
-
function
|
|
818
|
+
function gn(e, t, o, n) {
|
|
817
819
|
if (n === !1)
|
|
818
820
|
return {
|
|
819
821
|
adjustX: !1,
|
|
@@ -833,7 +835,7 @@ function dn(e, t, o, n) {
|
|
|
833
835
|
const i = Object.assign(Object.assign({}, a), r);
|
|
834
836
|
return i.shiftX || (i.adjustX = !0), i.shiftY || (i.adjustY = !0), i;
|
|
835
837
|
}
|
|
836
|
-
const
|
|
838
|
+
const ut = {
|
|
837
839
|
left: {
|
|
838
840
|
points: ["cr", "cl"]
|
|
839
841
|
},
|
|
@@ -870,7 +872,7 @@ const ct = {
|
|
|
870
872
|
leftBottom: {
|
|
871
873
|
points: ["br", "bl"]
|
|
872
874
|
}
|
|
873
|
-
},
|
|
875
|
+
}, fn = {
|
|
874
876
|
topLeft: {
|
|
875
877
|
points: ["bl", "tc"]
|
|
876
878
|
},
|
|
@@ -895,8 +897,8 @@ const ct = {
|
|
|
895
897
|
leftBottom: {
|
|
896
898
|
points: ["br", "cl"]
|
|
897
899
|
}
|
|
898
|
-
},
|
|
899
|
-
function
|
|
900
|
+
}, vn = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]);
|
|
901
|
+
function Tt(e) {
|
|
900
902
|
const {
|
|
901
903
|
arrowWidth: t,
|
|
902
904
|
autoAdjustOverflow: o,
|
|
@@ -905,12 +907,12 @@ function Pt(e) {
|
|
|
905
907
|
borderRadius: a,
|
|
906
908
|
visibleFirst: i
|
|
907
909
|
} = e, s = t / 2, c = {};
|
|
908
|
-
return Object.keys(
|
|
909
|
-
const d = n &&
|
|
910
|
+
return Object.keys(ut).forEach((m) => {
|
|
911
|
+
const d = n && fn[m] || ut[m], f = Object.assign(Object.assign({}, d), {
|
|
910
912
|
offset: [0, 0],
|
|
911
913
|
dynamicInset: !0
|
|
912
914
|
});
|
|
913
|
-
switch (c[
|
|
915
|
+
switch (c[m] = f, vn.has(m) && (f.autoArrow = !1), m) {
|
|
914
916
|
case "top":
|
|
915
917
|
case "topLeft":
|
|
916
918
|
case "topRight":
|
|
@@ -932,33 +934,33 @@ function Pt(e) {
|
|
|
932
934
|
f.offset[0] = s + r;
|
|
933
935
|
break;
|
|
934
936
|
}
|
|
935
|
-
const
|
|
937
|
+
const p = Re({
|
|
936
938
|
contentRadius: a,
|
|
937
939
|
limitVerticalRadius: !0
|
|
938
940
|
});
|
|
939
941
|
if (n)
|
|
940
|
-
switch (
|
|
942
|
+
switch (m) {
|
|
941
943
|
case "topLeft":
|
|
942
944
|
case "bottomLeft":
|
|
943
|
-
f.offset[0] = -
|
|
945
|
+
f.offset[0] = -p.arrowOffsetHorizontal - s;
|
|
944
946
|
break;
|
|
945
947
|
case "topRight":
|
|
946
948
|
case "bottomRight":
|
|
947
|
-
f.offset[0] =
|
|
949
|
+
f.offset[0] = p.arrowOffsetHorizontal + s;
|
|
948
950
|
break;
|
|
949
951
|
case "leftTop":
|
|
950
952
|
case "rightTop":
|
|
951
|
-
f.offset[1] = -
|
|
953
|
+
f.offset[1] = -p.arrowOffsetHorizontal * 2 + s;
|
|
952
954
|
break;
|
|
953
955
|
case "leftBottom":
|
|
954
956
|
case "rightBottom":
|
|
955
|
-
f.offset[1] =
|
|
957
|
+
f.offset[1] = p.arrowOffsetHorizontal * 2 - s;
|
|
956
958
|
break;
|
|
957
959
|
}
|
|
958
|
-
f.overflow =
|
|
960
|
+
f.overflow = gn(m, p, t, o), i && (f.htmlRegion = "visibleFirst");
|
|
959
961
|
}), c;
|
|
960
962
|
}
|
|
961
|
-
const
|
|
963
|
+
const bn = (e) => {
|
|
962
964
|
const {
|
|
963
965
|
calc: t,
|
|
964
966
|
componentCls: o,
|
|
@@ -969,15 +971,15 @@ const pn = (e) => {
|
|
|
969
971
|
tooltipBorderRadius: i,
|
|
970
972
|
zIndexPopup: s,
|
|
971
973
|
controlHeight: c,
|
|
972
|
-
boxShadowSecondary:
|
|
974
|
+
boxShadowSecondary: m,
|
|
973
975
|
paddingSM: d,
|
|
974
976
|
paddingXS: f,
|
|
975
|
-
arrowOffsetHorizontal:
|
|
977
|
+
arrowOffsetHorizontal: p,
|
|
976
978
|
sizePopupArrow: v
|
|
977
|
-
} = e,
|
|
979
|
+
} = e, g = t(i).add(v).add(p).equal(), u = t(i).mul(2).add(v).equal();
|
|
978
980
|
return [
|
|
979
981
|
{
|
|
980
|
-
[o]: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
982
|
+
[o]: Object.assign(Object.assign(Object.assign(Object.assign({}, be(e)), {
|
|
981
983
|
position: "absolute",
|
|
982
984
|
zIndex: s,
|
|
983
985
|
display: "block",
|
|
@@ -993,46 +995,43 @@ const pn = (e) => {
|
|
|
993
995
|
"--antd-arrow-background-color": a,
|
|
994
996
|
// Wrapper for the tooltip content
|
|
995
997
|
[`${o}-inner`]: {
|
|
996
|
-
minWidth:
|
|
998
|
+
minWidth: u,
|
|
997
999
|
minHeight: c,
|
|
998
|
-
padding: `${
|
|
1000
|
+
padding: `${I(e.calc(d).div(2).equal())} ${I(f)}`,
|
|
999
1001
|
color: r,
|
|
1000
1002
|
textAlign: "start",
|
|
1001
1003
|
textDecoration: "none",
|
|
1002
1004
|
wordWrap: "break-word",
|
|
1003
1005
|
backgroundColor: a,
|
|
1004
1006
|
borderRadius: i,
|
|
1005
|
-
boxShadow:
|
|
1007
|
+
boxShadow: m,
|
|
1006
1008
|
boxSizing: "border-box"
|
|
1007
1009
|
},
|
|
1008
1010
|
// Align placement should have another min width
|
|
1009
1011
|
[["&-placement-topLeft", "&-placement-topRight", "&-placement-bottomLeft", "&-placement-bottomRight"].join(",")]: {
|
|
1010
|
-
minWidth:
|
|
1012
|
+
minWidth: g
|
|
1011
1013
|
},
|
|
1012
1014
|
// Limit left and right placement radius
|
|
1013
1015
|
[["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: {
|
|
1014
1016
|
[`${o}-inner`]: {
|
|
1015
|
-
borderRadius: e.min(i,
|
|
1017
|
+
borderRadius: e.min(i, jt)
|
|
1016
1018
|
}
|
|
1017
1019
|
},
|
|
1018
1020
|
[`${o}-content`]: {
|
|
1019
1021
|
position: "relative"
|
|
1020
1022
|
}
|
|
1021
|
-
}),
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
[`${o}-arrow`]: {
|
|
1031
|
-
"--antd-arrow-background-color": b
|
|
1032
|
-
}
|
|
1023
|
+
}), Lo(e, (h, {
|
|
1024
|
+
darkColor: $
|
|
1025
|
+
}) => ({
|
|
1026
|
+
[`&${o}-${h}`]: {
|
|
1027
|
+
[`${o}-inner`]: {
|
|
1028
|
+
backgroundColor: $
|
|
1029
|
+
},
|
|
1030
|
+
[`${o}-arrow`]: {
|
|
1031
|
+
"--antd-arrow-background-color": $
|
|
1033
1032
|
}
|
|
1034
|
-
}
|
|
1035
|
-
})), {
|
|
1033
|
+
}
|
|
1034
|
+
}))), {
|
|
1036
1035
|
// RTL
|
|
1037
1036
|
"&-rtl": {
|
|
1038
1037
|
direction: "rtl"
|
|
@@ -1040,7 +1039,7 @@ const pn = (e) => {
|
|
|
1040
1039
|
})
|
|
1041
1040
|
},
|
|
1042
1041
|
// Arrow Style
|
|
1043
|
-
|
|
1042
|
+
Je(e, "var(--antd-arrow-background-color)"),
|
|
1044
1043
|
// Pure Render
|
|
1045
1044
|
{
|
|
1046
1045
|
[`${o}-pure`]: {
|
|
@@ -1050,39 +1049,36 @@ const pn = (e) => {
|
|
|
1050
1049
|
}
|
|
1051
1050
|
}
|
|
1052
1051
|
];
|
|
1053
|
-
},
|
|
1052
|
+
}, hn = (e) => Object.assign(Object.assign({
|
|
1054
1053
|
zIndexPopup: e.zIndexPopupBase + 70
|
|
1055
|
-
},
|
|
1054
|
+
}, Re({
|
|
1056
1055
|
contentRadius: e.borderRadius,
|
|
1057
1056
|
limitVerticalRadius: !0
|
|
1058
|
-
})),
|
|
1057
|
+
})), Qe(ce(e, {
|
|
1059
1058
|
borderRadiusOuter: Math.min(e.borderRadiusOuter, 4)
|
|
1060
|
-
}))),
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
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);
|
|
1059
|
+
}))), _t = (e, t = !0) => de("Tooltip", (n) => {
|
|
1060
|
+
const {
|
|
1061
|
+
borderRadius: r,
|
|
1062
|
+
colorTextLightSolid: a,
|
|
1063
|
+
colorBgSpotlight: i
|
|
1064
|
+
} = n, s = ce(n, {
|
|
1065
|
+
// default variables
|
|
1066
|
+
tooltipMaxWidth: 250,
|
|
1067
|
+
tooltipColor: a,
|
|
1068
|
+
tooltipBorderRadius: r,
|
|
1069
|
+
tooltipBg: i
|
|
1070
|
+
});
|
|
1071
|
+
return [bn(s), _e(n, "zoom-big-fast")];
|
|
1072
|
+
}, hn, {
|
|
1073
|
+
resetStyle: !1,
|
|
1074
|
+
// Popover use Tooltip as internal component. We do not need to handle this.
|
|
1075
|
+
injectStyle: t
|
|
1076
|
+
})(e), $n = ve.map((e) => `${e}-inverse`);
|
|
1077
|
+
function yn(e, t = !0) {
|
|
1078
|
+
return t ? [].concat(it($n), it(ve)).includes(e) : ve.includes(e);
|
|
1083
1079
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const o =
|
|
1080
|
+
function Rt(e, t) {
|
|
1081
|
+
const o = yn(t), n = _({
|
|
1086
1082
|
[`${e}-${t}`]: t && o
|
|
1087
1083
|
}), r = {}, a = {};
|
|
1088
1084
|
return t && !o && (r.background = t, a["--antd-arrow-background-color"] = t), {
|
|
@@ -1091,7 +1087,7 @@ function zt(e, t) {
|
|
|
1091
1087
|
arrowStyle: a
|
|
1092
1088
|
};
|
|
1093
1089
|
}
|
|
1094
|
-
const
|
|
1090
|
+
const Cn = (e) => {
|
|
1095
1091
|
const {
|
|
1096
1092
|
prefixCls: t,
|
|
1097
1093
|
className: o,
|
|
@@ -1101,26 +1097,26 @@ const bn = (e) => {
|
|
|
1101
1097
|
overlayInnerStyle: i
|
|
1102
1098
|
} = e, {
|
|
1103
1099
|
getPrefixCls: s
|
|
1104
|
-
} = l.useContext(
|
|
1105
|
-
return
|
|
1106
|
-
className:
|
|
1100
|
+
} = l.useContext(re), c = s("tooltip", t), [m, d, f] = _t(c), p = Rt(c, a), v = p.arrowStyle, g = Object.assign(Object.assign({}, i), p.overlayStyle), u = _(d, f, c, `${c}-pure`, `${c}-placement-${n}`, o, p.className);
|
|
1101
|
+
return m(/* @__PURE__ */ l.createElement("div", {
|
|
1102
|
+
className: u,
|
|
1107
1103
|
style: v
|
|
1108
1104
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
1109
1105
|
className: `${c}-arrow`
|
|
1110
|
-
}), /* @__PURE__ */ l.createElement(
|
|
1106
|
+
}), /* @__PURE__ */ l.createElement(Ze, Object.assign({}, e, {
|
|
1111
1107
|
className: d,
|
|
1112
1108
|
prefixCls: c,
|
|
1113
|
-
overlayInnerStyle:
|
|
1109
|
+
overlayInnerStyle: g
|
|
1114
1110
|
}), r)));
|
|
1115
1111
|
};
|
|
1116
|
-
var
|
|
1112
|
+
var wn = function(e, t) {
|
|
1117
1113
|
var o = {};
|
|
1118
1114
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1119
1115
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1120
1116
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1121
1117
|
return o;
|
|
1122
1118
|
};
|
|
1123
|
-
const
|
|
1119
|
+
const xn = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
1124
1120
|
var o, n;
|
|
1125
1121
|
const {
|
|
1126
1122
|
prefixCls: r,
|
|
@@ -1128,116 +1124,117 @@ const $n = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
1128
1124
|
getTooltipContainer: i,
|
|
1129
1125
|
color: s,
|
|
1130
1126
|
overlayInnerStyle: c,
|
|
1131
|
-
children:
|
|
1127
|
+
children: m,
|
|
1132
1128
|
afterOpenChange: d,
|
|
1133
1129
|
afterVisibleChange: f,
|
|
1134
|
-
destroyTooltipOnHide:
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1130
|
+
destroyTooltipOnHide: p,
|
|
1131
|
+
destroyOnHidden: v,
|
|
1132
|
+
arrow: g = !0,
|
|
1133
|
+
title: u,
|
|
1134
|
+
overlay: h,
|
|
1135
|
+
builtinPlacements: $,
|
|
1136
|
+
arrowPointAtCenter: b = !1,
|
|
1137
|
+
autoAdjustOverflow: S = !0,
|
|
1138
|
+
motion: N,
|
|
1139
|
+
getPopupContainer: y,
|
|
1140
|
+
placement: M = "top",
|
|
1141
|
+
mouseEnterDelay: j = 0.1,
|
|
1142
|
+
mouseLeaveDelay: T = 0.1,
|
|
1143
|
+
overlayStyle: O,
|
|
1144
|
+
rootClassName: E,
|
|
1145
|
+
overlayClassName: H,
|
|
1146
|
+
styles: x,
|
|
1147
|
+
classNames: C
|
|
1148
|
+
} = e, w = wn(e, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), B = !!g, [, P] = Fe(), {
|
|
1149
|
+
getPopupContainer: L,
|
|
1150
|
+
getPrefixCls: z,
|
|
1151
|
+
direction: F,
|
|
1152
|
+
className: D,
|
|
1153
|
+
style: A,
|
|
1154
|
+
classNames: k,
|
|
1155
|
+
styles: R
|
|
1156
|
+
} = Ge("tooltip"), W = he("Tooltip"), G = l.useRef(null), q = () => {
|
|
1160
1157
|
var K;
|
|
1161
1158
|
(K = G.current) === null || K === void 0 || K.forceAlign();
|
|
1162
1159
|
};
|
|
1163
1160
|
l.useImperativeHandle(t, () => {
|
|
1164
|
-
var K,
|
|
1161
|
+
var K, ee;
|
|
1165
1162
|
return {
|
|
1166
1163
|
forceAlign: q,
|
|
1167
1164
|
forcePopupAlign: () => {
|
|
1168
1165
|
W.deprecated(!1, "forcePopupAlign", "forceAlign"), q();
|
|
1169
1166
|
},
|
|
1170
1167
|
nativeElement: (K = G.current) === null || K === void 0 ? void 0 : K.nativeElement,
|
|
1171
|
-
popupElement: (
|
|
1168
|
+
popupElement: (ee = G.current) === null || ee === void 0 ? void 0 : ee.popupElement
|
|
1172
1169
|
};
|
|
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) => {
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
const [Z, ee] = Fe(!1, {
|
|
1170
|
+
}), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["destroyTooltipOnHide", "destroyOnHidden"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach(([K, ee]) => {
|
|
1171
|
+
W.deprecated(!(K in e), K, ee);
|
|
1172
|
+
}), process.env.NODE_ENV !== "production" && W(!p || typeof p == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && W(!g || typeof g == "boolean" || !("arrowPointAtCenter" in g), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
|
|
1173
|
+
const [Q, X] = Ye(!1, {
|
|
1178
1174
|
value: (o = e.open) !== null && o !== void 0 ? o : e.visible,
|
|
1179
1175
|
defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible
|
|
1180
|
-
}),
|
|
1181
|
-
var
|
|
1182
|
-
|
|
1183
|
-
},
|
|
1184
|
-
var K,
|
|
1185
|
-
let
|
|
1186
|
-
return typeof
|
|
1187
|
-
arrowPointAtCenter:
|
|
1188
|
-
autoAdjustOverflow:
|
|
1189
|
-
arrowWidth:
|
|
1190
|
-
borderRadius:
|
|
1191
|
-
offset:
|
|
1176
|
+
}), Z = !u && !h && u !== 0, J = (K) => {
|
|
1177
|
+
var ee, me;
|
|
1178
|
+
X(Z ? !1 : K), Z || ((ee = e.onOpenChange) === null || ee === void 0 || ee.call(e, K), (me = e.onVisibleChange) === null || me === void 0 || me.call(e, K));
|
|
1179
|
+
}, V = l.useMemo(() => {
|
|
1180
|
+
var K, ee;
|
|
1181
|
+
let me = b;
|
|
1182
|
+
return typeof g == "object" && (me = (ee = (K = g.pointAtCenter) !== null && K !== void 0 ? K : g.arrowPointAtCenter) !== null && ee !== void 0 ? ee : b), $ || Tt({
|
|
1183
|
+
arrowPointAtCenter: me,
|
|
1184
|
+
autoAdjustOverflow: S,
|
|
1185
|
+
arrowWidth: B ? P.sizePopupArrow : 0,
|
|
1186
|
+
borderRadius: P.borderRadius,
|
|
1187
|
+
offset: P.marginXXS,
|
|
1192
1188
|
visibleFirst: !0
|
|
1193
1189
|
});
|
|
1194
|
-
}, [
|
|
1190
|
+
}, [b, g, $, P]), Y = l.useMemo(() => u === 0 ? u : h || u || "", [h, u]), ne = /* @__PURE__ */ l.createElement(It, {
|
|
1195
1191
|
space: !0
|
|
1196
|
-
}, typeof
|
|
1197
|
-
let
|
|
1198
|
-
!("open" in e) && !("visible" in e) &&
|
|
1199
|
-
const
|
|
1200
|
-
[`${
|
|
1201
|
-
},
|
|
1202
|
-
zIndex:
|
|
1203
|
-
showArrow:
|
|
1204
|
-
placement:
|
|
1205
|
-
mouseEnterDelay:
|
|
1206
|
-
mouseLeaveDelay:
|
|
1207
|
-
prefixCls:
|
|
1192
|
+
}, typeof Y == "function" ? Y() : Y), ie = z("tooltip", r), Ce = z(), He = e["data-popover-inject"];
|
|
1193
|
+
let le = Q;
|
|
1194
|
+
!("open" in e) && !("visible" in e) && Z && (le = !1);
|
|
1195
|
+
const U = /* @__PURE__ */ l.isValidElement(m) && !Ro(m) ? m : /* @__PURE__ */ l.createElement("span", null, m), oe = U.props, De = !oe.className || typeof oe.className == "string" ? _(oe.className, a || `${ie}-open`) : oe.className, [Ut, qt, Kt] = _t(ie, !He), Ae = Rt(ie, s), Zt = Ae.arrowStyle, Qt = _(H, {
|
|
1196
|
+
[`${ie}-rtl`]: F === "rtl"
|
|
1197
|
+
}, Ae.className, E, qt, Kt, D, k.root, C == null ? void 0 : C.root), Jt = _(k.body, C == null ? void 0 : C.body), [eo, to] = qe("Tooltip", w.zIndex), oo = /* @__PURE__ */ l.createElement(mn, Object.assign({}, w, {
|
|
1198
|
+
zIndex: eo,
|
|
1199
|
+
showArrow: B,
|
|
1200
|
+
placement: M,
|
|
1201
|
+
mouseEnterDelay: j,
|
|
1202
|
+
mouseLeaveDelay: T,
|
|
1203
|
+
prefixCls: ie,
|
|
1208
1204
|
classNames: {
|
|
1209
|
-
root:
|
|
1210
|
-
body:
|
|
1205
|
+
root: Qt,
|
|
1206
|
+
body: Jt
|
|
1211
1207
|
},
|
|
1212
1208
|
styles: {
|
|
1213
|
-
root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
1214
|
-
body: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
1209
|
+
root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Zt), R.root), A), O), x == null ? void 0 : x.root),
|
|
1210
|
+
body: Object.assign(Object.assign(Object.assign(Object.assign({}, R.body), c), x == null ? void 0 : x.body), Ae.overlayStyle)
|
|
1215
1211
|
},
|
|
1216
|
-
getTooltipContainer:
|
|
1212
|
+
getTooltipContainer: y || i || L,
|
|
1217
1213
|
ref: G,
|
|
1218
|
-
builtinPlacements:
|
|
1219
|
-
overlay:
|
|
1220
|
-
visible:
|
|
1221
|
-
onVisibleChange:
|
|
1214
|
+
builtinPlacements: V,
|
|
1215
|
+
overlay: ne,
|
|
1216
|
+
visible: le,
|
|
1217
|
+
onVisibleChange: J,
|
|
1222
1218
|
afterVisibleChange: d ?? f,
|
|
1223
1219
|
arrowContent: /* @__PURE__ */ l.createElement("span", {
|
|
1224
|
-
className: `${
|
|
1220
|
+
className: `${ie}-arrow-content`
|
|
1225
1221
|
}),
|
|
1226
1222
|
motion: {
|
|
1227
|
-
motionName:
|
|
1223
|
+
motionName: xt(Ce, "zoom-big-fast", e.transitionName),
|
|
1228
1224
|
motionDeadline: 1e3
|
|
1229
1225
|
},
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1226
|
+
// TODO: In the future, destroyTooltipOnHide in rc-tooltip needs to be upgrade to destroyOnHidden
|
|
1227
|
+
destroyTooltipOnHide: v ?? !!p
|
|
1228
|
+
}), le ? ue(U, {
|
|
1229
|
+
className: De
|
|
1230
|
+
}) : U);
|
|
1231
|
+
return Ut(/* @__PURE__ */ l.createElement(Pt.Provider, {
|
|
1232
|
+
value: to
|
|
1233
|
+
}, oo));
|
|
1234
|
+
}), Me = xn;
|
|
1235
|
+
process.env.NODE_ENV !== "production" && (Me.displayName = "Tooltip");
|
|
1236
|
+
Me._InternalPanelDoNotUseOrYouWillBeFired = Cn;
|
|
1237
|
+
const Sn = (e) => {
|
|
1241
1238
|
const {
|
|
1242
1239
|
componentCls: t,
|
|
1243
1240
|
popoverColor: o,
|
|
@@ -1247,17 +1244,17 @@ const yn = (e) => {
|
|
|
1247
1244
|
boxShadowSecondary: i,
|
|
1248
1245
|
colorTextHeading: s,
|
|
1249
1246
|
borderRadiusLG: c,
|
|
1250
|
-
zIndexPopup:
|
|
1247
|
+
zIndexPopup: m,
|
|
1251
1248
|
titleMarginBottom: d,
|
|
1252
1249
|
colorBgElevated: f,
|
|
1253
|
-
popoverBg:
|
|
1250
|
+
popoverBg: p,
|
|
1254
1251
|
titleBorderBottom: v,
|
|
1255
|
-
innerContentPadding:
|
|
1256
|
-
titlePadding:
|
|
1252
|
+
innerContentPadding: g,
|
|
1253
|
+
titlePadding: u
|
|
1257
1254
|
} = e;
|
|
1258
1255
|
return [
|
|
1259
1256
|
{
|
|
1260
|
-
[t]: Object.assign(Object.assign({},
|
|
1257
|
+
[t]: Object.assign(Object.assign({}, be(e)), {
|
|
1261
1258
|
position: "absolute",
|
|
1262
1259
|
top: 0,
|
|
1263
1260
|
// use `left` to fix https://github.com/ant-design/ant-design/issues/39195
|
|
@@ -1265,7 +1262,7 @@ const yn = (e) => {
|
|
|
1265
1262
|
_skip_check_: !0,
|
|
1266
1263
|
value: 0
|
|
1267
1264
|
},
|
|
1268
|
-
zIndex:
|
|
1265
|
+
zIndex: m,
|
|
1269
1266
|
fontWeight: "normal",
|
|
1270
1267
|
whiteSpace: "normal",
|
|
1271
1268
|
textAlign: "start",
|
|
@@ -1287,7 +1284,7 @@ const yn = (e) => {
|
|
|
1287
1284
|
position: "relative"
|
|
1288
1285
|
},
|
|
1289
1286
|
[`${t}-inner`]: {
|
|
1290
|
-
backgroundColor:
|
|
1287
|
+
backgroundColor: p,
|
|
1291
1288
|
backgroundClip: "padding-box",
|
|
1292
1289
|
borderRadius: c,
|
|
1293
1290
|
boxShadow: i,
|
|
@@ -1299,16 +1296,16 @@ const yn = (e) => {
|
|
|
1299
1296
|
color: s,
|
|
1300
1297
|
fontWeight: r,
|
|
1301
1298
|
borderBottom: v,
|
|
1302
|
-
padding:
|
|
1299
|
+
padding: u
|
|
1303
1300
|
},
|
|
1304
1301
|
[`${t}-inner-content`]: {
|
|
1305
1302
|
color: o,
|
|
1306
|
-
padding:
|
|
1303
|
+
padding: g
|
|
1307
1304
|
}
|
|
1308
1305
|
})
|
|
1309
1306
|
},
|
|
1310
1307
|
// Arrow Style
|
|
1311
|
-
|
|
1308
|
+
Je(e, "var(--antd-arrow-background-color)"),
|
|
1312
1309
|
// Pure Render
|
|
1313
1310
|
{
|
|
1314
1311
|
[`${t}-pure`]: {
|
|
@@ -1322,12 +1319,12 @@ const yn = (e) => {
|
|
|
1322
1319
|
}
|
|
1323
1320
|
}
|
|
1324
1321
|
];
|
|
1325
|
-
},
|
|
1322
|
+
}, On = (e) => {
|
|
1326
1323
|
const {
|
|
1327
1324
|
componentCls: t
|
|
1328
1325
|
} = e;
|
|
1329
1326
|
return {
|
|
1330
|
-
[t]:
|
|
1327
|
+
[t]: ve.map((o) => {
|
|
1331
1328
|
const n = e[`${o}6`];
|
|
1332
1329
|
return {
|
|
1333
1330
|
[`&${t}-${o}`]: {
|
|
@@ -1342,7 +1339,7 @@ const yn = (e) => {
|
|
|
1342
1339
|
};
|
|
1343
1340
|
})
|
|
1344
1341
|
};
|
|
1345
|
-
},
|
|
1342
|
+
}, In = (e) => {
|
|
1346
1343
|
const {
|
|
1347
1344
|
lineWidth: t,
|
|
1348
1345
|
controlHeight: o,
|
|
@@ -1352,25 +1349,25 @@ const yn = (e) => {
|
|
|
1352
1349
|
zIndexPopupBase: i,
|
|
1353
1350
|
borderRadiusLG: s,
|
|
1354
1351
|
marginXS: c,
|
|
1355
|
-
lineType:
|
|
1352
|
+
lineType: m,
|
|
1356
1353
|
colorSplit: d,
|
|
1357
1354
|
paddingSM: f
|
|
1358
|
-
} = e,
|
|
1355
|
+
} = e, p = o - n, v = p / 2, g = p / 2 - t, u = r;
|
|
1359
1356
|
return Object.assign(Object.assign(Object.assign({
|
|
1360
1357
|
titleMinWidth: 177,
|
|
1361
1358
|
zIndexPopup: i + 30
|
|
1362
|
-
},
|
|
1359
|
+
}, Qe(e)), Re({
|
|
1363
1360
|
contentRadius: s,
|
|
1364
1361
|
limitVerticalRadius: !0
|
|
1365
1362
|
})), {
|
|
1366
1363
|
// internal
|
|
1367
1364
|
innerPadding: a ? 0 : 12,
|
|
1368
1365
|
titleMarginBottom: a ? 0 : c,
|
|
1369
|
-
titlePadding: a ? `${v}px ${
|
|
1370
|
-
titleBorderBottom: a ? `${t}px ${
|
|
1371
|
-
innerContentPadding: a ? `${f}px ${
|
|
1366
|
+
titlePadding: a ? `${v}px ${u}px ${g}px` : 0,
|
|
1367
|
+
titleBorderBottom: a ? `${t}px ${m} ${d}` : "none",
|
|
1368
|
+
innerContentPadding: a ? `${f}px ${u}px` : 0
|
|
1372
1369
|
});
|
|
1373
|
-
},
|
|
1370
|
+
}, Mt = de("Popover", (e) => {
|
|
1374
1371
|
const {
|
|
1375
1372
|
colorBgElevated: t,
|
|
1376
1373
|
colorText: o
|
|
@@ -1378,30 +1375,27 @@ const yn = (e) => {
|
|
|
1378
1375
|
popoverBg: t,
|
|
1379
1376
|
popoverColor: o
|
|
1380
1377
|
});
|
|
1381
|
-
return [
|
|
1382
|
-
},
|
|
1378
|
+
return [Sn(n), On(n), _e(n, "zoom-big")];
|
|
1379
|
+
}, In, {
|
|
1383
1380
|
resetStyle: !1,
|
|
1384
1381
|
deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
|
|
1385
1382
|
});
|
|
1386
|
-
var
|
|
1383
|
+
var Pn = function(e, t) {
|
|
1387
1384
|
var o = {};
|
|
1388
1385
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1389
1386
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1390
1387
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1391
1388
|
return o;
|
|
1392
1389
|
};
|
|
1393
|
-
const
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
className: `${n}-inner-content`
|
|
1403
|
-
}, o));
|
|
1404
|
-
}, Sn = (e) => {
|
|
1390
|
+
const Ht = ({
|
|
1391
|
+
title: e,
|
|
1392
|
+
content: t,
|
|
1393
|
+
prefixCls: o
|
|
1394
|
+
}) => !e && !t ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, e && /* @__PURE__ */ l.createElement("div", {
|
|
1395
|
+
className: `${o}-title`
|
|
1396
|
+
}, e), t && /* @__PURE__ */ l.createElement("div", {
|
|
1397
|
+
className: `${o}-inner-content`
|
|
1398
|
+
}, t)), En = (e) => {
|
|
1405
1399
|
const {
|
|
1406
1400
|
hashId: t,
|
|
1407
1401
|
prefixCls: o,
|
|
@@ -1411,41 +1405,41 @@ const Tt = (e) => {
|
|
|
1411
1405
|
title: i,
|
|
1412
1406
|
content: s,
|
|
1413
1407
|
children: c
|
|
1414
|
-
} = e,
|
|
1408
|
+
} = e, m = Pe(i), d = Pe(s), f = _(t, o, `${o}-pure`, `${o}-placement-${a}`, n);
|
|
1415
1409
|
return /* @__PURE__ */ l.createElement("div", {
|
|
1416
1410
|
className: f,
|
|
1417
1411
|
style: r
|
|
1418
1412
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
1419
1413
|
className: `${o}-arrow`
|
|
1420
|
-
}), /* @__PURE__ */ l.createElement(
|
|
1414
|
+
}), /* @__PURE__ */ l.createElement(Ze, Object.assign({}, e, {
|
|
1421
1415
|
className: t,
|
|
1422
1416
|
prefixCls: o
|
|
1423
|
-
}), c || /* @__PURE__ */ l.createElement(
|
|
1417
|
+
}), c || /* @__PURE__ */ l.createElement(Ht, {
|
|
1424
1418
|
prefixCls: o,
|
|
1425
|
-
title:
|
|
1419
|
+
title: m,
|
|
1426
1420
|
content: d
|
|
1427
1421
|
})));
|
|
1428
|
-
},
|
|
1422
|
+
}, Nn = (e) => {
|
|
1429
1423
|
const {
|
|
1430
1424
|
prefixCls: t,
|
|
1431
1425
|
className: o
|
|
1432
|
-
} = e, n =
|
|
1426
|
+
} = e, n = Pn(e, ["prefixCls", "className"]), {
|
|
1433
1427
|
getPrefixCls: r
|
|
1434
|
-
} = l.useContext(
|
|
1435
|
-
return i(/* @__PURE__ */ l.createElement(
|
|
1428
|
+
} = l.useContext(re), a = r("popover", t), [i, s, c] = Mt(a);
|
|
1429
|
+
return i(/* @__PURE__ */ l.createElement(En, Object.assign({}, n, {
|
|
1436
1430
|
prefixCls: a,
|
|
1437
1431
|
hashId: s,
|
|
1438
1432
|
className: _(o, c)
|
|
1439
1433
|
})));
|
|
1440
1434
|
};
|
|
1441
|
-
var
|
|
1435
|
+
var Bn = function(e, t) {
|
|
1442
1436
|
var o = {};
|
|
1443
1437
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1444
1438
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1445
1439
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1446
1440
|
return o;
|
|
1447
1441
|
};
|
|
1448
|
-
const
|
|
1442
|
+
const zn = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
1449
1443
|
var o, n;
|
|
1450
1444
|
const {
|
|
1451
1445
|
prefixCls: r,
|
|
@@ -1453,160 +1447,159 @@ const Nn = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
1453
1447
|
content: i,
|
|
1454
1448
|
overlayClassName: s,
|
|
1455
1449
|
placement: c = "top",
|
|
1456
|
-
trigger:
|
|
1450
|
+
trigger: m = "hover",
|
|
1457
1451
|
children: d,
|
|
1458
1452
|
mouseEnterDelay: f = 0.1,
|
|
1459
|
-
mouseLeaveDelay:
|
|
1453
|
+
mouseLeaveDelay: p = 0.1,
|
|
1460
1454
|
onOpenChange: v,
|
|
1461
|
-
overlayStyle:
|
|
1462
|
-
styles:
|
|
1455
|
+
overlayStyle: g = {},
|
|
1456
|
+
styles: u,
|
|
1463
1457
|
classNames: h
|
|
1464
|
-
} = e,
|
|
1458
|
+
} = e, $ = Bn(e, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]), {
|
|
1465
1459
|
getPrefixCls: b,
|
|
1466
1460
|
className: S,
|
|
1467
|
-
style:
|
|
1468
|
-
classNames:
|
|
1461
|
+
style: N,
|
|
1462
|
+
classNames: y,
|
|
1469
1463
|
styles: M
|
|
1470
|
-
} =
|
|
1464
|
+
} = Ge("popover"), j = b("popover", r), [T, O, E] = Mt(j), H = b(), x = _(s, O, E, S, y.root, h == null ? void 0 : h.root), C = _(y.body, h == null ? void 0 : h.body), [w, B] = Ye(!1, {
|
|
1471
1465
|
value: (o = e.open) !== null && o !== void 0 ? o : e.visible,
|
|
1472
1466
|
defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible
|
|
1473
|
-
}),
|
|
1474
|
-
|
|
1475
|
-
},
|
|
1476
|
-
|
|
1477
|
-
},
|
|
1478
|
-
|
|
1479
|
-
}, F =
|
|
1480
|
-
return T(/* @__PURE__ */ l.createElement(
|
|
1467
|
+
}), P = (A, k) => {
|
|
1468
|
+
B(A, !0), v == null || v(A, k);
|
|
1469
|
+
}, L = (A) => {
|
|
1470
|
+
A.keyCode === go.ESC && P(!1, A);
|
|
1471
|
+
}, z = (A) => {
|
|
1472
|
+
P(A);
|
|
1473
|
+
}, F = Pe(a), D = Pe(i);
|
|
1474
|
+
return T(/* @__PURE__ */ l.createElement(Me, Object.assign({
|
|
1481
1475
|
placement: c,
|
|
1482
|
-
trigger:
|
|
1476
|
+
trigger: m,
|
|
1483
1477
|
mouseEnterDelay: f,
|
|
1484
|
-
mouseLeaveDelay:
|
|
1485
|
-
},
|
|
1486
|
-
prefixCls:
|
|
1478
|
+
mouseLeaveDelay: p
|
|
1479
|
+
}, $, {
|
|
1480
|
+
prefixCls: j,
|
|
1487
1481
|
classNames: {
|
|
1488
|
-
root:
|
|
1489
|
-
body:
|
|
1482
|
+
root: x,
|
|
1483
|
+
body: C
|
|
1490
1484
|
},
|
|
1491
1485
|
styles: {
|
|
1492
|
-
root: Object.assign(Object.assign(Object.assign(Object.assign({}, M.root),
|
|
1493
|
-
body: Object.assign(Object.assign({}, M.body),
|
|
1486
|
+
root: Object.assign(Object.assign(Object.assign(Object.assign({}, M.root), N), g), u == null ? void 0 : u.root),
|
|
1487
|
+
body: Object.assign(Object.assign({}, M.body), u == null ? void 0 : u.body)
|
|
1494
1488
|
},
|
|
1495
1489
|
ref: t,
|
|
1496
|
-
open:
|
|
1497
|
-
onOpenChange:
|
|
1498
|
-
overlay: F ||
|
|
1499
|
-
prefixCls:
|
|
1490
|
+
open: w,
|
|
1491
|
+
onOpenChange: z,
|
|
1492
|
+
overlay: F || D ? /* @__PURE__ */ l.createElement(Ht, {
|
|
1493
|
+
prefixCls: j,
|
|
1500
1494
|
title: F,
|
|
1501
|
-
content:
|
|
1495
|
+
content: D
|
|
1502
1496
|
}) : null,
|
|
1503
|
-
transitionName:
|
|
1497
|
+
transitionName: xt(H, "zoom-big", $.transitionName),
|
|
1504
1498
|
"data-popover-inject": !0
|
|
1505
1499
|
}), ue(d, {
|
|
1506
|
-
onKeyDown: (
|
|
1507
|
-
var
|
|
1508
|
-
/* @__PURE__ */
|
|
1500
|
+
onKeyDown: (A) => {
|
|
1501
|
+
var k, R;
|
|
1502
|
+
/* @__PURE__ */ ro(d) && ((R = d == null ? void 0 : (k = d.props).onKeyDown) === null || R === void 0 || R.call(k, A)), L(A);
|
|
1509
1503
|
}
|
|
1510
1504
|
})));
|
|
1511
|
-
}),
|
|
1512
|
-
|
|
1513
|
-
process.env.NODE_ENV !== "production" && (
|
|
1514
|
-
const
|
|
1505
|
+
}), et = zn;
|
|
1506
|
+
et._InternalPanelDoNotUseOrYouWillBeFired = Nn;
|
|
1507
|
+
process.env.NODE_ENV !== "production" && (et.displayName = "Popover");
|
|
1508
|
+
const mt = (e) => {
|
|
1515
1509
|
const {
|
|
1516
1510
|
size: t,
|
|
1517
1511
|
shape: o
|
|
1518
|
-
} = l.useContext(
|
|
1512
|
+
} = l.useContext(Ve), n = l.useMemo(() => ({
|
|
1519
1513
|
size: e.size || t,
|
|
1520
1514
|
shape: e.shape || o
|
|
1521
1515
|
}), [e.size, e.shape, t, o]);
|
|
1522
|
-
return /* @__PURE__ */ l.createElement(
|
|
1516
|
+
return /* @__PURE__ */ l.createElement(Ve.Provider, {
|
|
1523
1517
|
value: n
|
|
1524
1518
|
}, e.children);
|
|
1525
|
-
},
|
|
1519
|
+
}, jn = (e) => {
|
|
1526
1520
|
var t, o, n, r;
|
|
1527
1521
|
const {
|
|
1528
1522
|
getPrefixCls: a,
|
|
1529
1523
|
direction: i
|
|
1530
|
-
} = l.useContext(
|
|
1524
|
+
} = l.useContext(re), {
|
|
1531
1525
|
prefixCls: s,
|
|
1532
1526
|
className: c,
|
|
1533
|
-
rootClassName:
|
|
1527
|
+
rootClassName: m,
|
|
1534
1528
|
style: d,
|
|
1535
1529
|
maxCount: f,
|
|
1536
|
-
maxStyle:
|
|
1530
|
+
maxStyle: p,
|
|
1537
1531
|
size: v,
|
|
1538
|
-
shape:
|
|
1539
|
-
maxPopoverPlacement:
|
|
1532
|
+
shape: g,
|
|
1533
|
+
maxPopoverPlacement: u,
|
|
1540
1534
|
maxPopoverTrigger: h,
|
|
1541
|
-
children:
|
|
1535
|
+
children: $,
|
|
1542
1536
|
max: b
|
|
1543
1537
|
} = e;
|
|
1544
1538
|
if (process.env.NODE_ENV !== "production") {
|
|
1545
|
-
const
|
|
1546
|
-
[["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach((
|
|
1547
|
-
|
|
1548
|
-
z.deprecated(!(N in e), N, E);
|
|
1539
|
+
const C = he("Avatar.Group");
|
|
1540
|
+
[["maxCount", "max={{ count: number }}"], ["maxStyle", "max={{ style: CSSProperties }}"], ["maxPopoverPlacement", "max={{ popover: PopoverProps }}"], ["maxPopoverTrigger", "max={{ popover: PopoverProps }}"]].forEach(([w, B]) => {
|
|
1541
|
+
C.deprecated(!(w in e), w, B);
|
|
1549
1542
|
});
|
|
1550
1543
|
}
|
|
1551
|
-
const S = a("avatar", s),
|
|
1552
|
-
[`${
|
|
1553
|
-
}, T,
|
|
1544
|
+
const S = a("avatar", s), N = `${S}-group`, y = Te(S), [M, j, T] = zt(S, y), O = _(N, {
|
|
1545
|
+
[`${N}-rtl`]: i === "rtl"
|
|
1546
|
+
}, T, y, c, m, j), E = Ue($).map((C, w) => ue(C, {
|
|
1554
1547
|
// eslint-disable-next-line react/no-array-index-key
|
|
1555
|
-
key: `avatar-key-${
|
|
1556
|
-
})),
|
|
1557
|
-
if (
|
|
1558
|
-
const
|
|
1559
|
-
content:
|
|
1548
|
+
key: `avatar-key-${w}`
|
|
1549
|
+
})), H = (b == null ? void 0 : b.count) || f, x = E.length;
|
|
1550
|
+
if (H && H < x) {
|
|
1551
|
+
const C = E.slice(0, H), w = E.slice(H, x), B = (b == null ? void 0 : b.style) || p, P = ((t = b == null ? void 0 : b.popover) === null || t === void 0 ? void 0 : t.trigger) || h || "hover", L = ((o = b == null ? void 0 : b.popover) === null || o === void 0 ? void 0 : o.placement) || u || "top", z = Object.assign(Object.assign({
|
|
1552
|
+
content: w
|
|
1560
1553
|
}, b == null ? void 0 : b.popover), {
|
|
1561
1554
|
classNames: {
|
|
1562
|
-
root: _(`${
|
|
1555
|
+
root: _(`${N}-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)
|
|
1563
1556
|
},
|
|
1564
|
-
placement:
|
|
1565
|
-
trigger:
|
|
1557
|
+
placement: L,
|
|
1558
|
+
trigger: P
|
|
1566
1559
|
});
|
|
1567
|
-
return
|
|
1560
|
+
return C.push(/* @__PURE__ */ l.createElement(et, Object.assign({
|
|
1568
1561
|
key: "avatar-popover-key",
|
|
1569
|
-
|
|
1570
|
-
},
|
|
1571
|
-
style:
|
|
1572
|
-
}, `+${
|
|
1573
|
-
shape:
|
|
1562
|
+
destroyOnHidden: !0
|
|
1563
|
+
}, z), /* @__PURE__ */ l.createElement(Ke, {
|
|
1564
|
+
style: B
|
|
1565
|
+
}, `+${x - H}`))), M(/* @__PURE__ */ l.createElement(mt, {
|
|
1566
|
+
shape: g,
|
|
1574
1567
|
size: v
|
|
1575
1568
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
1576
|
-
className:
|
|
1569
|
+
className: O,
|
|
1577
1570
|
style: d
|
|
1578
|
-
},
|
|
1571
|
+
}, C)));
|
|
1579
1572
|
}
|
|
1580
|
-
return M(/* @__PURE__ */ l.createElement(
|
|
1581
|
-
shape:
|
|
1573
|
+
return M(/* @__PURE__ */ l.createElement(mt, {
|
|
1574
|
+
shape: g,
|
|
1582
1575
|
size: v
|
|
1583
1576
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
1584
|
-
className:
|
|
1577
|
+
className: O,
|
|
1585
1578
|
style: d
|
|
1586
|
-
},
|
|
1587
|
-
},
|
|
1588
|
-
|
|
1589
|
-
var
|
|
1590
|
-
return /* @__PURE__ */ l.createElement(
|
|
1579
|
+
}, E)));
|
|
1580
|
+
}, Dt = Ke;
|
|
1581
|
+
Dt.Group = jn;
|
|
1582
|
+
var Tn = { 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" }, _n = function(t, o) {
|
|
1583
|
+
return /* @__PURE__ */ l.createElement(Xe, je({}, t, {
|
|
1591
1584
|
ref: o,
|
|
1592
|
-
icon:
|
|
1585
|
+
icon: Tn
|
|
1593
1586
|
}));
|
|
1594
|
-
},
|
|
1595
|
-
process.env.NODE_ENV !== "production" && (
|
|
1596
|
-
const
|
|
1597
|
-
var
|
|
1598
|
-
return /* @__PURE__ */ l.createElement(
|
|
1587
|
+
}, Ee = /* @__PURE__ */ l.forwardRef(_n);
|
|
1588
|
+
process.env.NODE_ENV !== "production" && (Ee.displayName = "LeftOutlined");
|
|
1589
|
+
const Rn = (e) => typeof e != "object" && typeof e != "function" || e === null;
|
|
1590
|
+
var Mn = { 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" }, Hn = function(t, o) {
|
|
1591
|
+
return /* @__PURE__ */ l.createElement(Xe, je({}, t, {
|
|
1599
1592
|
ref: o,
|
|
1600
|
-
icon:
|
|
1593
|
+
icon: Mn
|
|
1601
1594
|
}));
|
|
1602
|
-
},
|
|
1603
|
-
process.env.NODE_ENV !== "production" && (
|
|
1604
|
-
const
|
|
1595
|
+
}, At = /* @__PURE__ */ l.forwardRef(Hn);
|
|
1596
|
+
process.env.NODE_ENV !== "production" && (At.displayName = "BarsOutlined");
|
|
1597
|
+
const Dn = /* @__PURE__ */ l.createContext({
|
|
1605
1598
|
siderHook: {
|
|
1606
1599
|
addSider: () => null,
|
|
1607
1600
|
removeSider: () => null
|
|
1608
1601
|
}
|
|
1609
|
-
}),
|
|
1602
|
+
}), An = (e) => {
|
|
1610
1603
|
const {
|
|
1611
1604
|
antCls: t,
|
|
1612
1605
|
// .ant
|
|
@@ -1618,7 +1611,7 @@ const _n = /* @__PURE__ */ l.createContext({
|
|
|
1618
1611
|
headerPadding: i,
|
|
1619
1612
|
headerColor: s,
|
|
1620
1613
|
footerPadding: c,
|
|
1621
|
-
fontSize:
|
|
1614
|
+
fontSize: m,
|
|
1622
1615
|
bodyBg: d,
|
|
1623
1616
|
headerBg: f
|
|
1624
1617
|
} = e;
|
|
@@ -1653,7 +1646,7 @@ const _n = /* @__PURE__ */ l.createContext({
|
|
|
1653
1646
|
height: a,
|
|
1654
1647
|
padding: i,
|
|
1655
1648
|
color: s,
|
|
1656
|
-
lineHeight:
|
|
1649
|
+
lineHeight: I(a),
|
|
1657
1650
|
background: f,
|
|
1658
1651
|
// Other components/menu/style/index.less line:686
|
|
1659
1652
|
// Integration with header element so menu items have the same height
|
|
@@ -1665,7 +1658,7 @@ const _n = /* @__PURE__ */ l.createContext({
|
|
|
1665
1658
|
[`${o}-footer`]: {
|
|
1666
1659
|
padding: c,
|
|
1667
1660
|
color: n,
|
|
1668
|
-
fontSize:
|
|
1661
|
+
fontSize: m,
|
|
1669
1662
|
background: r
|
|
1670
1663
|
},
|
|
1671
1664
|
// =================== Content ====================
|
|
@@ -1676,7 +1669,7 @@ const _n = /* @__PURE__ */ l.createContext({
|
|
|
1676
1669
|
minHeight: 0
|
|
1677
1670
|
}
|
|
1678
1671
|
};
|
|
1679
|
-
},
|
|
1672
|
+
}, Lt = (e) => {
|
|
1680
1673
|
const {
|
|
1681
1674
|
colorBgLayout: t,
|
|
1682
1675
|
controlHeight: o,
|
|
@@ -1686,7 +1679,7 @@ const _n = /* @__PURE__ */ l.createContext({
|
|
|
1686
1679
|
marginXXS: i,
|
|
1687
1680
|
colorTextLightSolid: s,
|
|
1688
1681
|
colorBgContainer: c
|
|
1689
|
-
} = e,
|
|
1682
|
+
} = e, m = n * 1.25;
|
|
1690
1683
|
return {
|
|
1691
1684
|
// Deprecated
|
|
1692
1685
|
colorBgHeader: "#001529",
|
|
@@ -1695,9 +1688,9 @@ const _n = /* @__PURE__ */ l.createContext({
|
|
|
1695
1688
|
bodyBg: t,
|
|
1696
1689
|
headerBg: "#001529",
|
|
1697
1690
|
headerHeight: o * 2,
|
|
1698
|
-
headerPadding: `0 ${
|
|
1691
|
+
headerPadding: `0 ${m}px`,
|
|
1699
1692
|
headerColor: r,
|
|
1700
|
-
footerPadding: `${a}px ${
|
|
1693
|
+
footerPadding: `${a}px ${m}px`,
|
|
1701
1694
|
footerBg: t,
|
|
1702
1695
|
siderBg: "#001529",
|
|
1703
1696
|
triggerHeight: n + i * 2,
|
|
@@ -1709,11 +1702,11 @@ const _n = /* @__PURE__ */ l.createContext({
|
|
|
1709
1702
|
lightTriggerBg: c,
|
|
1710
1703
|
lightTriggerColor: r
|
|
1711
1704
|
};
|
|
1712
|
-
},
|
|
1713
|
-
de("Layout", (e) => [
|
|
1714
|
-
deprecatedTokens:
|
|
1705
|
+
}, kt = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
|
|
1706
|
+
de("Layout", (e) => [An(e)], Lt, {
|
|
1707
|
+
deprecatedTokens: kt
|
|
1715
1708
|
});
|
|
1716
|
-
const
|
|
1709
|
+
const Ln = (e) => {
|
|
1717
1710
|
const {
|
|
1718
1711
|
componentCls: t,
|
|
1719
1712
|
siderBg: o,
|
|
@@ -1723,13 +1716,13 @@ const Mn = (e) => {
|
|
|
1723
1716
|
triggerHeight: i,
|
|
1724
1717
|
triggerColor: s,
|
|
1725
1718
|
triggerBg: c,
|
|
1726
|
-
headerHeight:
|
|
1719
|
+
headerHeight: m,
|
|
1727
1720
|
zeroTriggerWidth: d,
|
|
1728
1721
|
zeroTriggerHeight: f,
|
|
1729
|
-
borderRadiusLG:
|
|
1722
|
+
borderRadiusLG: p,
|
|
1730
1723
|
lightSiderBg: v,
|
|
1731
|
-
lightTriggerColor:
|
|
1732
|
-
lightTriggerBg:
|
|
1724
|
+
lightTriggerColor: g,
|
|
1725
|
+
lightTriggerBg: u,
|
|
1733
1726
|
bodyBg: h
|
|
1734
1727
|
} = e;
|
|
1735
1728
|
return {
|
|
@@ -1765,7 +1758,7 @@ const Mn = (e) => {
|
|
|
1765
1758
|
zIndex: 1,
|
|
1766
1759
|
height: i,
|
|
1767
1760
|
color: s,
|
|
1768
|
-
lineHeight:
|
|
1761
|
+
lineHeight: I(i),
|
|
1769
1762
|
textAlign: "center",
|
|
1770
1763
|
background: c,
|
|
1771
1764
|
cursor: "pointer",
|
|
@@ -1773,7 +1766,7 @@ const Mn = (e) => {
|
|
|
1773
1766
|
},
|
|
1774
1767
|
[`${t}-zero-width-trigger`]: {
|
|
1775
1768
|
position: "absolute",
|
|
1776
|
-
top:
|
|
1769
|
+
top: m,
|
|
1777
1770
|
insetInlineEnd: e.calc(d).mul(-1).equal(),
|
|
1778
1771
|
zIndex: 1,
|
|
1779
1772
|
width: d,
|
|
@@ -1784,7 +1777,7 @@ const Mn = (e) => {
|
|
|
1784
1777
|
alignItems: "center",
|
|
1785
1778
|
justifyContent: "center",
|
|
1786
1779
|
background: o,
|
|
1787
|
-
borderRadius: `0 ${
|
|
1780
|
+
borderRadius: `0 ${I(p)} ${I(p)} 0`,
|
|
1788
1781
|
cursor: "pointer",
|
|
1789
1782
|
transition: `background ${r} ease`,
|
|
1790
1783
|
"&::after": {
|
|
@@ -1799,19 +1792,19 @@ const Mn = (e) => {
|
|
|
1799
1792
|
},
|
|
1800
1793
|
"&-right": {
|
|
1801
1794
|
insetInlineStart: e.calc(d).mul(-1).equal(),
|
|
1802
|
-
borderRadius: `${
|
|
1795
|
+
borderRadius: `${I(p)} 0 0 ${I(p)}`
|
|
1803
1796
|
}
|
|
1804
1797
|
},
|
|
1805
1798
|
// Light
|
|
1806
1799
|
"&-light": {
|
|
1807
1800
|
background: v,
|
|
1808
1801
|
[`${t}-trigger`]: {
|
|
1809
|
-
color:
|
|
1810
|
-
background:
|
|
1802
|
+
color: g,
|
|
1803
|
+
background: u
|
|
1811
1804
|
},
|
|
1812
1805
|
[`${t}-zero-width-trigger`]: {
|
|
1813
|
-
color:
|
|
1814
|
-
background:
|
|
1806
|
+
color: g,
|
|
1807
|
+
background: u,
|
|
1815
1808
|
border: `1px solid ${h}`,
|
|
1816
1809
|
// Safe to modify to any other color
|
|
1817
1810
|
borderInlineStart: 0
|
|
@@ -1819,30 +1812,27 @@ const Mn = (e) => {
|
|
|
1819
1812
|
}
|
|
1820
1813
|
}
|
|
1821
1814
|
};
|
|
1822
|
-
},
|
|
1823
|
-
deprecatedTokens:
|
|
1815
|
+
}, kn = de(["Layout", "Sider"], (e) => [Ln(e)], Lt, {
|
|
1816
|
+
deprecatedTokens: kt
|
|
1824
1817
|
});
|
|
1825
|
-
var
|
|
1818
|
+
var Vn = function(e, t) {
|
|
1826
1819
|
var o = {};
|
|
1827
1820
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1828
1821
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1829
1822
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1830
1823
|
return o;
|
|
1831
1824
|
};
|
|
1832
|
-
const
|
|
1825
|
+
const pt = {
|
|
1833
1826
|
xs: "479.98px",
|
|
1834
1827
|
sm: "575.98px",
|
|
1835
1828
|
md: "767.98px",
|
|
1836
1829
|
lg: "991.98px",
|
|
1837
1830
|
xl: "1199.98px",
|
|
1838
1831
|
xxl: "1599.98px"
|
|
1839
|
-
},
|
|
1832
|
+
}, Wn = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), tt = /* @__PURE__ */ l.createContext({}), Xn = /* @__PURE__ */ (() => {
|
|
1840
1833
|
let e = 0;
|
|
1841
|
-
return
|
|
1842
|
-
|
|
1843
|
-
return e += 1, `${t}${e}`;
|
|
1844
|
-
};
|
|
1845
|
-
})(), kn = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
1834
|
+
return (t = "") => (e += 1, `${t}${e}`);
|
|
1835
|
+
})(), Fn = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
1846
1836
|
const {
|
|
1847
1837
|
prefixCls: o,
|
|
1848
1838
|
className: n,
|
|
@@ -1851,124 +1841,107 @@ const ut = {
|
|
|
1851
1841
|
defaultCollapsed: i = !1,
|
|
1852
1842
|
theme: s = "dark",
|
|
1853
1843
|
style: c = {},
|
|
1854
|
-
collapsible:
|
|
1844
|
+
collapsible: m = !1,
|
|
1855
1845
|
reverseArrow: d = !1,
|
|
1856
1846
|
width: f = 200,
|
|
1857
|
-
collapsedWidth:
|
|
1847
|
+
collapsedWidth: p = 80,
|
|
1858
1848
|
zeroWidthTriggerStyle: v,
|
|
1859
|
-
breakpoint:
|
|
1860
|
-
onCollapse:
|
|
1849
|
+
breakpoint: g,
|
|
1850
|
+
onCollapse: u,
|
|
1861
1851
|
onBreakpoint: h
|
|
1862
|
-
} = e,
|
|
1852
|
+
} = e, $ = Vn(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
|
|
1863
1853
|
siderHook: b
|
|
1864
|
-
} =
|
|
1865
|
-
|
|
1866
|
-
"collapsed" in e &&
|
|
1854
|
+
} = nt(Dn), [S, N] = rt("collapsed" in e ? e.collapsed : i), [y, M] = rt(!1);
|
|
1855
|
+
Le(() => {
|
|
1856
|
+
"collapsed" in e && N(e.collapsed);
|
|
1867
1857
|
}, [e.collapsed]);
|
|
1868
|
-
const
|
|
1869
|
-
"collapsed" in e ||
|
|
1858
|
+
const j = (X, Z) => {
|
|
1859
|
+
"collapsed" in e || N(X), u == null || u(X, Z);
|
|
1870
1860
|
}, {
|
|
1871
1861
|
getPrefixCls: T,
|
|
1872
|
-
direction:
|
|
1873
|
-
} =
|
|
1874
|
-
|
|
1875
|
-
M(
|
|
1876
|
-
},
|
|
1877
|
-
function
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
let U;
|
|
1881
|
-
if (typeof window < "u") {
|
|
1882
|
-
const {
|
|
1883
|
-
matchMedia: Q
|
|
1884
|
-
} = window;
|
|
1885
|
-
if (Q && p && p in ut) {
|
|
1886
|
-
U = Q(`screen and (max-width: ${ut[p]})`);
|
|
1887
|
-
try {
|
|
1888
|
-
U.addEventListener("change", k);
|
|
1889
|
-
} catch {
|
|
1890
|
-
U.addListener(k);
|
|
1891
|
-
}
|
|
1892
|
-
k(U);
|
|
1893
|
-
}
|
|
1862
|
+
direction: O
|
|
1863
|
+
} = nt(re), E = T("layout-sider", o), [H, x, C] = kn(E), w = ze(null);
|
|
1864
|
+
w.current = (X) => {
|
|
1865
|
+
M(X.matches), h == null || h(X.matches), S !== X.matches && j(X.matches, "responsive");
|
|
1866
|
+
}, Le(() => {
|
|
1867
|
+
function X(J) {
|
|
1868
|
+
var V;
|
|
1869
|
+
return (V = w.current) === null || V === void 0 ? void 0 : V.call(w, J);
|
|
1894
1870
|
}
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
} catch {
|
|
1899
|
-
U == null || U.removeListener(k);
|
|
1900
|
-
}
|
|
1871
|
+
let Z;
|
|
1872
|
+
return typeof (window == null ? void 0 : window.matchMedia) < "u" && g && g in pt && (Z = window.matchMedia(`screen and (max-width: ${pt[g]})`), Et(Z, X), X(Z)), () => {
|
|
1873
|
+
Nt(Z, X);
|
|
1901
1874
|
};
|
|
1902
|
-
}, [
|
|
1903
|
-
const
|
|
1904
|
-
return b.addSider(
|
|
1875
|
+
}, [g]), Le(() => {
|
|
1876
|
+
const X = Xn("ant-sider-");
|
|
1877
|
+
return b.addSider(X), () => b.removeSider(X);
|
|
1905
1878
|
}, []);
|
|
1906
|
-
const
|
|
1907
|
-
|
|
1908
|
-
},
|
|
1909
|
-
onClick:
|
|
1910
|
-
className: _(`${
|
|
1879
|
+
const B = () => {
|
|
1880
|
+
j(!S, "clickTrigger");
|
|
1881
|
+
}, P = $e($, ["collapsed"]), L = S ? p : f, z = Wn(L) ? `${L}px` : String(L), F = parseFloat(String(p || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
|
|
1882
|
+
onClick: B,
|
|
1883
|
+
className: _(`${E}-zero-width-trigger`, `${E}-zero-width-trigger-${d ? "right" : "left"}`),
|
|
1911
1884
|
style: v
|
|
1912
|
-
}, r || /* @__PURE__ */ l.createElement(
|
|
1913
|
-
expanded:
|
|
1914
|
-
collapsed:
|
|
1915
|
-
}[S ? "collapsed" : "expanded"],
|
|
1916
|
-
className: `${
|
|
1917
|
-
onClick:
|
|
1885
|
+
}, r || /* @__PURE__ */ l.createElement(At, null)) : null, D = O === "rtl" == !d, R = {
|
|
1886
|
+
expanded: D ? /* @__PURE__ */ l.createElement(Ie, null) : /* @__PURE__ */ l.createElement(Ee, null),
|
|
1887
|
+
collapsed: D ? /* @__PURE__ */ l.createElement(Ee, null) : /* @__PURE__ */ l.createElement(Ie, null)
|
|
1888
|
+
}[S ? "collapsed" : "expanded"], W = r !== null ? F || /* @__PURE__ */ l.createElement("div", {
|
|
1889
|
+
className: `${E}-trigger`,
|
|
1890
|
+
onClick: B,
|
|
1918
1891
|
style: {
|
|
1919
|
-
width:
|
|
1892
|
+
width: z
|
|
1920
1893
|
}
|
|
1921
|
-
}, r ||
|
|
1922
|
-
flex: `0 0 ${
|
|
1923
|
-
maxWidth:
|
|
1924
|
-
minWidth:
|
|
1925
|
-
width:
|
|
1926
|
-
}),
|
|
1927
|
-
[`${
|
|
1928
|
-
[`${
|
|
1929
|
-
[`${
|
|
1930
|
-
[`${
|
|
1931
|
-
}, n,
|
|
1894
|
+
}, r || R) : null, G = Object.assign(Object.assign({}, c), {
|
|
1895
|
+
flex: `0 0 ${z}`,
|
|
1896
|
+
maxWidth: z,
|
|
1897
|
+
minWidth: z,
|
|
1898
|
+
width: z
|
|
1899
|
+
}), q = _(E, `${E}-${s}`, {
|
|
1900
|
+
[`${E}-collapsed`]: !!S,
|
|
1901
|
+
[`${E}-has-trigger`]: m && r !== null && !F,
|
|
1902
|
+
[`${E}-below`]: !!y,
|
|
1903
|
+
[`${E}-zero-width`]: parseFloat(z) === 0
|
|
1904
|
+
}, n, x, C), Q = l.useMemo(() => ({
|
|
1932
1905
|
siderCollapsed: S
|
|
1933
1906
|
}), [S]);
|
|
1934
|
-
return
|
|
1935
|
-
value:
|
|
1907
|
+
return H(/* @__PURE__ */ l.createElement(tt.Provider, {
|
|
1908
|
+
value: Q
|
|
1936
1909
|
}, /* @__PURE__ */ l.createElement("aside", Object.assign({
|
|
1937
|
-
className:
|
|
1938
|
-
},
|
|
1939
|
-
style:
|
|
1910
|
+
className: q
|
|
1911
|
+
}, P, {
|
|
1912
|
+
style: G,
|
|
1940
1913
|
ref: t
|
|
1941
1914
|
}), /* @__PURE__ */ l.createElement("div", {
|
|
1942
|
-
className: `${
|
|
1943
|
-
}, a),
|
|
1915
|
+
className: `${E}-children`
|
|
1916
|
+
}, a), m || y && F ? W : null)));
|
|
1944
1917
|
});
|
|
1945
|
-
process.env.NODE_ENV !== "production" && (
|
|
1946
|
-
const
|
|
1918
|
+
process.env.NODE_ENV !== "production" && (Fn.displayName = "Sider");
|
|
1919
|
+
const Ne = /* @__PURE__ */ io({
|
|
1947
1920
|
prefixCls: "",
|
|
1948
1921
|
firstLevel: !0,
|
|
1949
1922
|
inlineCollapsed: !1
|
|
1950
1923
|
});
|
|
1951
|
-
var
|
|
1924
|
+
var Gn = function(e, t) {
|
|
1952
1925
|
var o = {};
|
|
1953
1926
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1954
1927
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1955
1928
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1956
1929
|
return o;
|
|
1957
1930
|
};
|
|
1958
|
-
const
|
|
1931
|
+
const Vt = (e) => {
|
|
1959
1932
|
const {
|
|
1960
1933
|
prefixCls: t,
|
|
1961
1934
|
className: o,
|
|
1962
1935
|
dashed: n
|
|
1963
|
-
} = e, r =
|
|
1936
|
+
} = e, r = Gn(e, ["prefixCls", "className", "dashed"]), {
|
|
1964
1937
|
getPrefixCls: a
|
|
1965
|
-
} = l.useContext(
|
|
1938
|
+
} = l.useContext(re), i = a("menu", t), s = _({
|
|
1966
1939
|
[`${i}-item-divider-dashed`]: !!n
|
|
1967
1940
|
}, o);
|
|
1968
|
-
return /* @__PURE__ */ l.createElement(
|
|
1941
|
+
return /* @__PURE__ */ l.createElement(So, Object.assign({
|
|
1969
1942
|
className: s
|
|
1970
1943
|
}, r));
|
|
1971
|
-
},
|
|
1944
|
+
}, Wt = (e) => {
|
|
1972
1945
|
var t;
|
|
1973
1946
|
const {
|
|
1974
1947
|
className: o,
|
|
@@ -1979,56 +1952,56 @@ const Ht = (e) => {
|
|
|
1979
1952
|
extra: s
|
|
1980
1953
|
} = e, {
|
|
1981
1954
|
prefixCls: c,
|
|
1982
|
-
firstLevel:
|
|
1955
|
+
firstLevel: m,
|
|
1983
1956
|
direction: d,
|
|
1984
1957
|
disableMenuItemTitleTooltip: f,
|
|
1985
|
-
inlineCollapsed:
|
|
1986
|
-
} = l.useContext(
|
|
1987
|
-
const
|
|
1958
|
+
inlineCollapsed: p
|
|
1959
|
+
} = l.useContext(Ne), v = (S) => {
|
|
1960
|
+
const N = n == null ? void 0 : n[0], y = /* @__PURE__ */ l.createElement("span", {
|
|
1988
1961
|
className: _(`${c}-title-content`, {
|
|
1989
1962
|
[`${c}-title-content-with-extra`]: !!s || s === 0
|
|
1990
1963
|
})
|
|
1991
1964
|
}, n);
|
|
1992
|
-
return (!r || /* @__PURE__ */ l.isValidElement(n) && n.type === "span") && n && S &&
|
|
1965
|
+
return (!r || /* @__PURE__ */ l.isValidElement(n) && n.type === "span") && n && S && m && typeof N == "string" ? /* @__PURE__ */ l.createElement("div", {
|
|
1993
1966
|
className: `${c}-inline-collapsed-noicon`
|
|
1994
|
-
},
|
|
1967
|
+
}, N.charAt(0)) : y;
|
|
1995
1968
|
}, {
|
|
1996
|
-
siderCollapsed:
|
|
1997
|
-
} = l.useContext(
|
|
1998
|
-
let
|
|
1999
|
-
typeof a > "u" ?
|
|
1969
|
+
siderCollapsed: g
|
|
1970
|
+
} = l.useContext(tt);
|
|
1971
|
+
let u = a;
|
|
1972
|
+
typeof a > "u" ? u = m ? n : "" : a === !1 && (u = "");
|
|
2000
1973
|
const h = {
|
|
2001
|
-
title:
|
|
1974
|
+
title: u
|
|
2002
1975
|
};
|
|
2003
|
-
!
|
|
2004
|
-
const
|
|
2005
|
-
let b = /* @__PURE__ */ l.createElement(
|
|
1976
|
+
!g && !p && (h.title = null, h.open = !1);
|
|
1977
|
+
const $ = Ue(n).length;
|
|
1978
|
+
let b = /* @__PURE__ */ l.createElement(Oo, Object.assign({}, $e(e, ["title", "icon", "danger"]), {
|
|
2006
1979
|
className: _({
|
|
2007
1980
|
[`${c}-item-danger`]: i,
|
|
2008
|
-
[`${c}-item-only-child`]: (r ?
|
|
1981
|
+
[`${c}-item-only-child`]: (r ? $ + 1 : $) === 1
|
|
2009
1982
|
}, o),
|
|
2010
1983
|
title: typeof a == "string" ? a : void 0
|
|
2011
1984
|
}), ue(r, {
|
|
2012
|
-
className: _(/* @__PURE__ */ l.isValidElement(r) ? (t = r.props) === null || t === void 0 ? void 0 : t.className :
|
|
2013
|
-
}), v(
|
|
2014
|
-
return f || (b = /* @__PURE__ */ l.createElement(
|
|
1985
|
+
className: _(/* @__PURE__ */ l.isValidElement(r) ? (t = r.props) === null || t === void 0 ? void 0 : t.className : void 0, `${c}-item-icon`)
|
|
1986
|
+
}), v(p));
|
|
1987
|
+
return f || (b = /* @__PURE__ */ l.createElement(Me, Object.assign({}, h, {
|
|
2015
1988
|
placement: d === "rtl" ? "left" : "right",
|
|
2016
1989
|
classNames: {
|
|
2017
1990
|
root: `${c}-inline-collapsed-tooltip`
|
|
2018
1991
|
}
|
|
2019
1992
|
}), b)), b;
|
|
2020
1993
|
};
|
|
2021
|
-
var
|
|
1994
|
+
var Yn = function(e, t) {
|
|
2022
1995
|
var o = {};
|
|
2023
1996
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
2024
1997
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
2025
1998
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
2026
1999
|
return o;
|
|
2027
2000
|
};
|
|
2028
|
-
const
|
|
2001
|
+
const Be = /* @__PURE__ */ l.createContext(null), Un = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
2029
2002
|
const {
|
|
2030
2003
|
children: o
|
|
2031
|
-
} = e, n =
|
|
2004
|
+
} = e, n = Yn(e, ["children"]), r = l.useContext(Be), a = l.useMemo(() => Object.assign(Object.assign({}, r), n), [
|
|
2032
2005
|
r,
|
|
2033
2006
|
n.prefixCls,
|
|
2034
2007
|
// restProps.expandIcon, Not mark as deps since this is a ReactNode
|
|
@@ -2036,15 +2009,15 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2036
2009
|
n.selectable,
|
|
2037
2010
|
n.rootClassName
|
|
2038
2011
|
// restProps.validator, Not mark as deps since this is a function
|
|
2039
|
-
]), i =
|
|
2040
|
-
return /* @__PURE__ */ l.createElement(
|
|
2012
|
+
]), i = fo(o), s = vo(t, i ? bo(o) : null);
|
|
2013
|
+
return /* @__PURE__ */ l.createElement(Be.Provider, {
|
|
2041
2014
|
value: a
|
|
2042
|
-
}, /* @__PURE__ */ l.createElement(
|
|
2015
|
+
}, /* @__PURE__ */ l.createElement(It, {
|
|
2043
2016
|
space: !0
|
|
2044
2017
|
}, i ? /* @__PURE__ */ l.cloneElement(o, {
|
|
2045
2018
|
ref: s
|
|
2046
2019
|
}) : o));
|
|
2047
|
-
}),
|
|
2020
|
+
}), qn = (e) => {
|
|
2048
2021
|
const {
|
|
2049
2022
|
componentCls: t,
|
|
2050
2023
|
motionDurationSlow: o,
|
|
@@ -2058,7 +2031,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2058
2031
|
[`${t}-horizontal`]: {
|
|
2059
2032
|
lineHeight: n,
|
|
2060
2033
|
border: 0,
|
|
2061
|
-
borderBottom: `${
|
|
2034
|
+
borderBottom: `${I(a)} ${i} ${r}`,
|
|
2062
2035
|
boxShadow: "none",
|
|
2063
2036
|
"&::after": {
|
|
2064
2037
|
display: "block",
|
|
@@ -2087,33 +2060,30 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2087
2060
|
}
|
|
2088
2061
|
}
|
|
2089
2062
|
};
|
|
2090
|
-
},
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
}
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
[`${
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
}
|
|
2110
|
-
"&::after": {
|
|
2111
|
-
transform: `rotate(45deg) translateY(${O(o)})`
|
|
2112
|
-
}
|
|
2063
|
+
}, Kn = ({
|
|
2064
|
+
componentCls: e,
|
|
2065
|
+
menuArrowOffset: t,
|
|
2066
|
+
calc: o
|
|
2067
|
+
}) => ({
|
|
2068
|
+
[`${e}-rtl`]: {
|
|
2069
|
+
direction: "rtl"
|
|
2070
|
+
},
|
|
2071
|
+
[`${e}-submenu-rtl`]: {
|
|
2072
|
+
transformOrigin: "100% 0"
|
|
2073
|
+
},
|
|
2074
|
+
// Vertical Arrow
|
|
2075
|
+
[`${e}-rtl${e}-vertical,
|
|
2076
|
+
${e}-submenu-rtl ${e}-vertical`]: {
|
|
2077
|
+
[`${e}-submenu-arrow`]: {
|
|
2078
|
+
"&::before": {
|
|
2079
|
+
transform: `rotate(-45deg) translateY(${I(o(t).mul(-1).equal())})`
|
|
2080
|
+
},
|
|
2081
|
+
"&::after": {
|
|
2082
|
+
transform: `rotate(45deg) translateY(${I(t)})`
|
|
2113
2083
|
}
|
|
2114
2084
|
}
|
|
2115
|
-
}
|
|
2116
|
-
},
|
|
2085
|
+
}
|
|
2086
|
+
}), gt = (e) => Object.assign({}, ho(e)), ft = (e, t) => {
|
|
2117
2087
|
const {
|
|
2118
2088
|
componentCls: o,
|
|
2119
2089
|
itemColor: n,
|
|
@@ -2122,42 +2092,42 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2122
2092
|
groupTitleColor: i,
|
|
2123
2093
|
itemBg: s,
|
|
2124
2094
|
subMenuItemBg: c,
|
|
2125
|
-
itemSelectedBg:
|
|
2095
|
+
itemSelectedBg: m,
|
|
2126
2096
|
activeBarHeight: d,
|
|
2127
2097
|
activeBarWidth: f,
|
|
2128
|
-
activeBarBorderWidth:
|
|
2098
|
+
activeBarBorderWidth: p,
|
|
2129
2099
|
motionDurationSlow: v,
|
|
2130
|
-
motionEaseInOut:
|
|
2131
|
-
motionEaseOut:
|
|
2100
|
+
motionEaseInOut: g,
|
|
2101
|
+
motionEaseOut: u,
|
|
2132
2102
|
itemPaddingInline: h,
|
|
2133
|
-
motionDurationMid:
|
|
2103
|
+
motionDurationMid: $,
|
|
2134
2104
|
itemHoverColor: b,
|
|
2135
2105
|
lineType: S,
|
|
2136
|
-
colorSplit:
|
|
2106
|
+
colorSplit: N,
|
|
2137
2107
|
// Disabled
|
|
2138
|
-
itemDisabledColor:
|
|
2108
|
+
itemDisabledColor: y,
|
|
2139
2109
|
// Danger
|
|
2140
2110
|
dangerItemColor: M,
|
|
2141
|
-
dangerItemHoverColor:
|
|
2111
|
+
dangerItemHoverColor: j,
|
|
2142
2112
|
dangerItemSelectedColor: T,
|
|
2143
|
-
dangerItemActiveBg:
|
|
2144
|
-
dangerItemSelectedBg:
|
|
2113
|
+
dangerItemActiveBg: O,
|
|
2114
|
+
dangerItemSelectedBg: E,
|
|
2145
2115
|
// Bg
|
|
2146
|
-
popupBg:
|
|
2147
|
-
itemHoverBg:
|
|
2148
|
-
itemActiveBg:
|
|
2149
|
-
menuSubMenuBg:
|
|
2116
|
+
popupBg: H,
|
|
2117
|
+
itemHoverBg: x,
|
|
2118
|
+
itemActiveBg: C,
|
|
2119
|
+
menuSubMenuBg: w,
|
|
2150
2120
|
// Horizontal
|
|
2151
|
-
horizontalItemSelectedColor:
|
|
2152
|
-
horizontalItemSelectedBg:
|
|
2153
|
-
horizontalItemBorderRadius:
|
|
2154
|
-
horizontalItemHoverBg:
|
|
2121
|
+
horizontalItemSelectedColor: B,
|
|
2122
|
+
horizontalItemSelectedBg: P,
|
|
2123
|
+
horizontalItemBorderRadius: L,
|
|
2124
|
+
horizontalItemHoverBg: z
|
|
2155
2125
|
} = e;
|
|
2156
2126
|
return {
|
|
2157
2127
|
[`${o}-${t}, ${o}-${t} > ${o}`]: {
|
|
2158
2128
|
color: n,
|
|
2159
2129
|
background: s,
|
|
2160
|
-
[`&${o}-root:focus-visible`]: Object.assign({},
|
|
2130
|
+
[`&${o}-root:focus-visible`]: Object.assign({}, gt(e)),
|
|
2161
2131
|
// ======================== Item ========================
|
|
2162
2132
|
[`${o}-item`]: {
|
|
2163
2133
|
"&-group-title, &-extra": {
|
|
@@ -2169,11 +2139,11 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2169
2139
|
},
|
|
2170
2140
|
[`${o}-item, ${o}-submenu-title`]: {
|
|
2171
2141
|
color: n,
|
|
2172
|
-
[`&:not(${o}-item-disabled):focus-visible`]: Object.assign({},
|
|
2142
|
+
[`&:not(${o}-item-disabled):focus-visible`]: Object.assign({}, gt(e))
|
|
2173
2143
|
},
|
|
2174
2144
|
// Disabled
|
|
2175
2145
|
[`${o}-item-disabled, ${o}-submenu-disabled`]: {
|
|
2176
|
-
color: `${
|
|
2146
|
+
color: `${y} !important`
|
|
2177
2147
|
},
|
|
2178
2148
|
// Hover
|
|
2179
2149
|
[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]: {
|
|
@@ -2184,18 +2154,18 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2184
2154
|
[`&:not(${o}-horizontal)`]: {
|
|
2185
2155
|
[`${o}-item:not(${o}-item-selected)`]: {
|
|
2186
2156
|
"&:hover": {
|
|
2187
|
-
backgroundColor:
|
|
2157
|
+
backgroundColor: x
|
|
2188
2158
|
},
|
|
2189
2159
|
"&:active": {
|
|
2190
|
-
backgroundColor:
|
|
2160
|
+
backgroundColor: C
|
|
2191
2161
|
}
|
|
2192
2162
|
},
|
|
2193
2163
|
[`${o}-submenu-title`]: {
|
|
2194
2164
|
"&:hover": {
|
|
2195
|
-
backgroundColor:
|
|
2165
|
+
backgroundColor: x
|
|
2196
2166
|
},
|
|
2197
2167
|
"&:active": {
|
|
2198
|
-
backgroundColor:
|
|
2168
|
+
backgroundColor: C
|
|
2199
2169
|
}
|
|
2200
2170
|
}
|
|
2201
2171
|
},
|
|
@@ -2204,11 +2174,11 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2204
2174
|
color: M,
|
|
2205
2175
|
[`&${o}-item:hover`]: {
|
|
2206
2176
|
[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]: {
|
|
2207
|
-
color:
|
|
2177
|
+
color: j
|
|
2208
2178
|
}
|
|
2209
2179
|
},
|
|
2210
2180
|
[`&${o}-item:active`]: {
|
|
2211
|
-
background:
|
|
2181
|
+
background: O
|
|
2212
2182
|
}
|
|
2213
2183
|
},
|
|
2214
2184
|
[`${o}-item a`]: {
|
|
@@ -2227,22 +2197,22 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2227
2197
|
}
|
|
2228
2198
|
},
|
|
2229
2199
|
[`& ${o}-item-selected`]: {
|
|
2230
|
-
backgroundColor:
|
|
2200
|
+
backgroundColor: m,
|
|
2231
2201
|
// Danger
|
|
2232
2202
|
[`&${o}-item-danger`]: {
|
|
2233
|
-
backgroundColor:
|
|
2203
|
+
backgroundColor: E
|
|
2234
2204
|
}
|
|
2235
2205
|
},
|
|
2236
2206
|
[`&${o}-submenu > ${o}`]: {
|
|
2237
|
-
backgroundColor:
|
|
2207
|
+
backgroundColor: w
|
|
2238
2208
|
},
|
|
2239
2209
|
// ===== 设置浮层的颜色 =======
|
|
2240
2210
|
// !dark 模式会被popupBg 会被rest 为 darkPopupBg
|
|
2241
2211
|
[`&${o}-popup > ${o}`]: {
|
|
2242
|
-
backgroundColor:
|
|
2212
|
+
backgroundColor: H
|
|
2243
2213
|
},
|
|
2244
2214
|
[`&${o}-submenu-popup > ${o}`]: {
|
|
2245
|
-
backgroundColor:
|
|
2215
|
+
backgroundColor: H
|
|
2246
2216
|
},
|
|
2247
2217
|
// ===== 设置浮层的颜色 end =======
|
|
2248
2218
|
// ====================== Horizontal ======================
|
|
@@ -2250,34 +2220,34 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2250
2220
|
borderBottom: 0
|
|
2251
2221
|
} : {}), {
|
|
2252
2222
|
[`> ${o}-item, > ${o}-submenu`]: {
|
|
2253
|
-
top:
|
|
2254
|
-
marginTop: e.calc(
|
|
2223
|
+
top: p,
|
|
2224
|
+
marginTop: e.calc(p).mul(-1).equal(),
|
|
2255
2225
|
marginBottom: 0,
|
|
2256
|
-
borderRadius:
|
|
2226
|
+
borderRadius: L,
|
|
2257
2227
|
"&::after": {
|
|
2258
2228
|
position: "absolute",
|
|
2259
2229
|
insetInline: h,
|
|
2260
2230
|
bottom: 0,
|
|
2261
|
-
borderBottom: `${
|
|
2262
|
-
transition: `border-color ${v} ${
|
|
2231
|
+
borderBottom: `${I(d)} solid transparent`,
|
|
2232
|
+
transition: `border-color ${v} ${g}`,
|
|
2263
2233
|
content: '""'
|
|
2264
2234
|
},
|
|
2265
2235
|
"&:hover, &-active, &-open": {
|
|
2266
|
-
background:
|
|
2236
|
+
background: z,
|
|
2267
2237
|
"&::after": {
|
|
2268
2238
|
borderBottomWidth: d,
|
|
2269
|
-
borderBottomColor:
|
|
2239
|
+
borderBottomColor: B
|
|
2270
2240
|
}
|
|
2271
2241
|
},
|
|
2272
2242
|
"&-selected": {
|
|
2273
|
-
color:
|
|
2274
|
-
backgroundColor:
|
|
2243
|
+
color: B,
|
|
2244
|
+
backgroundColor: P,
|
|
2275
2245
|
"&:hover": {
|
|
2276
|
-
backgroundColor:
|
|
2246
|
+
backgroundColor: P
|
|
2277
2247
|
},
|
|
2278
2248
|
"&::after": {
|
|
2279
2249
|
borderBottomWidth: d,
|
|
2280
|
-
borderBottomColor:
|
|
2250
|
+
borderBottomColor: B
|
|
2281
2251
|
}
|
|
2282
2252
|
}
|
|
2283
2253
|
}
|
|
@@ -2286,7 +2256,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2286
2256
|
//
|
|
2287
2257
|
[`&${o}-root`]: {
|
|
2288
2258
|
[`&${o}-inline, &${o}-vertical`]: {
|
|
2289
|
-
borderInlineEnd: `${
|
|
2259
|
+
borderInlineEnd: `${I(p)} ${S} ${N}`
|
|
2290
2260
|
}
|
|
2291
2261
|
},
|
|
2292
2262
|
// ======================== Inline ========================
|
|
@@ -2301,10 +2271,10 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2301
2271
|
position: "absolute",
|
|
2302
2272
|
insetBlock: 0,
|
|
2303
2273
|
insetInlineEnd: 0,
|
|
2304
|
-
borderInlineEnd: `${
|
|
2274
|
+
borderInlineEnd: `${I(f)} solid ${r}`,
|
|
2305
2275
|
transform: "scaleY(0.0001)",
|
|
2306
2276
|
opacity: 0,
|
|
2307
|
-
transition: [`transform ${
|
|
2277
|
+
transition: [`transform ${$} ${u}`, `opacity ${$} ${u}`].join(","),
|
|
2308
2278
|
content: '""'
|
|
2309
2279
|
},
|
|
2310
2280
|
// Danger
|
|
@@ -2318,13 +2288,13 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2318
2288
|
"&::after": {
|
|
2319
2289
|
transform: "scaleY(1)",
|
|
2320
2290
|
opacity: 1,
|
|
2321
|
-
transition: [`transform ${
|
|
2291
|
+
transition: [`transform ${$} ${g}`, `opacity ${$} ${g}`].join(",")
|
|
2322
2292
|
}
|
|
2323
2293
|
}
|
|
2324
2294
|
}
|
|
2325
2295
|
}
|
|
2326
2296
|
};
|
|
2327
|
-
},
|
|
2297
|
+
}, vt = (e) => {
|
|
2328
2298
|
const {
|
|
2329
2299
|
componentCls: t,
|
|
2330
2300
|
itemHeight: o,
|
|
@@ -2334,7 +2304,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2334
2304
|
marginXS: i,
|
|
2335
2305
|
itemMarginBlock: s,
|
|
2336
2306
|
itemWidth: c,
|
|
2337
|
-
itemPaddingInline:
|
|
2307
|
+
itemPaddingInline: m
|
|
2338
2308
|
} = e, d = e.calc(a).add(r).add(i).equal();
|
|
2339
2309
|
return {
|
|
2340
2310
|
[`${t}-item`]: {
|
|
@@ -2343,8 +2313,8 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2343
2313
|
},
|
|
2344
2314
|
[`${t}-item, ${t}-submenu-title`]: {
|
|
2345
2315
|
height: o,
|
|
2346
|
-
lineHeight:
|
|
2347
|
-
paddingInline:
|
|
2316
|
+
lineHeight: I(o),
|
|
2317
|
+
paddingInline: m,
|
|
2348
2318
|
overflow: "hidden",
|
|
2349
2319
|
textOverflow: "ellipsis",
|
|
2350
2320
|
marginInline: n,
|
|
@@ -2354,14 +2324,14 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2354
2324
|
[`> ${t}-item,
|
|
2355
2325
|
> ${t}-submenu > ${t}-submenu-title`]: {
|
|
2356
2326
|
height: o,
|
|
2357
|
-
lineHeight:
|
|
2327
|
+
lineHeight: I(o)
|
|
2358
2328
|
},
|
|
2359
2329
|
[`${t}-item-group-list ${t}-submenu-title,
|
|
2360
2330
|
${t}-submenu-title`]: {
|
|
2361
2331
|
paddingInlineEnd: d
|
|
2362
2332
|
}
|
|
2363
2333
|
};
|
|
2364
|
-
},
|
|
2334
|
+
}, Zn = (e) => {
|
|
2365
2335
|
const {
|
|
2366
2336
|
componentCls: t,
|
|
2367
2337
|
iconCls: o,
|
|
@@ -2371,17 +2341,17 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2371
2341
|
controlHeightLG: i,
|
|
2372
2342
|
motionEaseOut: s,
|
|
2373
2343
|
paddingXL: c,
|
|
2374
|
-
itemMarginInline:
|
|
2344
|
+
itemMarginInline: m,
|
|
2375
2345
|
fontSizeLG: d,
|
|
2376
2346
|
motionDurationFast: f,
|
|
2377
|
-
motionDurationSlow:
|
|
2347
|
+
motionDurationSlow: p,
|
|
2378
2348
|
paddingXS: v,
|
|
2379
|
-
boxShadowSecondary:
|
|
2380
|
-
collapsedWidth:
|
|
2349
|
+
boxShadowSecondary: g,
|
|
2350
|
+
collapsedWidth: u,
|
|
2381
2351
|
collapsedIconSize: h
|
|
2382
|
-
} = e,
|
|
2352
|
+
} = e, $ = {
|
|
2383
2353
|
height: n,
|
|
2384
|
-
lineHeight:
|
|
2354
|
+
lineHeight: I(n),
|
|
2385
2355
|
listStylePosition: "inside",
|
|
2386
2356
|
listStyleType: "disc"
|
|
2387
2357
|
};
|
|
@@ -2392,11 +2362,11 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2392
2362
|
[`&${t}-root`]: {
|
|
2393
2363
|
boxShadow: "none"
|
|
2394
2364
|
}
|
|
2395
|
-
},
|
|
2365
|
+
}, vt(e))
|
|
2396
2366
|
},
|
|
2397
2367
|
[`${t}-submenu-popup`]: {
|
|
2398
|
-
[`${t}-vertical`]: Object.assign(Object.assign({},
|
|
2399
|
-
boxShadow:
|
|
2368
|
+
[`${t}-vertical`]: Object.assign(Object.assign({}, vt(e)), {
|
|
2369
|
+
boxShadow: g
|
|
2400
2370
|
})
|
|
2401
2371
|
}
|
|
2402
2372
|
},
|
|
@@ -2404,7 +2374,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2404
2374
|
{
|
|
2405
2375
|
[`${t}-submenu-popup ${t}-vertical${t}-sub`]: {
|
|
2406
2376
|
minWidth: a,
|
|
2407
|
-
maxHeight: `calc(100vh - ${
|
|
2377
|
+
maxHeight: `calc(100vh - ${I(e.calc(i).mul(2.5).equal())})`,
|
|
2408
2378
|
padding: "0",
|
|
2409
2379
|
overflow: "hidden",
|
|
2410
2380
|
borderInlineEnd: 0,
|
|
@@ -2425,7 +2395,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2425
2395
|
[`${t}-item, ${t}-submenu-title`]: {
|
|
2426
2396
|
display: "flex",
|
|
2427
2397
|
alignItems: "center",
|
|
2428
|
-
transition: [`border-color ${
|
|
2398
|
+
transition: [`border-color ${p}`, `background ${p}`, `padding ${f} ${s}`].join(","),
|
|
2429
2399
|
[`> ${t}-title-content`]: {
|
|
2430
2400
|
flex: "auto",
|
|
2431
2401
|
minWidth: 0,
|
|
@@ -2443,19 +2413,19 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2443
2413
|
border: 0,
|
|
2444
2414
|
borderRadius: 0,
|
|
2445
2415
|
boxShadow: "none",
|
|
2446
|
-
[`& > ${t}-submenu > ${t}-submenu-title`]:
|
|
2416
|
+
[`& > ${t}-submenu > ${t}-submenu-title`]: $,
|
|
2447
2417
|
[`& ${t}-item-group-title`]: {
|
|
2448
2418
|
paddingInlineStart: c
|
|
2449
2419
|
}
|
|
2450
2420
|
},
|
|
2451
2421
|
// >>>>> Item
|
|
2452
|
-
[`${t}-item`]:
|
|
2422
|
+
[`${t}-item`]: $
|
|
2453
2423
|
}
|
|
2454
2424
|
},
|
|
2455
2425
|
// Inline Collapse Only
|
|
2456
2426
|
{
|
|
2457
2427
|
[`${t}-inline-collapsed`]: {
|
|
2458
|
-
width:
|
|
2428
|
+
width: u,
|
|
2459
2429
|
[`&${t}-root`]: {
|
|
2460
2430
|
[`${t}-item, ${t}-submenu ${t}-submenu-title`]: {
|
|
2461
2431
|
[`> ${t}-inline-collapsed-noicon`]: {
|
|
@@ -2469,7 +2439,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2469
2439
|
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
2470
2440
|
> ${t}-submenu > ${t}-submenu-title`]: {
|
|
2471
2441
|
insetInlineStart: 0,
|
|
2472
|
-
paddingInline: `calc(50% - ${
|
|
2442
|
+
paddingInline: `calc(50% - ${I(e.calc(h).div(2).equal())} - ${I(m)})`,
|
|
2473
2443
|
textOverflow: "clip",
|
|
2474
2444
|
[`
|
|
2475
2445
|
${t}-submenu-arrow,
|
|
@@ -2480,7 +2450,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2480
2450
|
[`${t}-item-icon, ${o}`]: {
|
|
2481
2451
|
margin: 0,
|
|
2482
2452
|
fontSize: h,
|
|
2483
|
-
lineHeight:
|
|
2453
|
+
lineHeight: I(n),
|
|
2484
2454
|
"+ span": {
|
|
2485
2455
|
display: "inline-block",
|
|
2486
2456
|
opacity: 0
|
|
@@ -2499,13 +2469,13 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2499
2469
|
color: r
|
|
2500
2470
|
}
|
|
2501
2471
|
},
|
|
2502
|
-
[`${t}-item-group-title`]: Object.assign(Object.assign({},
|
|
2472
|
+
[`${t}-item-group-title`]: Object.assign(Object.assign({}, $o), {
|
|
2503
2473
|
paddingInline: v
|
|
2504
2474
|
})
|
|
2505
2475
|
}
|
|
2506
2476
|
}
|
|
2507
2477
|
];
|
|
2508
|
-
},
|
|
2478
|
+
}, bt = (e) => {
|
|
2509
2479
|
const {
|
|
2510
2480
|
componentCls: t,
|
|
2511
2481
|
motionDurationSlow: o,
|
|
@@ -2535,7 +2505,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2535
2505
|
transition: [`opacity ${o} ${r}`, `margin ${o}`, `color ${o}`].join(",")
|
|
2536
2506
|
}
|
|
2537
2507
|
},
|
|
2538
|
-
[`${t}-item-icon`]: Object.assign({},
|
|
2508
|
+
[`${t}-item-icon`]: Object.assign({}, yo()),
|
|
2539
2509
|
[`&${t}-item-only-child`]: {
|
|
2540
2510
|
[`> ${i}, > ${t}-item-icon`]: {
|
|
2541
2511
|
marginInlineEnd: 0
|
|
@@ -2560,7 +2530,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2560
2530
|
}
|
|
2561
2531
|
}
|
|
2562
2532
|
};
|
|
2563
|
-
},
|
|
2533
|
+
}, ht = (e) => {
|
|
2564
2534
|
const {
|
|
2565
2535
|
componentCls: t,
|
|
2566
2536
|
motionDurationSlow: o,
|
|
@@ -2592,15 +2562,15 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2592
2562
|
content: '""'
|
|
2593
2563
|
},
|
|
2594
2564
|
"&::before": {
|
|
2595
|
-
transform: `rotate(45deg) translateY(${
|
|
2565
|
+
transform: `rotate(45deg) translateY(${I(e.calc(i).mul(-1).equal())})`
|
|
2596
2566
|
},
|
|
2597
2567
|
"&::after": {
|
|
2598
|
-
transform: `rotate(-45deg) translateY(${
|
|
2568
|
+
transform: `rotate(-45deg) translateY(${I(i)})`
|
|
2599
2569
|
}
|
|
2600
2570
|
}
|
|
2601
2571
|
}
|
|
2602
2572
|
};
|
|
2603
|
-
},
|
|
2573
|
+
}, Qn = (e) => {
|
|
2604
2574
|
const {
|
|
2605
2575
|
antCls: t,
|
|
2606
2576
|
componentCls: o,
|
|
@@ -2610,22 +2580,22 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2610
2580
|
motionEaseInOut: i,
|
|
2611
2581
|
paddingXS: s,
|
|
2612
2582
|
padding: c,
|
|
2613
|
-
colorSplit:
|
|
2583
|
+
colorSplit: m,
|
|
2614
2584
|
lineWidth: d,
|
|
2615
2585
|
zIndexPopup: f,
|
|
2616
|
-
borderRadiusLG:
|
|
2586
|
+
borderRadiusLG: p,
|
|
2617
2587
|
subMenuItemBorderRadius: v,
|
|
2618
|
-
menuArrowSize:
|
|
2619
|
-
menuArrowOffset:
|
|
2588
|
+
menuArrowSize: g,
|
|
2589
|
+
menuArrowOffset: u,
|
|
2620
2590
|
lineType: h,
|
|
2621
|
-
groupTitleLineHeight:
|
|
2591
|
+
groupTitleLineHeight: $,
|
|
2622
2592
|
groupTitleFontSize: b
|
|
2623
2593
|
} = e;
|
|
2624
2594
|
return [
|
|
2625
2595
|
// Misc
|
|
2626
2596
|
{
|
|
2627
2597
|
"": {
|
|
2628
|
-
[o]: Object.assign(Object.assign({},
|
|
2598
|
+
[o]: Object.assign(Object.assign({}, at()), {
|
|
2629
2599
|
// Hidden
|
|
2630
2600
|
"&-hidden": {
|
|
2631
2601
|
display: "none"
|
|
@@ -2637,7 +2607,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2637
2607
|
}
|
|
2638
2608
|
},
|
|
2639
2609
|
{
|
|
2640
|
-
[o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
2610
|
+
[o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, be(e)), at()), {
|
|
2641
2611
|
marginBottom: 0,
|
|
2642
2612
|
paddingInlineStart: 0,
|
|
2643
2613
|
// Override default ul/ol
|
|
@@ -2663,9 +2633,9 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2663
2633
|
borderRadius: e.itemBorderRadius
|
|
2664
2634
|
},
|
|
2665
2635
|
[`${o}-item-group-title`]: {
|
|
2666
|
-
padding: `${
|
|
2636
|
+
padding: `${I(s)} ${I(c)}`,
|
|
2667
2637
|
fontSize: b,
|
|
2668
|
-
lineHeight:
|
|
2638
|
+
lineHeight: $,
|
|
2669
2639
|
transition: `all ${r}`
|
|
2670
2640
|
},
|
|
2671
2641
|
[`&-horizontal ${o}-submenu`]: {
|
|
@@ -2709,7 +2679,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2709
2679
|
[`${o}-item-divider`]: {
|
|
2710
2680
|
overflow: "hidden",
|
|
2711
2681
|
lineHeight: 0,
|
|
2712
|
-
borderColor:
|
|
2682
|
+
borderColor: m,
|
|
2713
2683
|
borderStyle: h,
|
|
2714
2684
|
borderWidth: 0,
|
|
2715
2685
|
borderTopWidth: d,
|
|
@@ -2719,13 +2689,13 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2719
2689
|
borderStyle: "dashed"
|
|
2720
2690
|
}
|
|
2721
2691
|
}
|
|
2722
|
-
}),
|
|
2692
|
+
}), bt(e)), {
|
|
2723
2693
|
[`${o}-item-group`]: {
|
|
2724
2694
|
[`${o}-item-group-list`]: {
|
|
2725
2695
|
margin: 0,
|
|
2726
2696
|
padding: 0,
|
|
2727
2697
|
[`${o}-item, ${o}-submenu-title`]: {
|
|
2728
|
-
paddingInline: `${
|
|
2698
|
+
paddingInline: `${I(e.calc(n).mul(2).equal())} ${I(c)}`
|
|
2729
2699
|
}
|
|
2730
2700
|
}
|
|
2731
2701
|
},
|
|
@@ -2734,7 +2704,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2734
2704
|
"&-popup": {
|
|
2735
2705
|
position: "absolute",
|
|
2736
2706
|
zIndex: f,
|
|
2737
|
-
borderRadius:
|
|
2707
|
+
borderRadius: p,
|
|
2738
2708
|
boxShadow: "none",
|
|
2739
2709
|
transformOrigin: "0 0",
|
|
2740
2710
|
[`&${o}-submenu`]: {
|
|
@@ -2751,8 +2721,8 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2751
2721
|
content: '""'
|
|
2752
2722
|
},
|
|
2753
2723
|
[`> ${o}`]: Object.assign(Object.assign(Object.assign({
|
|
2754
|
-
borderRadius:
|
|
2755
|
-
},
|
|
2724
|
+
borderRadius: p
|
|
2725
|
+
}, bt(e)), ht(e)), {
|
|
2756
2726
|
[`${o}-item, ${o}-submenu > ${o}-submenu-title`]: {
|
|
2757
2727
|
borderRadius: v
|
|
2758
2728
|
},
|
|
@@ -2786,25 +2756,25 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2786
2756
|
paddingTop: e.paddingXS
|
|
2787
2757
|
}
|
|
2788
2758
|
}
|
|
2789
|
-
}),
|
|
2759
|
+
}), ht(e)), {
|
|
2790
2760
|
[`&-inline-collapsed ${o}-submenu-arrow,
|
|
2791
2761
|
&-inline ${o}-submenu-arrow`]: {
|
|
2792
2762
|
// ↓
|
|
2793
2763
|
"&::before": {
|
|
2794
|
-
transform: `rotate(-45deg) translateX(${
|
|
2764
|
+
transform: `rotate(-45deg) translateX(${I(u)})`
|
|
2795
2765
|
},
|
|
2796
2766
|
"&::after": {
|
|
2797
|
-
transform: `rotate(45deg) translateX(${
|
|
2767
|
+
transform: `rotate(45deg) translateX(${I(e.calc(u).mul(-1).equal())})`
|
|
2798
2768
|
}
|
|
2799
2769
|
},
|
|
2800
2770
|
[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]: {
|
|
2801
2771
|
// ↑
|
|
2802
|
-
transform: `translateY(${
|
|
2772
|
+
transform: `translateY(${I(e.calc(g).mul(0.2).mul(-1).equal())})`,
|
|
2803
2773
|
"&::after": {
|
|
2804
|
-
transform: `rotate(-45deg) translateX(${
|
|
2774
|
+
transform: `rotate(-45deg) translateX(${I(e.calc(u).mul(-1).equal())})`
|
|
2805
2775
|
},
|
|
2806
2776
|
"&::before": {
|
|
2807
|
-
transform: `rotate(45deg) translateX(${
|
|
2777
|
+
transform: `rotate(45deg) translateX(${I(u)})`
|
|
2808
2778
|
}
|
|
2809
2779
|
}
|
|
2810
2780
|
})
|
|
@@ -2818,7 +2788,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2818
2788
|
}
|
|
2819
2789
|
}
|
|
2820
2790
|
];
|
|
2821
|
-
},
|
|
2791
|
+
}, Jn = (e) => {
|
|
2822
2792
|
var t, o, n;
|
|
2823
2793
|
const {
|
|
2824
2794
|
colorPrimary: r,
|
|
@@ -2826,25 +2796,25 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2826
2796
|
colorTextDisabled: i,
|
|
2827
2797
|
colorErrorBg: s,
|
|
2828
2798
|
colorText: c,
|
|
2829
|
-
colorTextDescription:
|
|
2799
|
+
colorTextDescription: m,
|
|
2830
2800
|
colorBgContainer: d,
|
|
2831
2801
|
colorFillAlter: f,
|
|
2832
|
-
colorFillContent:
|
|
2802
|
+
colorFillContent: p,
|
|
2833
2803
|
lineWidth: v,
|
|
2834
|
-
lineWidthBold:
|
|
2835
|
-
controlItemBgActive:
|
|
2804
|
+
lineWidthBold: g,
|
|
2805
|
+
controlItemBgActive: u,
|
|
2836
2806
|
colorBgTextHover: h,
|
|
2837
|
-
controlHeightLG:
|
|
2807
|
+
controlHeightLG: $,
|
|
2838
2808
|
lineHeight: b,
|
|
2839
2809
|
colorBgElevated: S,
|
|
2840
|
-
marginXXS:
|
|
2841
|
-
padding:
|
|
2810
|
+
marginXXS: N,
|
|
2811
|
+
padding: y,
|
|
2842
2812
|
fontSize: M,
|
|
2843
|
-
controlHeightSM:
|
|
2813
|
+
controlHeightSM: j,
|
|
2844
2814
|
fontSizeLG: T,
|
|
2845
|
-
colorTextLightSolid:
|
|
2846
|
-
colorErrorHover:
|
|
2847
|
-
} = e,
|
|
2815
|
+
colorTextLightSolid: O,
|
|
2816
|
+
colorErrorHover: E
|
|
2817
|
+
} = e, H = (t = e.activeBarWidth) !== null && t !== void 0 ? t : 0, x = (o = e.activeBarBorderWidth) !== null && o !== void 0 ? o : v, C = (n = e.itemMarginInline) !== null && n !== void 0 ? n : e.marginXXS, w = new lt(O).setA(0.65).toRgbString();
|
|
2848
2818
|
return {
|
|
2849
2819
|
dropdownWidth: 160,
|
|
2850
2820
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
@@ -2858,8 +2828,8 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2858
2828
|
itemHoverColor: c,
|
|
2859
2829
|
colorItemTextHoverHorizontal: r,
|
|
2860
2830
|
horizontalItemHoverColor: r,
|
|
2861
|
-
colorGroupTitle:
|
|
2862
|
-
groupTitleColor:
|
|
2831
|
+
colorGroupTitle: m,
|
|
2832
|
+
groupTitleColor: m,
|
|
2863
2833
|
colorItemTextSelected: r,
|
|
2864
2834
|
itemSelectedColor: r,
|
|
2865
2835
|
subMenuItemSelectedColor: r,
|
|
@@ -2869,20 +2839,20 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2869
2839
|
itemBg: d,
|
|
2870
2840
|
colorItemBgHover: h,
|
|
2871
2841
|
itemHoverBg: h,
|
|
2872
|
-
colorItemBgActive:
|
|
2873
|
-
itemActiveBg:
|
|
2842
|
+
colorItemBgActive: p,
|
|
2843
|
+
itemActiveBg: u,
|
|
2874
2844
|
colorSubItemBg: f,
|
|
2875
2845
|
subMenuItemBg: f,
|
|
2876
|
-
colorItemBgSelected:
|
|
2877
|
-
itemSelectedBg:
|
|
2846
|
+
colorItemBgSelected: u,
|
|
2847
|
+
itemSelectedBg: u,
|
|
2878
2848
|
colorItemBgSelectedHorizontal: "transparent",
|
|
2879
2849
|
horizontalItemSelectedBg: "transparent",
|
|
2880
2850
|
colorActiveBarWidth: 0,
|
|
2881
|
-
activeBarWidth:
|
|
2882
|
-
colorActiveBarHeight:
|
|
2883
|
-
activeBarHeight:
|
|
2851
|
+
activeBarWidth: H,
|
|
2852
|
+
colorActiveBarHeight: g,
|
|
2853
|
+
activeBarHeight: g,
|
|
2884
2854
|
colorActiveBarBorderSize: v,
|
|
2885
|
-
activeBarBorderWidth:
|
|
2855
|
+
activeBarBorderWidth: x,
|
|
2886
2856
|
// Disabled
|
|
2887
2857
|
colorItemTextDisabled: i,
|
|
2888
2858
|
itemDisabledColor: i,
|
|
@@ -2897,137 +2867,134 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2897
2867
|
dangerItemActiveBg: s,
|
|
2898
2868
|
colorDangerItemBgSelected: s,
|
|
2899
2869
|
dangerItemSelectedBg: s,
|
|
2900
|
-
itemMarginInline:
|
|
2870
|
+
itemMarginInline: C,
|
|
2901
2871
|
horizontalItemBorderRadius: 0,
|
|
2902
2872
|
horizontalItemHoverBg: "transparent",
|
|
2903
|
-
itemHeight:
|
|
2873
|
+
itemHeight: $,
|
|
2904
2874
|
groupTitleLineHeight: b,
|
|
2905
|
-
collapsedWidth:
|
|
2875
|
+
collapsedWidth: $ * 2,
|
|
2906
2876
|
popupBg: S,
|
|
2907
|
-
itemMarginBlock:
|
|
2908
|
-
itemPaddingInline:
|
|
2909
|
-
horizontalLineHeight: `${
|
|
2877
|
+
itemMarginBlock: N,
|
|
2878
|
+
itemPaddingInline: y,
|
|
2879
|
+
horizontalLineHeight: `${$ * 1.15}px`,
|
|
2910
2880
|
iconSize: M,
|
|
2911
|
-
iconMarginInlineEnd:
|
|
2881
|
+
iconMarginInlineEnd: j - M,
|
|
2912
2882
|
collapsedIconSize: T,
|
|
2913
2883
|
groupTitleFontSize: M,
|
|
2914
2884
|
// Disabled
|
|
2915
|
-
darkItemDisabledColor: new
|
|
2885
|
+
darkItemDisabledColor: new lt(O).setA(0.25).toRgbString(),
|
|
2916
2886
|
// Dark
|
|
2917
|
-
darkItemColor:
|
|
2887
|
+
darkItemColor: w,
|
|
2918
2888
|
darkDangerItemColor: a,
|
|
2919
2889
|
darkItemBg: "#001529",
|
|
2920
2890
|
darkPopupBg: "#001529",
|
|
2921
2891
|
darkSubMenuItemBg: "#000c17",
|
|
2922
|
-
darkItemSelectedColor:
|
|
2892
|
+
darkItemSelectedColor: O,
|
|
2923
2893
|
darkItemSelectedBg: r,
|
|
2924
2894
|
darkDangerItemSelectedBg: a,
|
|
2925
2895
|
darkItemHoverBg: "transparent",
|
|
2926
|
-
darkGroupTitleColor:
|
|
2927
|
-
darkItemHoverColor:
|
|
2928
|
-
darkDangerItemHoverColor:
|
|
2929
|
-
darkDangerItemSelectedColor:
|
|
2896
|
+
darkGroupTitleColor: w,
|
|
2897
|
+
darkItemHoverColor: O,
|
|
2898
|
+
darkDangerItemHoverColor: E,
|
|
2899
|
+
darkDangerItemSelectedColor: O,
|
|
2930
2900
|
darkDangerItemActiveBg: a,
|
|
2931
2901
|
// internal
|
|
2932
|
-
itemWidth:
|
|
2902
|
+
itemWidth: H ? `calc(100% + ${x}px)` : `calc(100% - ${C * 2}px)`
|
|
2933
2903
|
};
|
|
2934
|
-
},
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
}
|
|
3018
|
-
})(e, t);
|
|
3019
|
-
}, Lt = (e) => {
|
|
2904
|
+
}, er = (e, t = e, o = !0) => de("Menu", (r) => {
|
|
2905
|
+
const {
|
|
2906
|
+
colorBgElevated: a,
|
|
2907
|
+
controlHeightLG: i,
|
|
2908
|
+
fontSize: s,
|
|
2909
|
+
darkItemColor: c,
|
|
2910
|
+
darkDangerItemColor: m,
|
|
2911
|
+
darkItemBg: d,
|
|
2912
|
+
darkSubMenuItemBg: f,
|
|
2913
|
+
darkItemSelectedColor: p,
|
|
2914
|
+
darkItemSelectedBg: v,
|
|
2915
|
+
darkDangerItemSelectedBg: g,
|
|
2916
|
+
darkItemHoverBg: u,
|
|
2917
|
+
darkGroupTitleColor: h,
|
|
2918
|
+
darkItemHoverColor: $,
|
|
2919
|
+
darkItemDisabledColor: b,
|
|
2920
|
+
darkDangerItemHoverColor: S,
|
|
2921
|
+
darkDangerItemSelectedColor: N,
|
|
2922
|
+
darkDangerItemActiveBg: y,
|
|
2923
|
+
popupBg: M,
|
|
2924
|
+
darkPopupBg: j
|
|
2925
|
+
} = r, T = r.calc(s).div(7).mul(5).equal(), O = ce(r, {
|
|
2926
|
+
menuArrowSize: T,
|
|
2927
|
+
menuHorizontalHeight: r.calc(i).mul(1.15).equal(),
|
|
2928
|
+
menuArrowOffset: r.calc(T).mul(0.25).equal(),
|
|
2929
|
+
menuSubMenuBg: a,
|
|
2930
|
+
calc: r.calc,
|
|
2931
|
+
popupBg: M
|
|
2932
|
+
}), E = ce(O, {
|
|
2933
|
+
itemColor: c,
|
|
2934
|
+
itemHoverColor: $,
|
|
2935
|
+
groupTitleColor: h,
|
|
2936
|
+
itemSelectedColor: p,
|
|
2937
|
+
subMenuItemSelectedColor: p,
|
|
2938
|
+
itemBg: d,
|
|
2939
|
+
popupBg: j,
|
|
2940
|
+
subMenuItemBg: f,
|
|
2941
|
+
itemActiveBg: "transparent",
|
|
2942
|
+
itemSelectedBg: v,
|
|
2943
|
+
activeBarHeight: 0,
|
|
2944
|
+
activeBarBorderWidth: 0,
|
|
2945
|
+
itemHoverBg: u,
|
|
2946
|
+
// Disabled
|
|
2947
|
+
itemDisabledColor: b,
|
|
2948
|
+
// Danger
|
|
2949
|
+
dangerItemColor: m,
|
|
2950
|
+
dangerItemHoverColor: S,
|
|
2951
|
+
dangerItemSelectedColor: N,
|
|
2952
|
+
dangerItemActiveBg: y,
|
|
2953
|
+
dangerItemSelectedBg: g,
|
|
2954
|
+
menuSubMenuBg: f,
|
|
2955
|
+
// Horizontal
|
|
2956
|
+
horizontalItemSelectedColor: p,
|
|
2957
|
+
horizontalItemSelectedBg: v
|
|
2958
|
+
});
|
|
2959
|
+
return [
|
|
2960
|
+
// Basic
|
|
2961
|
+
Qn(O),
|
|
2962
|
+
// Horizontal
|
|
2963
|
+
qn(O),
|
|
2964
|
+
// Hard code for some light style
|
|
2965
|
+
// Vertical
|
|
2966
|
+
Zn(O),
|
|
2967
|
+
// Hard code for some light style
|
|
2968
|
+
// Theme
|
|
2969
|
+
ft(O, "light"),
|
|
2970
|
+
ft(E, "dark"),
|
|
2971
|
+
// RTL
|
|
2972
|
+
Kn(O),
|
|
2973
|
+
// Motion
|
|
2974
|
+
Wo(O),
|
|
2975
|
+
Oe(O, "slide-up"),
|
|
2976
|
+
Oe(O, "slide-down"),
|
|
2977
|
+
_e(O, "zoom-big")
|
|
2978
|
+
];
|
|
2979
|
+
}, Jn, {
|
|
2980
|
+
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"]],
|
|
2981
|
+
// Dropdown will handle menu style self. We do not need to handle this.
|
|
2982
|
+
injectStyle: o,
|
|
2983
|
+
unitless: {
|
|
2984
|
+
groupTitleLineHeight: !0
|
|
2985
|
+
}
|
|
2986
|
+
})(e, t), Xt = (e) => {
|
|
3020
2987
|
var t;
|
|
3021
2988
|
const {
|
|
3022
2989
|
popupClassName: o,
|
|
3023
2990
|
icon: n,
|
|
3024
2991
|
title: r,
|
|
3025
2992
|
theme: a
|
|
3026
|
-
} = e, i = l.useContext(
|
|
2993
|
+
} = e, i = l.useContext(Ne), {
|
|
3027
2994
|
prefixCls: s,
|
|
3028
2995
|
inlineCollapsed: c,
|
|
3029
|
-
theme:
|
|
3030
|
-
} = i, d =
|
|
2996
|
+
theme: m
|
|
2997
|
+
} = i, d = Io();
|
|
3031
2998
|
let f;
|
|
3032
2999
|
if (!n)
|
|
3033
3000
|
f = c && !d.length && r && typeof r == "string" ? /* @__PURE__ */ l.createElement("div", {
|
|
@@ -3036,142 +3003,142 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
3036
3003
|
className: `${s}-title-content`
|
|
3037
3004
|
}, r);
|
|
3038
3005
|
else {
|
|
3039
|
-
const
|
|
3006
|
+
const g = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
|
|
3040
3007
|
f = /* @__PURE__ */ l.createElement(l.Fragment, null, ue(n, {
|
|
3041
|
-
className: _(/* @__PURE__ */ l.isValidElement(n) ? (t = n.props) === null || t === void 0 ? void 0 : t.className :
|
|
3042
|
-
}),
|
|
3008
|
+
className: _(/* @__PURE__ */ l.isValidElement(n) ? (t = n.props) === null || t === void 0 ? void 0 : t.className : void 0, `${s}-item-icon`)
|
|
3009
|
+
}), g ? r : /* @__PURE__ */ l.createElement("span", {
|
|
3043
3010
|
className: `${s}-title-content`
|
|
3044
3011
|
}, r));
|
|
3045
3012
|
}
|
|
3046
|
-
const
|
|
3013
|
+
const p = l.useMemo(() => Object.assign(Object.assign({}, i), {
|
|
3047
3014
|
firstLevel: !1
|
|
3048
3015
|
}), [i]), [v] = qe("Menu");
|
|
3049
|
-
return /* @__PURE__ */ l.createElement(
|
|
3050
|
-
value:
|
|
3051
|
-
}, /* @__PURE__ */ l.createElement(
|
|
3016
|
+
return /* @__PURE__ */ l.createElement(Ne.Provider, {
|
|
3017
|
+
value: p
|
|
3018
|
+
}, /* @__PURE__ */ l.createElement(Po, Object.assign({}, $e(e, ["icon"]), {
|
|
3052
3019
|
title: f,
|
|
3053
|
-
popupClassName: _(s, o, `${s}-${a ||
|
|
3020
|
+
popupClassName: _(s, o, `${s}-${a || m}`),
|
|
3054
3021
|
popupStyle: Object.assign({
|
|
3055
3022
|
zIndex: v
|
|
3056
3023
|
}, e.popupStyle)
|
|
3057
3024
|
})));
|
|
3058
3025
|
};
|
|
3059
|
-
var
|
|
3026
|
+
var tr = function(e, t) {
|
|
3060
3027
|
var o = {};
|
|
3061
3028
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
3062
3029
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
3063
3030
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
3064
3031
|
return o;
|
|
3065
3032
|
};
|
|
3066
|
-
function
|
|
3033
|
+
function ke(e) {
|
|
3067
3034
|
return e === null || e === !1;
|
|
3068
3035
|
}
|
|
3069
|
-
const
|
|
3070
|
-
item:
|
|
3071
|
-
submenu:
|
|
3072
|
-
divider:
|
|
3073
|
-
},
|
|
3036
|
+
const or = {
|
|
3037
|
+
item: Wt,
|
|
3038
|
+
submenu: Xt,
|
|
3039
|
+
divider: Vt
|
|
3040
|
+
}, nr = /* @__PURE__ */ We((e, t) => {
|
|
3074
3041
|
var o;
|
|
3075
|
-
const n = l.useContext(
|
|
3042
|
+
const n = l.useContext(Be), r = n || {}, {
|
|
3076
3043
|
getPrefixCls: a,
|
|
3077
3044
|
getPopupContainer: i,
|
|
3078
3045
|
direction: s,
|
|
3079
3046
|
menu: c
|
|
3080
|
-
} = l.useContext(
|
|
3047
|
+
} = l.useContext(re), m = a(), {
|
|
3081
3048
|
prefixCls: d,
|
|
3082
3049
|
className: f,
|
|
3083
|
-
style:
|
|
3050
|
+
style: p,
|
|
3084
3051
|
theme: v = "light",
|
|
3085
|
-
expandIcon:
|
|
3086
|
-
_internalDisableMenuItemTitleTooltip:
|
|
3052
|
+
expandIcon: g,
|
|
3053
|
+
_internalDisableMenuItemTitleTooltip: u,
|
|
3087
3054
|
inlineCollapsed: h,
|
|
3088
|
-
siderCollapsed:
|
|
3055
|
+
siderCollapsed: $,
|
|
3089
3056
|
rootClassName: b,
|
|
3090
3057
|
mode: S,
|
|
3091
|
-
selectable:
|
|
3092
|
-
onClick:
|
|
3058
|
+
selectable: N,
|
|
3059
|
+
onClick: y,
|
|
3093
3060
|
overflowedIndicatorPopupClassName: M
|
|
3094
|
-
} = e,
|
|
3061
|
+
} = e, j = tr(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), T = $e(j, ["collapsedWidth"]);
|
|
3095
3062
|
if (process.env.NODE_ENV !== "production") {
|
|
3096
|
-
const
|
|
3097
|
-
process.env.NODE_ENV !== "production" &&
|
|
3063
|
+
const k = he("Menu");
|
|
3064
|
+
process.env.NODE_ENV !== "production" && k(!("inlineCollapsed" in e && S !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), k.deprecated("items" in e && !e.children, "children", "items");
|
|
3098
3065
|
}
|
|
3099
3066
|
(o = r.validator) === null || o === void 0 || o.call(r, {
|
|
3100
3067
|
mode: S
|
|
3101
3068
|
});
|
|
3102
|
-
const
|
|
3103
|
-
var
|
|
3104
|
-
|
|
3105
|
-
}),
|
|
3069
|
+
const O = St((...k) => {
|
|
3070
|
+
var R;
|
|
3071
|
+
y == null || y.apply(void 0, k), (R = r.onClick) === null || R === void 0 || R.call(r);
|
|
3072
|
+
}), E = r.mode || S, H = N ?? r.selectable, x = h ?? $, C = {
|
|
3106
3073
|
horizontal: {
|
|
3107
|
-
motionName: `${
|
|
3074
|
+
motionName: `${m}-slide-up`
|
|
3108
3075
|
},
|
|
3109
|
-
inline:
|
|
3076
|
+
inline: Co(m),
|
|
3110
3077
|
other: {
|
|
3111
|
-
motionName: `${
|
|
3078
|
+
motionName: `${m}-zoom-big`
|
|
3112
3079
|
}
|
|
3113
|
-
},
|
|
3114
|
-
var
|
|
3115
|
-
if (typeof
|
|
3116
|
-
return
|
|
3117
|
-
if (typeof r.expandIcon == "function" ||
|
|
3080
|
+
}, w = a("menu", d || r.prefixCls), B = Te(w), [P, L, z] = er(w, B, !n), F = _(`${w}-${v}`, c == null ? void 0 : c.className, f), D = l.useMemo(() => {
|
|
3081
|
+
var k, R;
|
|
3082
|
+
if (typeof g == "function" || ke(g))
|
|
3083
|
+
return g || null;
|
|
3084
|
+
if (typeof r.expandIcon == "function" || ke(r.expandIcon))
|
|
3118
3085
|
return r.expandIcon || null;
|
|
3119
|
-
if (typeof (c == null ? void 0 : c.expandIcon) == "function" ||
|
|
3086
|
+
if (typeof (c == null ? void 0 : c.expandIcon) == "function" || ke(c == null ? void 0 : c.expandIcon))
|
|
3120
3087
|
return (c == null ? void 0 : c.expandIcon) || null;
|
|
3121
|
-
const
|
|
3122
|
-
return ue(
|
|
3123
|
-
className: _(`${
|
|
3088
|
+
const W = (k = g ?? (r == null ? void 0 : r.expandIcon)) !== null && k !== void 0 ? k : c == null ? void 0 : c.expandIcon;
|
|
3089
|
+
return ue(W, {
|
|
3090
|
+
className: _(`${w}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(W) ? (R = W.props) === null || R === void 0 ? void 0 : R.className : void 0)
|
|
3124
3091
|
});
|
|
3125
|
-
}, [
|
|
3126
|
-
prefixCls:
|
|
3127
|
-
inlineCollapsed:
|
|
3092
|
+
}, [g, r == null ? void 0 : r.expandIcon, c == null ? void 0 : c.expandIcon, w]), A = l.useMemo(() => ({
|
|
3093
|
+
prefixCls: w,
|
|
3094
|
+
inlineCollapsed: x || !1,
|
|
3128
3095
|
direction: s,
|
|
3129
3096
|
firstLevel: !0,
|
|
3130
3097
|
theme: v,
|
|
3131
|
-
mode:
|
|
3132
|
-
disableMenuItemTitleTooltip:
|
|
3133
|
-
}), [
|
|
3134
|
-
return
|
|
3098
|
+
mode: E,
|
|
3099
|
+
disableMenuItemTitleTooltip: u
|
|
3100
|
+
}), [w, x, s, u, v]);
|
|
3101
|
+
return P(/* @__PURE__ */ l.createElement(Be.Provider, {
|
|
3135
3102
|
value: null
|
|
3136
|
-
}, /* @__PURE__ */ l.createElement(
|
|
3137
|
-
value:
|
|
3138
|
-
}, /* @__PURE__ */ l.createElement(
|
|
3103
|
+
}, /* @__PURE__ */ l.createElement(Ne.Provider, {
|
|
3104
|
+
value: A
|
|
3105
|
+
}, /* @__PURE__ */ l.createElement(Eo, Object.assign({
|
|
3139
3106
|
getPopupContainer: i,
|
|
3140
|
-
overflowedIndicator: /* @__PURE__ */ l.createElement(
|
|
3141
|
-
overflowedIndicatorPopupClassName: _(
|
|
3142
|
-
mode:
|
|
3143
|
-
selectable:
|
|
3144
|
-
onClick:
|
|
3107
|
+
overflowedIndicator: /* @__PURE__ */ l.createElement(Ot, null),
|
|
3108
|
+
overflowedIndicatorPopupClassName: _(w, `${w}-${v}`, M),
|
|
3109
|
+
mode: E,
|
|
3110
|
+
selectable: H,
|
|
3111
|
+
onClick: O
|
|
3145
3112
|
}, T, {
|
|
3146
|
-
inlineCollapsed:
|
|
3147
|
-
style: Object.assign(Object.assign({}, c == null ? void 0 : c.style),
|
|
3113
|
+
inlineCollapsed: x,
|
|
3114
|
+
style: Object.assign(Object.assign({}, c == null ? void 0 : c.style), p),
|
|
3148
3115
|
className: F,
|
|
3149
|
-
prefixCls:
|
|
3116
|
+
prefixCls: w,
|
|
3150
3117
|
direction: s,
|
|
3151
|
-
defaultMotions:
|
|
3152
|
-
expandIcon:
|
|
3118
|
+
defaultMotions: C,
|
|
3119
|
+
expandIcon: D,
|
|
3153
3120
|
ref: t,
|
|
3154
|
-
rootClassName: _(b,
|
|
3155
|
-
_internalComponents:
|
|
3121
|
+
rootClassName: _(b, L, r.rootClassName, z, B),
|
|
3122
|
+
_internalComponents: or
|
|
3156
3123
|
})))));
|
|
3157
|
-
}),
|
|
3158
|
-
const o =
|
|
3159
|
-
return
|
|
3124
|
+
}), fe = /* @__PURE__ */ We((e, t) => {
|
|
3125
|
+
const o = ze(null), n = l.useContext(tt);
|
|
3126
|
+
return wt(t, () => ({
|
|
3160
3127
|
menu: o.current,
|
|
3161
3128
|
focus: (r) => {
|
|
3162
3129
|
var a;
|
|
3163
3130
|
(a = o.current) === null || a === void 0 || a.focus(r);
|
|
3164
3131
|
}
|
|
3165
|
-
})), /* @__PURE__ */ l.createElement(
|
|
3132
|
+
})), /* @__PURE__ */ l.createElement(nr, Object.assign({
|
|
3166
3133
|
ref: o
|
|
3167
3134
|
}, e, n));
|
|
3168
3135
|
});
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
process.env.NODE_ENV !== "production" && (
|
|
3174
|
-
const
|
|
3136
|
+
fe.Item = Wt;
|
|
3137
|
+
fe.SubMenu = Xt;
|
|
3138
|
+
fe.Divider = Vt;
|
|
3139
|
+
fe.ItemGroup = No;
|
|
3140
|
+
process.env.NODE_ENV !== "production" && (fe.displayName = "Menu");
|
|
3141
|
+
const rr = (e) => {
|
|
3175
3142
|
const {
|
|
3176
3143
|
componentCls: t,
|
|
3177
3144
|
menuCls: o,
|
|
@@ -3191,7 +3158,7 @@ const er = (e) => {
|
|
|
3191
3158
|
}
|
|
3192
3159
|
}
|
|
3193
3160
|
};
|
|
3194
|
-
},
|
|
3161
|
+
}, ir = (e) => {
|
|
3195
3162
|
const {
|
|
3196
3163
|
componentCls: t,
|
|
3197
3164
|
menuCls: o,
|
|
@@ -3201,13 +3168,13 @@ const er = (e) => {
|
|
|
3201
3168
|
antCls: i,
|
|
3202
3169
|
iconCls: s,
|
|
3203
3170
|
motionDurationMid: c,
|
|
3204
|
-
paddingBlock:
|
|
3171
|
+
paddingBlock: m,
|
|
3205
3172
|
fontSize: d,
|
|
3206
3173
|
dropdownEdgeChildPadding: f,
|
|
3207
|
-
colorTextDisabled:
|
|
3174
|
+
colorTextDisabled: p,
|
|
3208
3175
|
fontSizeIcon: v,
|
|
3209
|
-
controlPaddingHorizontal:
|
|
3210
|
-
colorBgElevated:
|
|
3176
|
+
controlPaddingHorizontal: g,
|
|
3177
|
+
colorBgElevated: u
|
|
3211
3178
|
} = e;
|
|
3212
3179
|
return [
|
|
3213
3180
|
{
|
|
@@ -3267,7 +3234,7 @@ const er = (e) => {
|
|
|
3267
3234
|
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
|
|
3268
3235
|
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
|
|
3269
3236
|
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]: {
|
|
3270
|
-
animationName:
|
|
3237
|
+
animationName: To
|
|
3271
3238
|
},
|
|
3272
3239
|
[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
|
|
3273
3240
|
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
|
|
@@ -3275,24 +3242,24 @@ const er = (e) => {
|
|
|
3275
3242
|
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
|
|
3276
3243
|
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
|
|
3277
3244
|
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]: {
|
|
3278
|
-
animationName:
|
|
3245
|
+
animationName: jo
|
|
3279
3246
|
},
|
|
3280
3247
|
[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
3281
3248
|
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
|
|
3282
3249
|
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]: {
|
|
3283
|
-
animationName:
|
|
3250
|
+
animationName: zo
|
|
3284
3251
|
},
|
|
3285
3252
|
[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
|
|
3286
3253
|
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
|
|
3287
3254
|
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]: {
|
|
3288
|
-
animationName:
|
|
3255
|
+
animationName: Bo
|
|
3289
3256
|
}
|
|
3290
3257
|
}
|
|
3291
3258
|
},
|
|
3292
3259
|
// =============================================================
|
|
3293
3260
|
// == Arrow style ==
|
|
3294
3261
|
// =============================================================
|
|
3295
|
-
|
|
3262
|
+
Je(e, u, {
|
|
3296
3263
|
arrowPlacement: {
|
|
3297
3264
|
top: !0,
|
|
3298
3265
|
bottom: !0
|
|
@@ -3317,22 +3284,22 @@ const er = (e) => {
|
|
|
3317
3284
|
margin: 0
|
|
3318
3285
|
}
|
|
3319
3286
|
},
|
|
3320
|
-
[`${t}, ${t}-menu-submenu`]: Object.assign(Object.assign({},
|
|
3287
|
+
[`${t}, ${t}-menu-submenu`]: Object.assign(Object.assign({}, be(e)), {
|
|
3321
3288
|
[o]: Object.assign(Object.assign({
|
|
3322
3289
|
padding: f,
|
|
3323
3290
|
listStyleType: "none",
|
|
3324
|
-
backgroundColor:
|
|
3291
|
+
backgroundColor: u,
|
|
3325
3292
|
backgroundClip: "padding-box",
|
|
3326
3293
|
borderRadius: e.borderRadiusLG,
|
|
3327
3294
|
outline: "none",
|
|
3328
3295
|
boxShadow: e.boxShadowSecondary
|
|
3329
|
-
},
|
|
3296
|
+
}, st(e)), {
|
|
3330
3297
|
"&:empty": {
|
|
3331
3298
|
padding: 0,
|
|
3332
3299
|
boxShadow: "none"
|
|
3333
3300
|
},
|
|
3334
3301
|
[`${o}-item-group-title`]: {
|
|
3335
|
-
padding: `${
|
|
3302
|
+
padding: `${I(m)} ${I(g)}`,
|
|
3336
3303
|
color: e.colorTextDescription,
|
|
3337
3304
|
transition: `all ${c}`
|
|
3338
3305
|
},
|
|
@@ -3377,7 +3344,7 @@ const er = (e) => {
|
|
|
3377
3344
|
[`${o}-item, ${o}-submenu-title`]: Object.assign(Object.assign({
|
|
3378
3345
|
display: "flex",
|
|
3379
3346
|
margin: 0,
|
|
3380
|
-
padding: `${
|
|
3347
|
+
padding: `${I(m)} ${I(g)}`,
|
|
3381
3348
|
color: e.colorText,
|
|
3382
3349
|
fontWeight: "normal",
|
|
3383
3350
|
fontSize: d,
|
|
@@ -3388,7 +3355,7 @@ const er = (e) => {
|
|
|
3388
3355
|
"&:hover, &-active": {
|
|
3389
3356
|
backgroundColor: e.controlItemBgHover
|
|
3390
3357
|
}
|
|
3391
|
-
},
|
|
3358
|
+
}, st(e)), {
|
|
3392
3359
|
"&-selected": {
|
|
3393
3360
|
color: e.colorPrimary,
|
|
3394
3361
|
backgroundColor: e.controlItemBgActive,
|
|
@@ -3397,11 +3364,11 @@ const er = (e) => {
|
|
|
3397
3364
|
}
|
|
3398
3365
|
},
|
|
3399
3366
|
"&-disabled": {
|
|
3400
|
-
color:
|
|
3367
|
+
color: p,
|
|
3401
3368
|
cursor: "not-allowed",
|
|
3402
3369
|
"&:hover": {
|
|
3403
|
-
color:
|
|
3404
|
-
backgroundColor:
|
|
3370
|
+
color: p,
|
|
3371
|
+
backgroundColor: u,
|
|
3405
3372
|
cursor: "not-allowed"
|
|
3406
3373
|
},
|
|
3407
3374
|
a: {
|
|
@@ -3411,7 +3378,7 @@ const er = (e) => {
|
|
|
3411
3378
|
"&-divider": {
|
|
3412
3379
|
height: 1,
|
|
3413
3380
|
// By design
|
|
3414
|
-
margin: `${
|
|
3381
|
+
margin: `${I(e.marginXXS)} 0`,
|
|
3415
3382
|
overflow: "hidden",
|
|
3416
3383
|
lineHeight: 0,
|
|
3417
3384
|
backgroundColor: e.colorSplit
|
|
@@ -3428,20 +3395,20 @@ const er = (e) => {
|
|
|
3428
3395
|
}
|
|
3429
3396
|
}),
|
|
3430
3397
|
[`${o}-item-group-list`]: {
|
|
3431
|
-
margin: `0 ${
|
|
3398
|
+
margin: `0 ${I(e.marginXS)}`,
|
|
3432
3399
|
padding: 0,
|
|
3433
3400
|
listStyle: "none"
|
|
3434
3401
|
},
|
|
3435
3402
|
[`${o}-submenu-title`]: {
|
|
3436
|
-
paddingInlineEnd: e.calc(
|
|
3403
|
+
paddingInlineEnd: e.calc(g).add(e.fontSizeSM).equal()
|
|
3437
3404
|
},
|
|
3438
3405
|
[`${o}-submenu-vertical`]: {
|
|
3439
3406
|
position: "relative"
|
|
3440
3407
|
},
|
|
3441
3408
|
[`${o}-submenu${o}-submenu-disabled ${t}-menu-submenu-title`]: {
|
|
3442
3409
|
[`&, ${t}-menu-submenu-arrow-icon`]: {
|
|
3443
|
-
color:
|
|
3444
|
-
backgroundColor:
|
|
3410
|
+
color: p,
|
|
3411
|
+
backgroundColor: u,
|
|
3445
3412
|
cursor: "not-allowed"
|
|
3446
3413
|
}
|
|
3447
3414
|
},
|
|
@@ -3453,15 +3420,15 @@ const er = (e) => {
|
|
|
3453
3420
|
})
|
|
3454
3421
|
},
|
|
3455
3422
|
// Follow code may reuse in other components
|
|
3456
|
-
[
|
|
3423
|
+
[Oe(e, "slide-up"), Oe(e, "slide-down"), dt(e, "move-up"), dt(e, "move-down"), _e(e, "zoom-big")]
|
|
3457
3424
|
];
|
|
3458
|
-
},
|
|
3425
|
+
}, ar = (e) => Object.assign(Object.assign({
|
|
3459
3426
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
3460
3427
|
paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
|
|
3461
|
-
},
|
|
3428
|
+
}, Re({
|
|
3462
3429
|
contentRadius: e.borderRadiusLG,
|
|
3463
3430
|
limitVerticalRadius: !0
|
|
3464
|
-
})),
|
|
3431
|
+
})), Qe(e)), lr = de("Dropdown", (e) => {
|
|
3465
3432
|
const {
|
|
3466
3433
|
marginXXS: t,
|
|
3467
3434
|
sizePopupArrow: o,
|
|
@@ -3472,10 +3439,10 @@ const er = (e) => {
|
|
|
3472
3439
|
dropdownArrowDistance: e.calc(o).div(2).add(t).equal(),
|
|
3473
3440
|
dropdownEdgeChildPadding: n
|
|
3474
3441
|
});
|
|
3475
|
-
return [
|
|
3476
|
-
},
|
|
3442
|
+
return [ir(a), rr(a)];
|
|
3443
|
+
}, ar, {
|
|
3477
3444
|
resetStyle: !1
|
|
3478
|
-
}),
|
|
3445
|
+
}), ye = (e) => {
|
|
3479
3446
|
var t;
|
|
3480
3447
|
const {
|
|
3481
3448
|
menu: o,
|
|
@@ -3485,151 +3452,147 @@ const er = (e) => {
|
|
|
3485
3452
|
trigger: i,
|
|
3486
3453
|
disabled: s,
|
|
3487
3454
|
dropdownRender: c,
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3455
|
+
popupRender: m,
|
|
3456
|
+
getPopupContainer: d,
|
|
3457
|
+
overlayClassName: f,
|
|
3458
|
+
rootClassName: p,
|
|
3459
|
+
overlayStyle: v,
|
|
3460
|
+
open: g,
|
|
3461
|
+
onOpenChange: u,
|
|
3494
3462
|
// Deprecated
|
|
3495
|
-
visible:
|
|
3496
|
-
onVisibleChange:
|
|
3497
|
-
mouseEnterDelay:
|
|
3498
|
-
mouseLeaveDelay:
|
|
3499
|
-
autoAdjustOverflow:
|
|
3500
|
-
placement:
|
|
3501
|
-
overlay:
|
|
3502
|
-
transitionName:
|
|
3463
|
+
visible: h,
|
|
3464
|
+
onVisibleChange: $,
|
|
3465
|
+
mouseEnterDelay: b = 0.15,
|
|
3466
|
+
mouseLeaveDelay: S = 0.1,
|
|
3467
|
+
autoAdjustOverflow: N = !0,
|
|
3468
|
+
placement: y = "",
|
|
3469
|
+
overlay: M,
|
|
3470
|
+
transitionName: j,
|
|
3471
|
+
destroyOnHidden: T,
|
|
3472
|
+
destroyPopupOnHide: O
|
|
3503
3473
|
} = e, {
|
|
3504
|
-
getPopupContainer:
|
|
3505
|
-
getPrefixCls:
|
|
3506
|
-
direction:
|
|
3507
|
-
dropdown:
|
|
3508
|
-
} = l.useContext(
|
|
3509
|
-
process.env.NODE_ENV !== "production" && (
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
}
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
}, j.props.className),
|
|
3531
|
-
disabled: (t = j.props.disabled) !== null && t !== void 0 ? t : s
|
|
3532
|
-
}), D = s ? [] : i, W = !!(D != null && D.includes("contextMenu")), [G, q] = Fe(!1, {
|
|
3533
|
-
value: v ?? g
|
|
3534
|
-
}), Z = wt((V) => {
|
|
3535
|
-
p == null || p(V, {
|
|
3474
|
+
getPopupContainer: E,
|
|
3475
|
+
getPrefixCls: H,
|
|
3476
|
+
direction: x,
|
|
3477
|
+
dropdown: C
|
|
3478
|
+
} = l.useContext(re), w = m || c, B = he("Dropdown");
|
|
3479
|
+
process.env.NODE_ENV !== "production" && (Object.entries({
|
|
3480
|
+
visible: "open",
|
|
3481
|
+
onVisibleChange: "onOpenChange",
|
|
3482
|
+
overlay: "menu",
|
|
3483
|
+
dropdownRender: "popupRender",
|
|
3484
|
+
destroyPopupOnHide: "destroyOnHidden"
|
|
3485
|
+
}).forEach(([oe, De]) => {
|
|
3486
|
+
B.deprecated(!(oe in e), oe, De);
|
|
3487
|
+
}), y.includes("Center") && B.deprecated(!y.includes("Center"), `placement: ${y}`, `placement: ${y.slice(0, y.indexOf("Center"))}`));
|
|
3488
|
+
const P = l.useMemo(() => {
|
|
3489
|
+
const U = H();
|
|
3490
|
+
return j !== void 0 ? j : y.includes("top") ? `${U}-slide-down` : `${U}-slide-up`;
|
|
3491
|
+
}, [H, y, j]), L = l.useMemo(() => y ? y.includes("Center") ? y.slice(0, y.indexOf("Center")) : y : x === "rtl" ? "bottomRight" : "bottomLeft", [y, x]), z = H("dropdown", r), F = Te(z), [D, A, k] = lr(z, F), [, R] = Fe(), W = l.Children.only(Rn(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), G = ue(W, {
|
|
3492
|
+
className: _(`${z}-trigger`, {
|
|
3493
|
+
[`${z}-rtl`]: x === "rtl"
|
|
3494
|
+
}, W.props.className),
|
|
3495
|
+
disabled: (t = W.props.disabled) !== null && t !== void 0 ? t : s
|
|
3496
|
+
}), q = s ? [] : i, Q = !!(q != null && q.includes("contextMenu")), [X, Z] = Ye(!1, {
|
|
3497
|
+
value: g ?? h
|
|
3498
|
+
}), J = St((U) => {
|
|
3499
|
+
u == null || u(U, {
|
|
3536
3500
|
source: "trigger"
|
|
3537
|
-
}),
|
|
3538
|
-
}),
|
|
3539
|
-
[`${
|
|
3540
|
-
}),
|
|
3501
|
+
}), $ == null || $(U), Z(U);
|
|
3502
|
+
}), V = _(f, p, A, k, F, C == null ? void 0 : C.className, {
|
|
3503
|
+
[`${z}-rtl`]: x === "rtl"
|
|
3504
|
+
}), Y = Tt({
|
|
3541
3505
|
arrowPointAtCenter: typeof n == "object" && n.pointAtCenter,
|
|
3542
|
-
autoAdjustOverflow:
|
|
3543
|
-
offset:
|
|
3544
|
-
arrowWidth: n ?
|
|
3545
|
-
borderRadius:
|
|
3546
|
-
}),
|
|
3547
|
-
o != null && o.selectable && (o != null && o.multiple) || (
|
|
3506
|
+
autoAdjustOverflow: N,
|
|
3507
|
+
offset: R.marginXXS,
|
|
3508
|
+
arrowWidth: n ? R.sizePopupArrow : 0,
|
|
3509
|
+
borderRadius: R.borderRadius
|
|
3510
|
+
}), ne = l.useCallback(() => {
|
|
3511
|
+
o != null && o.selectable && (o != null && o.multiple) || (u == null || u(!1, {
|
|
3548
3512
|
source: "menu"
|
|
3549
|
-
}),
|
|
3550
|
-
}, [o == null ? void 0 : o.selectable, o == null ? void 0 : o.multiple]),
|
|
3551
|
-
let
|
|
3552
|
-
return o != null && o.items ?
|
|
3553
|
-
prefixCls: `${
|
|
3554
|
-
rootClassName: _(
|
|
3513
|
+
}), Z(!1));
|
|
3514
|
+
}, [o == null ? void 0 : o.selectable, o == null ? void 0 : o.multiple]), ie = () => {
|
|
3515
|
+
let U;
|
|
3516
|
+
return o != null && o.items ? U = /* @__PURE__ */ l.createElement(fe, Object.assign({}, o)) : typeof M == "function" ? U = M() : U = M, w && (U = w(U)), U = l.Children.only(typeof U == "string" ? /* @__PURE__ */ l.createElement("span", null, U) : U), /* @__PURE__ */ l.createElement(Un, {
|
|
3517
|
+
prefixCls: `${z}-menu`,
|
|
3518
|
+
rootClassName: _(k, F),
|
|
3555
3519
|
expandIcon: /* @__PURE__ */ l.createElement("span", {
|
|
3556
|
-
className: `${
|
|
3557
|
-
},
|
|
3558
|
-
className: `${
|
|
3559
|
-
}) : /* @__PURE__ */ l.createElement(
|
|
3560
|
-
className: `${
|
|
3520
|
+
className: `${z}-menu-submenu-arrow`
|
|
3521
|
+
}, x === "rtl" ? /* @__PURE__ */ l.createElement(Ee, {
|
|
3522
|
+
className: `${z}-menu-submenu-arrow-icon`
|
|
3523
|
+
}) : /* @__PURE__ */ l.createElement(Ie, {
|
|
3524
|
+
className: `${z}-menu-submenu-arrow-icon`
|
|
3561
3525
|
})),
|
|
3562
3526
|
mode: "vertical",
|
|
3563
3527
|
selectable: !1,
|
|
3564
|
-
onClick:
|
|
3565
|
-
validator: (
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
process.env.NODE_ENV !== "production" && P(!ne || ne === "vertical", "usage", `mode="${ne}" is not supported for Dropdown's Menu.`);
|
|
3528
|
+
onClick: ne,
|
|
3529
|
+
validator: ({
|
|
3530
|
+
mode: oe
|
|
3531
|
+
}) => {
|
|
3532
|
+
process.env.NODE_ENV !== "production" && B(!oe || oe === "vertical", "usage", `mode="${oe}" is not supported for Dropdown's Menu.`);
|
|
3570
3533
|
}
|
|
3571
|
-
},
|
|
3572
|
-
}, [
|
|
3573
|
-
let
|
|
3574
|
-
alignPoint:
|
|
3575
|
-
},
|
|
3576
|
-
mouseEnterDelay:
|
|
3577
|
-
mouseLeaveDelay:
|
|
3578
|
-
visible:
|
|
3579
|
-
builtinPlacements:
|
|
3534
|
+
}, U);
|
|
3535
|
+
}, [Ce, He] = qe("Dropdown", v == null ? void 0 : v.zIndex);
|
|
3536
|
+
let le = /* @__PURE__ */ l.createElement(_o, Object.assign({
|
|
3537
|
+
alignPoint: Q
|
|
3538
|
+
}, $e(e, ["rootClassName"]), {
|
|
3539
|
+
mouseEnterDelay: b,
|
|
3540
|
+
mouseLeaveDelay: S,
|
|
3541
|
+
visible: X,
|
|
3542
|
+
builtinPlacements: Y,
|
|
3580
3543
|
arrow: !!n,
|
|
3581
|
-
overlayClassName:
|
|
3582
|
-
prefixCls:
|
|
3583
|
-
getPopupContainer:
|
|
3584
|
-
transitionName:
|
|
3585
|
-
trigger:
|
|
3586
|
-
overlay:
|
|
3587
|
-
placement:
|
|
3588
|
-
onVisibleChange:
|
|
3589
|
-
overlayStyle: Object.assign(Object.assign(Object.assign({},
|
|
3590
|
-
zIndex:
|
|
3591
|
-
})
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
},
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3544
|
+
overlayClassName: V,
|
|
3545
|
+
prefixCls: z,
|
|
3546
|
+
getPopupContainer: d || E,
|
|
3547
|
+
transitionName: P,
|
|
3548
|
+
trigger: q,
|
|
3549
|
+
overlay: ie,
|
|
3550
|
+
placement: L,
|
|
3551
|
+
onVisibleChange: J,
|
|
3552
|
+
overlayStyle: Object.assign(Object.assign(Object.assign({}, C == null ? void 0 : C.style), v), {
|
|
3553
|
+
zIndex: Ce
|
|
3554
|
+
}),
|
|
3555
|
+
autoDestroy: T ?? O
|
|
3556
|
+
}), G);
|
|
3557
|
+
return Ce && (le = /* @__PURE__ */ l.createElement(Pt.Provider, {
|
|
3558
|
+
value: He
|
|
3559
|
+
}, le)), D(le);
|
|
3560
|
+
}, sr = Mo(ye, "align", void 0, "dropdown", (e) => e), cr = (e) => /* @__PURE__ */ l.createElement(sr, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
|
|
3561
|
+
ye._InternalPanelDoNotUseOrYouWillBeFired = cr;
|
|
3562
|
+
process.env.NODE_ENV !== "production" && (ye.displayName = "Dropdown");
|
|
3563
|
+
function $t(e) {
|
|
3600
3564
|
return ["small", "middle", "large"].includes(e);
|
|
3601
3565
|
}
|
|
3602
|
-
function
|
|
3566
|
+
function yt(e) {
|
|
3603
3567
|
return e ? typeof e == "number" && !Number.isNaN(e) : !1;
|
|
3604
3568
|
}
|
|
3605
|
-
const
|
|
3569
|
+
const Ft = /* @__PURE__ */ Ct.createContext({
|
|
3606
3570
|
latestIndex: 0
|
|
3607
|
-
}),
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
} = e;
|
|
3571
|
+
}), dr = Ft.Provider, ur = ({
|
|
3572
|
+
className: e,
|
|
3573
|
+
index: t,
|
|
3574
|
+
children: o,
|
|
3575
|
+
split: n,
|
|
3576
|
+
style: r
|
|
3577
|
+
}) => {
|
|
3615
3578
|
const {
|
|
3616
|
-
latestIndex:
|
|
3617
|
-
} = l.useContext(
|
|
3618
|
-
return
|
|
3619
|
-
className:
|
|
3620
|
-
style:
|
|
3621
|
-
},
|
|
3622
|
-
className: `${
|
|
3623
|
-
},
|
|
3579
|
+
latestIndex: a
|
|
3580
|
+
} = l.useContext(Ft);
|
|
3581
|
+
return o == null ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("div", {
|
|
3582
|
+
className: e,
|
|
3583
|
+
style: r
|
|
3584
|
+
}, o), t < a && n && /* @__PURE__ */ l.createElement("span", {
|
|
3585
|
+
className: `${e}-split`
|
|
3586
|
+
}, n));
|
|
3624
3587
|
};
|
|
3625
|
-
var
|
|
3588
|
+
var mr = function(e, t) {
|
|
3626
3589
|
var o = {};
|
|
3627
3590
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
3628
3591
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
3629
3592
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
3630
3593
|
return o;
|
|
3631
3594
|
};
|
|
3632
|
-
const
|
|
3595
|
+
const pr = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
3633
3596
|
var o;
|
|
3634
3597
|
const {
|
|
3635
3598
|
getPrefixCls: n,
|
|
@@ -3638,153 +3601,155 @@ const cr = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
3638
3601
|
className: i,
|
|
3639
3602
|
style: s,
|
|
3640
3603
|
classNames: c,
|
|
3641
|
-
styles:
|
|
3642
|
-
} =
|
|
3604
|
+
styles: m
|
|
3605
|
+
} = Ge("space"), {
|
|
3643
3606
|
size: d = a ?? "small",
|
|
3644
3607
|
align: f,
|
|
3645
|
-
className:
|
|
3608
|
+
className: p,
|
|
3646
3609
|
rootClassName: v,
|
|
3647
|
-
children:
|
|
3648
|
-
direction:
|
|
3610
|
+
children: g,
|
|
3611
|
+
direction: u = "horizontal",
|
|
3649
3612
|
prefixCls: h,
|
|
3650
|
-
split:
|
|
3613
|
+
split: $,
|
|
3651
3614
|
style: b,
|
|
3652
3615
|
wrap: S = !1,
|
|
3653
|
-
classNames:
|
|
3654
|
-
styles:
|
|
3655
|
-
} = e, M =
|
|
3616
|
+
classNames: N,
|
|
3617
|
+
styles: y
|
|
3618
|
+
} = e, M = mr(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [j, T] = Array.isArray(d) ? d : [d, d], O = $t(T), E = $t(j), H = yt(T), x = yt(j), C = Ue(g, {
|
|
3656
3619
|
keepEmpty: !0
|
|
3657
|
-
}),
|
|
3658
|
-
[`${
|
|
3659
|
-
[`${
|
|
3660
|
-
[`${
|
|
3661
|
-
[`${
|
|
3662
|
-
},
|
|
3663
|
-
let
|
|
3664
|
-
const
|
|
3665
|
-
var
|
|
3666
|
-
|
|
3667
|
-
const
|
|
3668
|
-
return /* @__PURE__ */ l.createElement(
|
|
3669
|
-
className:
|
|
3670
|
-
key:
|
|
3671
|
-
index:
|
|
3672
|
-
split:
|
|
3673
|
-
style: (
|
|
3674
|
-
},
|
|
3675
|
-
}),
|
|
3676
|
-
latestIndex:
|
|
3677
|
-
}), [
|
|
3678
|
-
if (
|
|
3620
|
+
}), w = f === void 0 && u === "horizontal" ? "center" : f, B = n("space", h), [P, L, z] = Ho(B), F = _(B, i, L, `${B}-${u}`, {
|
|
3621
|
+
[`${B}-rtl`]: r === "rtl",
|
|
3622
|
+
[`${B}-align-${w}`]: w,
|
|
3623
|
+
[`${B}-gap-row-${T}`]: O,
|
|
3624
|
+
[`${B}-gap-col-${j}`]: E
|
|
3625
|
+
}, p, v, z), D = _(`${B}-item`, (o = N == null ? void 0 : N.item) !== null && o !== void 0 ? o : c.item);
|
|
3626
|
+
let A = 0;
|
|
3627
|
+
const k = C.map((G, q) => {
|
|
3628
|
+
var Q;
|
|
3629
|
+
G != null && (A = q);
|
|
3630
|
+
const X = (G == null ? void 0 : G.key) || `${D}-${q}`;
|
|
3631
|
+
return /* @__PURE__ */ l.createElement(ur, {
|
|
3632
|
+
className: D,
|
|
3633
|
+
key: X,
|
|
3634
|
+
index: q,
|
|
3635
|
+
split: $,
|
|
3636
|
+
style: (Q = y == null ? void 0 : y.item) !== null && Q !== void 0 ? Q : m.item
|
|
3637
|
+
}, G);
|
|
3638
|
+
}), R = l.useMemo(() => ({
|
|
3639
|
+
latestIndex: A
|
|
3640
|
+
}), [A]);
|
|
3641
|
+
if (C.length === 0)
|
|
3679
3642
|
return null;
|
|
3680
|
-
const
|
|
3681
|
-
return S && (
|
|
3643
|
+
const W = {};
|
|
3644
|
+
return S && (W.flexWrap = "wrap"), !E && x && (W.columnGap = j), !O && H && (W.rowGap = T), P(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
3682
3645
|
ref: t,
|
|
3683
3646
|
className: F,
|
|
3684
|
-
style: Object.assign(Object.assign(Object.assign({},
|
|
3685
|
-
}, M), /* @__PURE__ */ l.createElement(
|
|
3686
|
-
value:
|
|
3687
|
-
},
|
|
3688
|
-
}),
|
|
3689
|
-
|
|
3690
|
-
process.env.NODE_ENV !== "production" && (
|
|
3691
|
-
var
|
|
3647
|
+
style: Object.assign(Object.assign(Object.assign({}, W), s), b)
|
|
3648
|
+
}, M), /* @__PURE__ */ l.createElement(dr, {
|
|
3649
|
+
value: R
|
|
3650
|
+
}, k)));
|
|
3651
|
+
}), ot = pr;
|
|
3652
|
+
ot.Compact = Do;
|
|
3653
|
+
process.env.NODE_ENV !== "production" && (ot.displayName = "Space");
|
|
3654
|
+
var gr = function(e, t) {
|
|
3692
3655
|
var o = {};
|
|
3693
3656
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
3694
3657
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
3695
3658
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
3696
3659
|
return o;
|
|
3697
3660
|
};
|
|
3698
|
-
const
|
|
3661
|
+
const Gt = (e) => {
|
|
3699
3662
|
const {
|
|
3700
3663
|
getPopupContainer: t,
|
|
3701
3664
|
getPrefixCls: o,
|
|
3702
3665
|
direction: n
|
|
3703
|
-
} = l.useContext(
|
|
3666
|
+
} = l.useContext(re), {
|
|
3704
3667
|
prefixCls: r,
|
|
3705
3668
|
type: a = "default",
|
|
3706
3669
|
danger: i,
|
|
3707
3670
|
disabled: s,
|
|
3708
3671
|
loading: c,
|
|
3709
|
-
onClick:
|
|
3672
|
+
onClick: m,
|
|
3710
3673
|
htmlType: d,
|
|
3711
3674
|
children: f,
|
|
3712
|
-
className:
|
|
3675
|
+
className: p,
|
|
3713
3676
|
menu: v,
|
|
3714
|
-
arrow:
|
|
3715
|
-
autoFocus:
|
|
3677
|
+
arrow: g,
|
|
3678
|
+
autoFocus: u,
|
|
3716
3679
|
overlay: h,
|
|
3717
|
-
trigger:
|
|
3680
|
+
trigger: $,
|
|
3718
3681
|
align: b,
|
|
3719
3682
|
open: S,
|
|
3720
|
-
onOpenChange:
|
|
3721
|
-
placement:
|
|
3683
|
+
onOpenChange: N,
|
|
3684
|
+
placement: y,
|
|
3722
3685
|
getPopupContainer: M,
|
|
3723
|
-
href:
|
|
3724
|
-
icon: T = /* @__PURE__ */ l.createElement(
|
|
3725
|
-
title:
|
|
3726
|
-
buttonsRender:
|
|
3727
|
-
mouseEnterDelay:
|
|
3728
|
-
mouseLeaveDelay:
|
|
3729
|
-
overlayClassName:
|
|
3730
|
-
overlayStyle:
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3686
|
+
href: j,
|
|
3687
|
+
icon: T = /* @__PURE__ */ l.createElement(Ot, null),
|
|
3688
|
+
title: O,
|
|
3689
|
+
buttonsRender: E = (V) => V,
|
|
3690
|
+
mouseEnterDelay: H,
|
|
3691
|
+
mouseLeaveDelay: x,
|
|
3692
|
+
overlayClassName: C,
|
|
3693
|
+
overlayStyle: w,
|
|
3694
|
+
destroyOnHidden: B,
|
|
3695
|
+
destroyPopupOnHide: P,
|
|
3696
|
+
dropdownRender: L,
|
|
3697
|
+
popupRender: z
|
|
3698
|
+
} = e, F = gr(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", "destroyOnHidden", "destroyPopupOnHide", "dropdownRender", "popupRender"]), D = o("dropdown", r), A = `${D}-button`, R = {
|
|
3734
3699
|
menu: v,
|
|
3735
|
-
arrow:
|
|
3736
|
-
autoFocus:
|
|
3700
|
+
arrow: g,
|
|
3701
|
+
autoFocus: u,
|
|
3737
3702
|
align: b,
|
|
3738
3703
|
disabled: s,
|
|
3739
|
-
trigger: s ? [] :
|
|
3740
|
-
onOpenChange:
|
|
3704
|
+
trigger: s ? [] : $,
|
|
3705
|
+
onOpenChange: N,
|
|
3741
3706
|
getPopupContainer: M || t,
|
|
3742
|
-
mouseEnterDelay:
|
|
3743
|
-
mouseLeaveDelay:
|
|
3744
|
-
overlayClassName:
|
|
3745
|
-
overlayStyle:
|
|
3746
|
-
|
|
3747
|
-
|
|
3707
|
+
mouseEnterDelay: H,
|
|
3708
|
+
mouseLeaveDelay: x,
|
|
3709
|
+
overlayClassName: C,
|
|
3710
|
+
overlayStyle: w,
|
|
3711
|
+
destroyOnHidden: B,
|
|
3712
|
+
popupRender: z || L
|
|
3748
3713
|
}, {
|
|
3749
|
-
compactSize:
|
|
3750
|
-
compactItemClassnames:
|
|
3751
|
-
} =
|
|
3752
|
-
"overlay" in e && (
|
|
3753
|
-
const
|
|
3714
|
+
compactSize: W,
|
|
3715
|
+
compactItemClassnames: G
|
|
3716
|
+
} = Ao(D, n), q = _(A, G, p);
|
|
3717
|
+
"destroyPopupOnHide" in e && (R.destroyPopupOnHide = P), "overlay" in e && (R.overlay = h), "open" in e && (R.open = S), "placement" in e ? R.placement = y : R.placement = n === "rtl" ? "bottomLeft" : "bottomRight";
|
|
3718
|
+
const Q = /* @__PURE__ */ l.createElement(ct, {
|
|
3754
3719
|
type: a,
|
|
3755
3720
|
danger: i,
|
|
3756
3721
|
disabled: s,
|
|
3757
3722
|
loading: c,
|
|
3758
|
-
onClick:
|
|
3723
|
+
onClick: m,
|
|
3759
3724
|
htmlType: d,
|
|
3760
|
-
href:
|
|
3761
|
-
title:
|
|
3762
|
-
}, f),
|
|
3725
|
+
href: j,
|
|
3726
|
+
title: O
|
|
3727
|
+
}, f), X = /* @__PURE__ */ l.createElement(ct, {
|
|
3763
3728
|
type: a,
|
|
3764
3729
|
danger: i,
|
|
3765
3730
|
icon: T
|
|
3766
|
-
}), [Z,
|
|
3767
|
-
return /* @__PURE__ */ l.createElement(
|
|
3768
|
-
className:
|
|
3769
|
-
size:
|
|
3731
|
+
}), [Z, J] = E([Q, X]);
|
|
3732
|
+
return /* @__PURE__ */ l.createElement(ot.Compact, Object.assign({
|
|
3733
|
+
className: q,
|
|
3734
|
+
size: W,
|
|
3770
3735
|
block: !0
|
|
3771
|
-
},
|
|
3736
|
+
}, F), Z, /* @__PURE__ */ l.createElement(ye, Object.assign({}, R), J));
|
|
3772
3737
|
};
|
|
3773
|
-
|
|
3774
|
-
const
|
|
3775
|
-
|
|
3776
|
-
const
|
|
3777
|
-
avatar:
|
|
3778
|
-
pointer:
|
|
3779
|
-
flexRowCenter:
|
|
3780
|
-
userTitle:
|
|
3781
|
-
},
|
|
3782
|
-
/* @__PURE__ */
|
|
3783
|
-
!o && /* @__PURE__ */
|
|
3784
|
-
!o && /* @__PURE__ */
|
|
3738
|
+
Gt.__ANT_BUTTON = !0;
|
|
3739
|
+
const Yt = ye;
|
|
3740
|
+
Yt.Button = Gt;
|
|
3741
|
+
const fr = (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", color: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), vr = "_avatar_1f4cc_1", br = "_pointer_1f4cc_7", hr = "_flexRowCenter_1f4cc_11", $r = "_userTitle_1f4cc_18", Se = {
|
|
3742
|
+
avatar: vr,
|
|
3743
|
+
pointer: br,
|
|
3744
|
+
flexRowCenter: hr,
|
|
3745
|
+
userTitle: $r
|
|
3746
|
+
}, Pr = ({ items: e, user: t, collapsed: o, handleMenuClick: n }) => /* @__PURE__ */ we(Yt, { menu: { items: e, onClick: n }, trigger: ["click"], children: /* @__PURE__ */ no("a", { onClick: (r) => r.preventDefault(), className: Se.flexRowCenter, children: [
|
|
3747
|
+
/* @__PURE__ */ we(Dt, { className: ao(Se.avatar, Se.pointer), size: "large", children: t[0] }),
|
|
3748
|
+
!o && /* @__PURE__ */ we("span", { className: Se.userTitle, children: t }),
|
|
3749
|
+
!o && /* @__PURE__ */ we(fr, { color: "var(--color-primary)" })
|
|
3785
3750
|
] }) });
|
|
3786
3751
|
export {
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3752
|
+
fe as M,
|
|
3753
|
+
fr as S,
|
|
3754
|
+
Pr as U
|
|
3790
3755
|
};
|