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