@amateescu/portal-ui-components 0.0.23 → 0.0.25-react19
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-DQNjUj2G.js +102 -0
- package/dist/Button-D2XVkO19.js +676 -0
- package/dist/ButtonBase-D-XlpvIZ.js +954 -0
- package/dist/CircularProgress-BOkP0juA.js +247 -0
- package/dist/{EllipsisOutlined-CtmB5yDB.js → EllipsisOutlined-DfTPoz8U.js} +667 -672
- package/dist/PurePanel-ByiFMw5U.js +2213 -0
- package/dist/{Skeleton-XFbjx7LJ.js → Skeleton-Imy-56Lv.js} +161 -158
- package/dist/{UserInfoDropdown-DGaplQo6.js → UserInfoDropdown-6aB5cQyF.js} +1540 -1505
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
- package/dist/components/CustomButton/CustomButton.js +1 -1
- package/dist/components/CustomPagination/CustomPagination.js +455 -344
- 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 +6 -215
- package/dist/components/Login/Login.js +4485 -3820
- package/dist/components/Login/Login.stories.js +1586 -1546
- package/dist/components/SideMenu/SideMenu.js +1 -1
- package/dist/components/SideMenu/SideMenu.types.d.ts +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/context-D_FWkiDE.js +7383 -0
- package/dist/createSimplePaletteValueFilter-CshNo3IR.js +3439 -0
- package/dist/index-CR8gh-dS.js +1689 -0
- package/dist/index-CyFfYou3.js +411 -0
- package/dist/main.js +33 -30
- package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +33 -0
- package/dist/portal-utils/formatters.js +68 -0
- package/dist/portal-utils/index.d.ts +1 -0
- package/dist/portal-utils/index.js +13 -10
- package/dist/portal-utils/loggerService.d.ts +12 -0
- package/dist/portal-utils/loggerService.js +16 -0
- package/dist/useSlot-kDVPuVrn.js +431 -0
- package/package.json +38 -38
- package/dist/Box-CmKt1PwF.js +0 -68
- package/dist/Button-BT8r3F_d.js +0 -355
- package/dist/ButtonBase-By486Sca.js +0 -966
- package/dist/PurePanel-CfZ1n-M8.js +0 -4782
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/createSvgIcon-B8ya7kb4.js +0 -250
- package/dist/generateUtilityClasses-Bhjgm_6-.js +0 -3270
- package/dist/index-1vDmwq0E.js +0 -19089
- 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 {
|
|
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 Ee, forwardRef as ke, useImperativeHandle as yt, useContext as tt, useState as ot, useEffect as De, createContext as to } from "react";
|
|
4
|
+
import { cn as oo } from "./portal-utils/cn.js";
|
|
5
|
+
import { _ as Pe } from "./objectWithoutPropertiesLoose-BTau6TOn.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 Be, 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-D_FWkiDE.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-DfTPoz8U.js";
|
|
8
|
+
import { P as ge, i as ze, 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-ByiFMw5U.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, Pe({}, 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
|
|
236
|
+
function Jo() {
|
|
238
237
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
239
|
-
const t =
|
|
240
|
-
return
|
|
241
|
-
const r = n.subscribe((
|
|
242
|
-
t.current =
|
|
238
|
+
const t = Ee({}), o = Qo(), n = Zo();
|
|
239
|
+
return ro(() => {
|
|
240
|
+
const r = n.subscribe((a) => {
|
|
241
|
+
t.current = a, e && o();
|
|
243
242
|
});
|
|
244
243
|
return () => n.unsubscribe(r);
|
|
245
244
|
}, []), t.current;
|
|
246
245
|
}
|
|
247
|
-
const
|
|
246
|
+
const Ae = /* @__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, y = (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
|
+
}), y(i, u, m)), {
|
|
298
|
+
"&-lg": Object.assign({}, y(s, d, g)),
|
|
299
|
+
"&-sm": Object.assign({}, y(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(Ae), 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: y,
|
|
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
|
+
}), C = Object.keys(typeof N == "object" ? N || {} : {}).some((x) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(x)), P = Jo(C), 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 = Be(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 = y || (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, y = 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, C = t.showArrow, P = C === void 0 ? !0 : C, A = t.classNames, j = t.styles, L = lo(t, ln), F = so(N), V = Ee(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, Pe({
|
|
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: y,
|
|
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, y = 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: y,
|
|
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 je(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 = je({
|
|
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, y) => {
|
|
1016
1028
|
let {
|
|
1017
|
-
darkColor:
|
|
1018
|
-
} =
|
|
1029
|
+
darkColor: b
|
|
1030
|
+
} = y;
|
|
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
|
+
}, je({
|
|
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), ze(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: y = !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"]), C = !!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:
|
|
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 = y;
|
|
1192
|
+
return typeof g == "object" && (re = (Q = (K = g.pointAtCenter) !== null && K !== void 0 ? K : g.arrowPointAtCenter) !== null && Q !== void 0 ? Q : y), h || Pt({
|
|
1193
|
+
arrowPointAtCenter: re,
|
|
1194
|
+
autoAdjustOverflow: b,
|
|
1195
|
+
arrowWidth: C ? P.sizePopupArrow : 0,
|
|
1196
|
+
borderRadius: P.borderRadius,
|
|
1197
|
+
offset: P.marginXXS,
|
|
1172
1198
|
visibleFirst: !0
|
|
1173
1199
|
});
|
|
1174
|
-
}, [
|
|
1200
|
+
}, [y, g, h, P]), ae = l.useMemo(() => p === 0 ? p : v || p || "", [v, p]), _e = /* @__PURE__ */ l.createElement(St, {
|
|
1175
1201
|
space: !0
|
|
1176
|
-
}, typeof
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
arrowContent: /* @__PURE__ */ a.createElement("span", {
|
|
1206
|
-
className: `${F}-arrow-content`
|
|
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 Re = /* @__PURE__ */ l.isValidElement(u) && !zo(u) ? u : /* @__PURE__ */ l.createElement("span", null, u), $e = Re.props, Xt = !$e.className || typeof $e.className == "string" ? _($e.className, a || `${te}-open`) : $e.className, [Ft, qt, Gt] = Bt(te, !oe), Me = zt(te, s), Yt = Me.arrowStyle, Ut = _(w, {
|
|
1206
|
+
[`${te}-rtl`]: L === "rtl"
|
|
1207
|
+
}, Me.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,
|
|
1209
|
+
showArrow: C,
|
|
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), Me.overlayStyle)
|
|
1221
|
+
},
|
|
1222
|
+
getTooltipContainer: $ || i || A,
|
|
1223
|
+
ref: q,
|
|
1224
|
+
builtinPlacements: U,
|
|
1225
|
+
overlay: _e,
|
|
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(Re, {
|
|
1238
|
+
className: Xt
|
|
1239
|
+
}) : Re);
|
|
1240
|
+
return Ft(/* @__PURE__ */ l.createElement(Ot.Provider, {
|
|
1241
|
+
value: Qt
|
|
1242
|
+
}, Jt));
|
|
1243
|
+
}), Te = yn;
|
|
1244
|
+
process.env.NODE_ENV !== "production" && (Te.displayName = "Tooltip");
|
|
1245
|
+
Te._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)), je({
|
|
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), ze(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, y = 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), [C, 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(Te, Object.assign({
|
|
1487
|
+
placement: c,
|
|
1488
|
+
trigger: u,
|
|
1489
|
+
mouseEnterDelay: f,
|
|
1490
|
+
mouseLeaveDelay: m
|
|
1491
|
+
}, y, {
|
|
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: C,
|
|
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", y.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(Ae), 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(Ae.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:
|
|
1511
|
-
children:
|
|
1541
|
+
maxCount: f,
|
|
1542
|
+
maxStyle: m,
|
|
1543
|
+
size: g,
|
|
1544
|
+
shape: p,
|
|
1545
|
+
maxPopoverPlacement: v,
|
|
1546
|
+
maxPopoverTrigger: h,
|
|
1547
|
+
children: y,
|
|
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((C) => {
|
|
1553
|
+
let [P, A] = C;
|
|
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 = Be(S), [H, R, M] = Nt(S, O), I = _($, {
|
|
1558
|
+
[`${$}-rtl`]: i === "rtl"
|
|
1559
|
+
}, M, O, c, u, R), w = qe(y).map((N, C) => de(N, {
|
|
1560
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
1561
|
+
key: `avatar-key-${C}`
|
|
1562
|
+
})), B = (b == null ? void 0 : b.count) || f, z = w.length;
|
|
1563
|
+
if (B && B < z) {
|
|
1564
|
+
const N = w.slice(0, B), C = 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: C
|
|
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
|
-
|
|
1554
|
-
|
|
1592
|
+
}, w)));
|
|
1593
|
+
}, _t = Ye;
|
|
1594
|
+
_t.Group = Pn;
|
|
1595
|
+
const Bn = (e) => typeof e != "object" && typeof e != "function" || e === null;
|
|
1596
|
+
var zn = { 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" }, jn = function(t, o) {
|
|
1597
|
+
return /* @__PURE__ */ l.createElement(Ve, Pe({}, t, {
|
|
1555
1598
|
ref: o,
|
|
1556
|
-
icon:
|
|
1599
|
+
icon: zn
|
|
1557
1600
|
}));
|
|
1558
|
-
},
|
|
1559
|
-
process.env.NODE_ENV !== "production" && (
|
|
1560
|
-
var
|
|
1561
|
-
return /* @__PURE__ */
|
|
1601
|
+
}, Rt = /* @__PURE__ */ l.forwardRef(jn);
|
|
1602
|
+
process.env.NODE_ENV !== "production" && (Rt.displayName = "BarsOutlined");
|
|
1603
|
+
var Tn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, _n = function(t, o) {
|
|
1604
|
+
return /* @__PURE__ */ l.createElement(Ve, Pe({}, t, {
|
|
1562
1605
|
ref: o,
|
|
1563
|
-
icon:
|
|
1606
|
+
icon: Tn
|
|
1564
1607
|
}));
|
|
1565
|
-
},
|
|
1566
|
-
process.env.NODE_ENV !== "production" && (
|
|
1567
|
-
const
|
|
1608
|
+
}, Le = /* @__PURE__ */ l.forwardRef(_n);
|
|
1609
|
+
process.env.NODE_ENV !== "production" && (Le.displayName = "LeftOutlined");
|
|
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,7 +1758,7 @@ 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
|
},
|
|
@@ -1724,34 +1767,31 @@ const En = (e) => {
|
|
|
1724
1767
|
bottom: 0,
|
|
1725
1768
|
zIndex: 1,
|
|
1726
1769
|
height: i,
|
|
1727
|
-
color:
|
|
1728
|
-
lineHeight:
|
|
1770
|
+
color: s,
|
|
1771
|
+
lineHeight: E(i),
|
|
1729
1772
|
textAlign: "center",
|
|
1730
|
-
background:
|
|
1773
|
+
background: c,
|
|
1731
1774
|
cursor: "pointer",
|
|
1732
1775
|
transition: `all ${n}`
|
|
1733
1776
|
},
|
|
1734
|
-
|
|
1777
|
+
[`${t}-zero-width`]: {
|
|
1735
1778
|
"> *": {
|
|
1736
1779
|
overflow: "hidden"
|
|
1737
1780
|
},
|
|
1738
1781
|
"&-trigger": {
|
|
1739
1782
|
position: "absolute",
|
|
1740
|
-
top:
|
|
1741
|
-
insetInlineEnd: e.calc(
|
|
1783
|
+
top: u,
|
|
1784
|
+
insetInlineEnd: e.calc(d).mul(-1).equal(),
|
|
1742
1785
|
zIndex: 1,
|
|
1743
|
-
width:
|
|
1744
|
-
height:
|
|
1745
|
-
color:
|
|
1786
|
+
width: d,
|
|
1787
|
+
height: f,
|
|
1788
|
+
color: s,
|
|
1746
1789
|
fontSize: e.fontSizeXL,
|
|
1747
1790
|
display: "flex",
|
|
1748
1791
|
alignItems: "center",
|
|
1749
1792
|
justifyContent: "center",
|
|
1750
1793
|
background: o,
|
|
1751
|
-
|
|
1752
|
-
borderStartEndRadius: m,
|
|
1753
|
-
borderEndEndRadius: m,
|
|
1754
|
-
borderEndStartRadius: 0,
|
|
1794
|
+
borderRadius: `0 ${E(m)} ${E(m)} 0`,
|
|
1755
1795
|
cursor: "pointer",
|
|
1756
1796
|
transition: `background ${r} ease`,
|
|
1757
1797
|
"&::after": {
|
|
@@ -1765,241 +1805,238 @@ const En = (e) => {
|
|
|
1765
1805
|
background: "rgba(255, 255, 255, 0.2)"
|
|
1766
1806
|
},
|
|
1767
1807
|
"&-right": {
|
|
1768
|
-
insetInlineStart: e.calc(
|
|
1769
|
-
|
|
1770
|
-
borderStartEndRadius: 0,
|
|
1771
|
-
borderEndEndRadius: 0,
|
|
1772
|
-
borderEndStartRadius: m
|
|
1808
|
+
insetInlineStart: e.calc(d).mul(-1).equal(),
|
|
1809
|
+
borderRadius: `${E(m)} 0 0 ${E(m)}`
|
|
1773
1810
|
}
|
|
1774
1811
|
}
|
|
1775
1812
|
},
|
|
1776
1813
|
// Light
|
|
1777
1814
|
"&-light": {
|
|
1778
|
-
background:
|
|
1815
|
+
background: g,
|
|
1779
1816
|
[`${t}-trigger`]: {
|
|
1780
|
-
color:
|
|
1817
|
+
color: p,
|
|
1781
1818
|
background: v
|
|
1782
1819
|
},
|
|
1783
1820
|
[`${t}-zero-width-trigger`]: {
|
|
1784
|
-
color:
|
|
1821
|
+
color: p,
|
|
1785
1822
|
background: v,
|
|
1786
|
-
border: `1px solid ${
|
|
1823
|
+
border: `1px solid ${h}`,
|
|
1787
1824
|
// Safe to modify to any other color
|
|
1788
1825
|
borderInlineStart: 0
|
|
1789
1826
|
}
|
|
1790
1827
|
}
|
|
1791
1828
|
}
|
|
1792
1829
|
};
|
|
1793
|
-
},
|
|
1794
|
-
deprecatedTokens:
|
|
1830
|
+
}, Hn = ce(["Layout", "Sider"], (e) => [Dn(e)], Mt, {
|
|
1831
|
+
deprecatedTokens: Dt
|
|
1795
1832
|
});
|
|
1796
|
-
var
|
|
1833
|
+
var An = function(e, t) {
|
|
1797
1834
|
var o = {};
|
|
1798
1835
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1799
1836
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1800
1837
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1801
1838
|
return o;
|
|
1802
1839
|
};
|
|
1803
|
-
const
|
|
1840
|
+
const ut = {
|
|
1804
1841
|
xs: "479.98px",
|
|
1805
1842
|
sm: "575.98px",
|
|
1806
1843
|
md: "767.98px",
|
|
1807
1844
|
lg: "991.98px",
|
|
1808
1845
|
xl: "1199.98px",
|
|
1809
1846
|
xxl: "1599.98px"
|
|
1810
|
-
},
|
|
1847
|
+
}, Ln = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), Je = /* @__PURE__ */ l.createContext({}), kn = /* @__PURE__ */ (() => {
|
|
1811
1848
|
let e = 0;
|
|
1812
1849
|
return function() {
|
|
1813
1850
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
1814
1851
|
return e += 1, `${t}${e}`;
|
|
1815
1852
|
};
|
|
1816
|
-
})(),
|
|
1853
|
+
})(), Vn = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
1817
1854
|
const {
|
|
1818
1855
|
prefixCls: o,
|
|
1819
1856
|
className: n,
|
|
1820
1857
|
trigger: r,
|
|
1821
|
-
children:
|
|
1858
|
+
children: a,
|
|
1822
1859
|
defaultCollapsed: i = !1,
|
|
1823
|
-
theme:
|
|
1824
|
-
style:
|
|
1825
|
-
collapsible:
|
|
1826
|
-
reverseArrow:
|
|
1827
|
-
width:
|
|
1860
|
+
theme: s = "dark",
|
|
1861
|
+
style: c = {},
|
|
1862
|
+
collapsible: u = !1,
|
|
1863
|
+
reverseArrow: d = !1,
|
|
1864
|
+
width: f = 200,
|
|
1828
1865
|
collapsedWidth: m = 80,
|
|
1829
|
-
zeroWidthTriggerStyle:
|
|
1830
|
-
breakpoint:
|
|
1866
|
+
zeroWidthTriggerStyle: g,
|
|
1867
|
+
breakpoint: p,
|
|
1831
1868
|
onCollapse: v,
|
|
1832
|
-
onBreakpoint:
|
|
1833
|
-
} = e,
|
|
1834
|
-
siderHook:
|
|
1835
|
-
} =
|
|
1836
|
-
|
|
1837
|
-
"collapsed" in e &&
|
|
1869
|
+
onBreakpoint: h
|
|
1870
|
+
} = e, y = An(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
|
|
1871
|
+
siderHook: b
|
|
1872
|
+
} = tt(Rn), [S, $] = ot("collapsed" in e ? e.collapsed : i), [O, H] = ot(!1);
|
|
1873
|
+
De(() => {
|
|
1874
|
+
"collapsed" in e && $(e.collapsed);
|
|
1838
1875
|
}, [e.collapsed]);
|
|
1839
|
-
const
|
|
1840
|
-
"collapsed" in e ||
|
|
1876
|
+
const R = (x, T) => {
|
|
1877
|
+
"collapsed" in e || $(x), v == null || v(x, T);
|
|
1841
1878
|
}, {
|
|
1842
|
-
getPrefixCls:
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1879
|
+
getPrefixCls: M,
|
|
1880
|
+
direction: I
|
|
1881
|
+
} = tt(ne), w = M("layout-sider", o), [B, z, N] = Hn(w), C = Ee(null);
|
|
1882
|
+
C.current = (x) => {
|
|
1883
|
+
H(x.matches), h == null || h(x.matches), S !== x.matches && R(x.matches, "responsive");
|
|
1884
|
+
}, De(() => {
|
|
1885
|
+
function x(U) {
|
|
1886
|
+
return C.current(U);
|
|
1849
1887
|
}
|
|
1850
|
-
let
|
|
1888
|
+
let T;
|
|
1851
1889
|
if (typeof window < "u") {
|
|
1852
1890
|
const {
|
|
1853
|
-
matchMedia:
|
|
1891
|
+
matchMedia: U
|
|
1854
1892
|
} = window;
|
|
1855
|
-
if (
|
|
1856
|
-
|
|
1893
|
+
if (U && p && p in ut) {
|
|
1894
|
+
T = U(`screen and (max-width: ${ut[p]})`);
|
|
1857
1895
|
try {
|
|
1858
|
-
|
|
1896
|
+
T.addEventListener("change", x);
|
|
1859
1897
|
} catch {
|
|
1860
|
-
|
|
1898
|
+
T.addListener(x);
|
|
1861
1899
|
}
|
|
1862
|
-
|
|
1900
|
+
x(T);
|
|
1863
1901
|
}
|
|
1864
1902
|
}
|
|
1865
1903
|
return () => {
|
|
1866
1904
|
try {
|
|
1867
|
-
|
|
1905
|
+
T == null || T.removeEventListener("change", x);
|
|
1868
1906
|
} catch {
|
|
1869
|
-
|
|
1907
|
+
T == null || T.removeListener(x);
|
|
1870
1908
|
}
|
|
1871
1909
|
};
|
|
1872
|
-
}, [
|
|
1873
|
-
const
|
|
1874
|
-
return
|
|
1910
|
+
}, [p]), De(() => {
|
|
1911
|
+
const x = kn("ant-sider-");
|
|
1912
|
+
return b.addSider(x), () => b.removeSider(x);
|
|
1875
1913
|
}, []);
|
|
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()));
|
|
1914
|
+
const P = () => {
|
|
1915
|
+
R(!S, "clickTrigger");
|
|
1916
|
+
}, A = be(y, ["collapsed"]), j = S ? m : f, L = Ln(j) ? `${j}px` : String(j), F = parseFloat(String(m || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
|
|
1917
|
+
onClick: P,
|
|
1918
|
+
className: _(`${w}-zero-width-trigger`, `${w}-zero-width-trigger-${d ? "right" : "left"}`),
|
|
1919
|
+
style: g
|
|
1920
|
+
}, r || /* @__PURE__ */ l.createElement(Rt, null)) : null, V = I === "rtl" == !d, W = {
|
|
1921
|
+
expanded: V ? /* @__PURE__ */ l.createElement(Se, null) : /* @__PURE__ */ l.createElement(Le, null),
|
|
1922
|
+
collapsed: V ? /* @__PURE__ */ l.createElement(Le, null) : /* @__PURE__ */ l.createElement(Se, null)
|
|
1923
|
+
}[S ? "collapsed" : "expanded"], q = r !== null ? F || /* @__PURE__ */ l.createElement("div", {
|
|
1924
|
+
className: `${w}-trigger`,
|
|
1925
|
+
onClick: P,
|
|
1926
|
+
style: {
|
|
1927
|
+
width: L
|
|
1928
|
+
}
|
|
1929
|
+
}, r || W) : null, G = Object.assign(Object.assign({}, c), {
|
|
1930
|
+
flex: `0 0 ${L}`,
|
|
1931
|
+
maxWidth: L,
|
|
1932
|
+
minWidth: L,
|
|
1933
|
+
width: L
|
|
1934
|
+
}), Z = _(w, `${w}-${s}`, {
|
|
1935
|
+
[`${w}-collapsed`]: !!S,
|
|
1936
|
+
[`${w}-has-trigger`]: u && r !== null && !F,
|
|
1937
|
+
[`${w}-below`]: !!O,
|
|
1938
|
+
[`${w}-zero-width`]: parseFloat(L) === 0
|
|
1939
|
+
}, n, z, N), Y = l.useMemo(() => ({
|
|
1940
|
+
siderCollapsed: S
|
|
1941
|
+
}), [S]);
|
|
1942
|
+
return B(/* @__PURE__ */ l.createElement(Je.Provider, {
|
|
1943
|
+
value: Y
|
|
1944
|
+
}, /* @__PURE__ */ l.createElement("aside", Object.assign({
|
|
1945
|
+
className: Z
|
|
1946
|
+
}, A, {
|
|
1947
|
+
style: G,
|
|
1948
|
+
ref: t
|
|
1949
|
+
}), /* @__PURE__ */ l.createElement("div", {
|
|
1950
|
+
className: `${w}-children`
|
|
1951
|
+
}, a), u || O && F ? q : null)));
|
|
1917
1952
|
});
|
|
1918
|
-
process.env.NODE_ENV !== "production" && (
|
|
1919
|
-
const
|
|
1953
|
+
process.env.NODE_ENV !== "production" && (Vn.displayName = "Sider");
|
|
1954
|
+
const Ie = /* @__PURE__ */ to({
|
|
1920
1955
|
prefixCls: "",
|
|
1921
1956
|
firstLevel: !0,
|
|
1922
1957
|
inlineCollapsed: !1
|
|
1923
1958
|
});
|
|
1924
|
-
var
|
|
1959
|
+
var Wn = function(e, t) {
|
|
1925
1960
|
var o = {};
|
|
1926
1961
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1927
1962
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1928
1963
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1929
1964
|
return o;
|
|
1930
1965
|
};
|
|
1931
|
-
const
|
|
1966
|
+
const Ht = (e) => {
|
|
1932
1967
|
const {
|
|
1933
1968
|
prefixCls: t,
|
|
1934
1969
|
className: o,
|
|
1935
1970
|
dashed: n
|
|
1936
|
-
} = e, r =
|
|
1937
|
-
getPrefixCls:
|
|
1938
|
-
} =
|
|
1971
|
+
} = e, r = Wn(e, ["prefixCls", "className", "dashed"]), {
|
|
1972
|
+
getPrefixCls: a
|
|
1973
|
+
} = l.useContext(ne), i = a("menu", t), s = _({
|
|
1939
1974
|
[`${i}-item-divider-dashed`]: !!n
|
|
1940
1975
|
}, o);
|
|
1941
|
-
return /* @__PURE__ */
|
|
1942
|
-
className:
|
|
1976
|
+
return /* @__PURE__ */ l.createElement(yo, Object.assign({
|
|
1977
|
+
className: s
|
|
1943
1978
|
}, r));
|
|
1944
|
-
},
|
|
1979
|
+
}, At = (e) => {
|
|
1945
1980
|
var t;
|
|
1946
1981
|
const {
|
|
1947
1982
|
className: o,
|
|
1948
1983
|
children: n,
|
|
1949
1984
|
icon: r,
|
|
1950
|
-
title:
|
|
1985
|
+
title: a,
|
|
1951
1986
|
danger: i,
|
|
1952
|
-
extra:
|
|
1987
|
+
extra: s
|
|
1953
1988
|
} = e, {
|
|
1954
|
-
prefixCls:
|
|
1955
|
-
firstLevel:
|
|
1956
|
-
direction:
|
|
1957
|
-
disableMenuItemTitleTooltip:
|
|
1989
|
+
prefixCls: c,
|
|
1990
|
+
firstLevel: u,
|
|
1991
|
+
direction: d,
|
|
1992
|
+
disableMenuItemTitleTooltip: f,
|
|
1958
1993
|
inlineCollapsed: m
|
|
1959
|
-
} =
|
|
1960
|
-
const
|
|
1961
|
-
className:
|
|
1962
|
-
[`${
|
|
1994
|
+
} = l.useContext(Ie), g = (S) => {
|
|
1995
|
+
const $ = n == null ? void 0 : n[0], O = /* @__PURE__ */ l.createElement("span", {
|
|
1996
|
+
className: _(`${c}-title-content`, {
|
|
1997
|
+
[`${c}-title-content-with-extra`]: !!s || s === 0
|
|
1963
1998
|
})
|
|
1964
1999
|
}, n);
|
|
1965
|
-
return (!r || /* @__PURE__ */
|
|
1966
|
-
className: `${
|
|
1967
|
-
},
|
|
2000
|
+
return (!r || /* @__PURE__ */ l.isValidElement(n) && n.type === "span") && n && S && u && typeof $ == "string" ? /* @__PURE__ */ l.createElement("div", {
|
|
2001
|
+
className: `${c}-inline-collapsed-noicon`
|
|
2002
|
+
}, $.charAt(0)) : O;
|
|
1968
2003
|
}, {
|
|
1969
|
-
siderCollapsed:
|
|
1970
|
-
} =
|
|
1971
|
-
let v =
|
|
1972
|
-
typeof
|
|
1973
|
-
const
|
|
2004
|
+
siderCollapsed: p
|
|
2005
|
+
} = l.useContext(Je);
|
|
2006
|
+
let v = a;
|
|
2007
|
+
typeof a > "u" ? v = u ? n : "" : a === !1 && (v = "");
|
|
2008
|
+
const h = {
|
|
1974
2009
|
title: v
|
|
1975
2010
|
};
|
|
1976
|
-
!
|
|
1977
|
-
const
|
|
1978
|
-
let
|
|
1979
|
-
className:
|
|
1980
|
-
[`${
|
|
1981
|
-
[`${
|
|
2011
|
+
!p && !m && (h.title = null, h.open = !1);
|
|
2012
|
+
const y = qe(n).length;
|
|
2013
|
+
let b = /* @__PURE__ */ l.createElement(Co, Object.assign({}, be(e, ["title", "icon", "danger"]), {
|
|
2014
|
+
className: _({
|
|
2015
|
+
[`${c}-item-danger`]: i,
|
|
2016
|
+
[`${c}-item-only-child`]: (r ? y + 1 : y) === 1
|
|
1982
2017
|
}, o),
|
|
1983
|
-
title: typeof
|
|
1984
|
-
}),
|
|
1985
|
-
className:
|
|
1986
|
-
}),
|
|
1987
|
-
return
|
|
1988
|
-
placement:
|
|
1989
|
-
|
|
1990
|
-
|
|
2018
|
+
title: typeof a == "string" ? a : void 0
|
|
2019
|
+
}), de(r, {
|
|
2020
|
+
className: _(/* @__PURE__ */ l.isValidElement(r) ? (t = r.props) === null || t === void 0 ? void 0 : t.className : "", `${c}-item-icon`)
|
|
2021
|
+
}), g(m));
|
|
2022
|
+
return f || (b = /* @__PURE__ */ l.createElement(Te, Object.assign({}, h, {
|
|
2023
|
+
placement: d === "rtl" ? "left" : "right",
|
|
2024
|
+
classNames: {
|
|
2025
|
+
root: `${c}-inline-collapsed-tooltip`
|
|
2026
|
+
}
|
|
2027
|
+
}), b)), b;
|
|
1991
2028
|
};
|
|
1992
|
-
var
|
|
2029
|
+
var Xn = function(e, t) {
|
|
1993
2030
|
var o = {};
|
|
1994
2031
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1995
2032
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1996
2033
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1997
2034
|
return o;
|
|
1998
2035
|
};
|
|
1999
|
-
const
|
|
2036
|
+
const Ne = /* @__PURE__ */ l.createContext(null), Fn = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
2000
2037
|
const {
|
|
2001
2038
|
children: o
|
|
2002
|
-
} = e, n =
|
|
2039
|
+
} = e, n = Xn(e, ["children"]), r = l.useContext(Ne), a = l.useMemo(() => Object.assign(Object.assign({}, r), n), [
|
|
2003
2040
|
r,
|
|
2004
2041
|
n.prefixCls,
|
|
2005
2042
|
// restProps.expandIcon, Not mark as deps since this is a ReactNode
|
|
@@ -2007,29 +2044,29 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2007
2044
|
n.selectable,
|
|
2008
2045
|
n.rootClassName
|
|
2009
2046
|
// restProps.validator, Not mark as deps since this is a function
|
|
2010
|
-
]), i =
|
|
2011
|
-
return /* @__PURE__ */
|
|
2012
|
-
value:
|
|
2013
|
-
}, /* @__PURE__ */
|
|
2047
|
+
]), i = uo(o), s = mo(t, i ? po(o) : null);
|
|
2048
|
+
return /* @__PURE__ */ l.createElement(Ne.Provider, {
|
|
2049
|
+
value: a
|
|
2050
|
+
}, /* @__PURE__ */ l.createElement(St, {
|
|
2014
2051
|
space: !0
|
|
2015
|
-
}, i ? /* @__PURE__ */
|
|
2016
|
-
ref:
|
|
2052
|
+
}, i ? /* @__PURE__ */ l.cloneElement(o, {
|
|
2053
|
+
ref: s
|
|
2017
2054
|
}) : o));
|
|
2018
|
-
}),
|
|
2055
|
+
}), qn = (e) => {
|
|
2019
2056
|
const {
|
|
2020
2057
|
componentCls: t,
|
|
2021
2058
|
motionDurationSlow: o,
|
|
2022
2059
|
horizontalLineHeight: n,
|
|
2023
2060
|
colorSplit: r,
|
|
2024
|
-
lineWidth:
|
|
2061
|
+
lineWidth: a,
|
|
2025
2062
|
lineType: i,
|
|
2026
|
-
itemPaddingInline:
|
|
2063
|
+
itemPaddingInline: s
|
|
2027
2064
|
} = e;
|
|
2028
2065
|
return {
|
|
2029
2066
|
[`${t}-horizontal`]: {
|
|
2030
2067
|
lineHeight: n,
|
|
2031
2068
|
border: 0,
|
|
2032
|
-
borderBottom: `${
|
|
2069
|
+
borderBottom: `${E(a)} ${i} ${r}`,
|
|
2033
2070
|
boxShadow: "none",
|
|
2034
2071
|
"&::after": {
|
|
2035
2072
|
display: "block",
|
|
@@ -2042,7 +2079,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2042
2079
|
position: "relative",
|
|
2043
2080
|
display: "inline-block",
|
|
2044
2081
|
verticalAlign: "bottom",
|
|
2045
|
-
paddingInline:
|
|
2082
|
+
paddingInline: s
|
|
2046
2083
|
},
|
|
2047
2084
|
[`> ${t}-item:hover,
|
|
2048
2085
|
> ${t}-item-active,
|
|
@@ -2058,7 +2095,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2058
2095
|
}
|
|
2059
2096
|
}
|
|
2060
2097
|
};
|
|
2061
|
-
},
|
|
2098
|
+
}, Gn = (e) => {
|
|
2062
2099
|
let {
|
|
2063
2100
|
componentCls: t,
|
|
2064
2101
|
menuArrowOffset: o,
|
|
@@ -2076,76 +2113,75 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2076
2113
|
${t}-submenu-rtl ${t}-vertical`]: {
|
|
2077
2114
|
[`${t}-submenu-arrow`]: {
|
|
2078
2115
|
"&::before": {
|
|
2079
|
-
transform: `rotate(-45deg) translateY(${
|
|
2116
|
+
transform: `rotate(-45deg) translateY(${E(n(o).mul(-1).equal())})`
|
|
2080
2117
|
},
|
|
2081
2118
|
"&::after": {
|
|
2082
|
-
transform: `rotate(45deg) translateY(${
|
|
2119
|
+
transform: `rotate(45deg) translateY(${E(o)})`
|
|
2083
2120
|
}
|
|
2084
2121
|
}
|
|
2085
2122
|
}
|
|
2086
2123
|
};
|
|
2087
|
-
},
|
|
2124
|
+
}, mt = (e) => Object.assign({}, go(e)), pt = (e, t) => {
|
|
2088
2125
|
const {
|
|
2089
2126
|
componentCls: o,
|
|
2090
2127
|
itemColor: n,
|
|
2091
2128
|
itemSelectedColor: r,
|
|
2092
|
-
|
|
2093
|
-
|
|
2129
|
+
subMenuItemSelectedColor: a,
|
|
2130
|
+
groupTitleColor: i,
|
|
2131
|
+
itemBg: s,
|
|
2094
2132
|
subMenuItemBg: c,
|
|
2095
|
-
itemSelectedBg:
|
|
2133
|
+
itemSelectedBg: u,
|
|
2096
2134
|
activeBarHeight: d,
|
|
2097
|
-
activeBarWidth:
|
|
2098
|
-
activeBarBorderWidth:
|
|
2099
|
-
motionDurationSlow:
|
|
2100
|
-
motionEaseInOut:
|
|
2101
|
-
motionEaseOut:
|
|
2102
|
-
itemPaddingInline:
|
|
2103
|
-
motionDurationMid:
|
|
2135
|
+
activeBarWidth: f,
|
|
2136
|
+
activeBarBorderWidth: m,
|
|
2137
|
+
motionDurationSlow: g,
|
|
2138
|
+
motionEaseInOut: p,
|
|
2139
|
+
motionEaseOut: v,
|
|
2140
|
+
itemPaddingInline: h,
|
|
2141
|
+
motionDurationMid: y,
|
|
2104
2142
|
itemHoverColor: b,
|
|
2105
|
-
lineType:
|
|
2106
|
-
colorSplit:
|
|
2143
|
+
lineType: S,
|
|
2144
|
+
colorSplit: $,
|
|
2107
2145
|
// Disabled
|
|
2108
|
-
itemDisabledColor:
|
|
2146
|
+
itemDisabledColor: O,
|
|
2109
2147
|
// Danger
|
|
2110
|
-
dangerItemColor:
|
|
2111
|
-
dangerItemHoverColor:
|
|
2112
|
-
dangerItemSelectedColor:
|
|
2113
|
-
dangerItemActiveBg:
|
|
2114
|
-
dangerItemSelectedBg:
|
|
2148
|
+
dangerItemColor: H,
|
|
2149
|
+
dangerItemHoverColor: R,
|
|
2150
|
+
dangerItemSelectedColor: M,
|
|
2151
|
+
dangerItemActiveBg: I,
|
|
2152
|
+
dangerItemSelectedBg: w,
|
|
2115
2153
|
// Bg
|
|
2116
|
-
popupBg:
|
|
2154
|
+
popupBg: B,
|
|
2117
2155
|
itemHoverBg: z,
|
|
2118
|
-
itemActiveBg:
|
|
2119
|
-
menuSubMenuBg:
|
|
2156
|
+
itemActiveBg: N,
|
|
2157
|
+
menuSubMenuBg: C,
|
|
2120
2158
|
// Horizontal
|
|
2121
|
-
horizontalItemSelectedColor:
|
|
2122
|
-
horizontalItemSelectedBg:
|
|
2123
|
-
horizontalItemBorderRadius:
|
|
2124
|
-
horizontalItemHoverBg:
|
|
2159
|
+
horizontalItemSelectedColor: P,
|
|
2160
|
+
horizontalItemSelectedBg: A,
|
|
2161
|
+
horizontalItemBorderRadius: j,
|
|
2162
|
+
horizontalItemHoverBg: L
|
|
2125
2163
|
} = e;
|
|
2126
2164
|
return {
|
|
2127
2165
|
[`${o}-${t}, ${o}-${t} > ${o}`]: {
|
|
2128
2166
|
color: n,
|
|
2129
|
-
background:
|
|
2130
|
-
[`&${o}-root:focus-visible`]: Object.assign({},
|
|
2167
|
+
background: s,
|
|
2168
|
+
[`&${o}-root:focus-visible`]: Object.assign({}, mt(e)),
|
|
2131
2169
|
// ======================== Item ========================
|
|
2132
2170
|
[`${o}-item`]: {
|
|
2133
2171
|
"&-group-title, &-extra": {
|
|
2134
|
-
color:
|
|
2172
|
+
color: i
|
|
2135
2173
|
}
|
|
2136
2174
|
},
|
|
2137
|
-
[`${o}-submenu-selected`]: {
|
|
2138
|
-
|
|
2139
|
-
color: r
|
|
2140
|
-
}
|
|
2175
|
+
[`${o}-submenu-selected > ${o}-submenu-title`]: {
|
|
2176
|
+
color: a
|
|
2141
2177
|
},
|
|
2142
2178
|
[`${o}-item, ${o}-submenu-title`]: {
|
|
2143
2179
|
color: n,
|
|
2144
|
-
[`&:not(${o}-item-disabled):focus-visible`]: Object.assign({},
|
|
2180
|
+
[`&:not(${o}-item-disabled):focus-visible`]: Object.assign({}, mt(e))
|
|
2145
2181
|
},
|
|
2146
2182
|
// Disabled
|
|
2147
2183
|
[`${o}-item-disabled, ${o}-submenu-disabled`]: {
|
|
2148
|
-
color: `${
|
|
2184
|
+
color: `${O} !important`
|
|
2149
2185
|
},
|
|
2150
2186
|
// Hover
|
|
2151
2187
|
[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]: {
|
|
@@ -2159,7 +2195,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2159
2195
|
backgroundColor: z
|
|
2160
2196
|
},
|
|
2161
2197
|
"&:active": {
|
|
2162
|
-
backgroundColor:
|
|
2198
|
+
backgroundColor: N
|
|
2163
2199
|
}
|
|
2164
2200
|
},
|
|
2165
2201
|
[`${o}-submenu-title`]: {
|
|
@@ -2167,20 +2203,20 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2167
2203
|
backgroundColor: z
|
|
2168
2204
|
},
|
|
2169
2205
|
"&:active": {
|
|
2170
|
-
backgroundColor:
|
|
2206
|
+
backgroundColor: N
|
|
2171
2207
|
}
|
|
2172
2208
|
}
|
|
2173
2209
|
},
|
|
2174
2210
|
// Danger - only Item has
|
|
2175
2211
|
[`${o}-item-danger`]: {
|
|
2176
|
-
color:
|
|
2212
|
+
color: H,
|
|
2177
2213
|
[`&${o}-item:hover`]: {
|
|
2178
2214
|
[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]: {
|
|
2179
|
-
color:
|
|
2215
|
+
color: R
|
|
2180
2216
|
}
|
|
2181
2217
|
},
|
|
2182
2218
|
[`&${o}-item:active`]: {
|
|
2183
|
-
background:
|
|
2219
|
+
background: I
|
|
2184
2220
|
}
|
|
2185
2221
|
},
|
|
2186
2222
|
[`${o}-item a`]: {
|
|
@@ -2192,29 +2228,29 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2192
2228
|
color: r,
|
|
2193
2229
|
// Danger
|
|
2194
2230
|
[`&${o}-item-danger`]: {
|
|
2195
|
-
color:
|
|
2231
|
+
color: M
|
|
2196
2232
|
},
|
|
2197
2233
|
"a, a:hover": {
|
|
2198
2234
|
color: "inherit"
|
|
2199
2235
|
}
|
|
2200
2236
|
},
|
|
2201
2237
|
[`& ${o}-item-selected`]: {
|
|
2202
|
-
backgroundColor:
|
|
2238
|
+
backgroundColor: u,
|
|
2203
2239
|
// Danger
|
|
2204
2240
|
[`&${o}-item-danger`]: {
|
|
2205
|
-
backgroundColor:
|
|
2241
|
+
backgroundColor: w
|
|
2206
2242
|
}
|
|
2207
2243
|
},
|
|
2208
2244
|
[`&${o}-submenu > ${o}`]: {
|
|
2209
|
-
backgroundColor:
|
|
2245
|
+
backgroundColor: C
|
|
2210
2246
|
},
|
|
2211
2247
|
// ===== 设置浮层的颜色 =======
|
|
2212
2248
|
// !dark 模式会被popupBg 会被rest 为 darkPopupBg
|
|
2213
2249
|
[`&${o}-popup > ${o}`]: {
|
|
2214
|
-
backgroundColor:
|
|
2250
|
+
backgroundColor: B
|
|
2215
2251
|
},
|
|
2216
2252
|
[`&${o}-submenu-popup > ${o}`]: {
|
|
2217
|
-
backgroundColor:
|
|
2253
|
+
backgroundColor: B
|
|
2218
2254
|
},
|
|
2219
2255
|
// ===== 设置浮层的颜色 end =======
|
|
2220
2256
|
// ====================== Horizontal ======================
|
|
@@ -2222,34 +2258,34 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2222
2258
|
borderBottom: 0
|
|
2223
2259
|
} : {}), {
|
|
2224
2260
|
[`> ${o}-item, > ${o}-submenu`]: {
|
|
2225
|
-
top:
|
|
2226
|
-
marginTop: e.calc(
|
|
2261
|
+
top: m,
|
|
2262
|
+
marginTop: e.calc(m).mul(-1).equal(),
|
|
2227
2263
|
marginBottom: 0,
|
|
2228
|
-
borderRadius:
|
|
2264
|
+
borderRadius: j,
|
|
2229
2265
|
"&::after": {
|
|
2230
2266
|
position: "absolute",
|
|
2231
|
-
insetInline:
|
|
2267
|
+
insetInline: h,
|
|
2232
2268
|
bottom: 0,
|
|
2233
|
-
borderBottom: `${
|
|
2234
|
-
transition: `border-color ${
|
|
2269
|
+
borderBottom: `${E(d)} solid transparent`,
|
|
2270
|
+
transition: `border-color ${g} ${p}`,
|
|
2235
2271
|
content: '""'
|
|
2236
2272
|
},
|
|
2237
2273
|
"&:hover, &-active, &-open": {
|
|
2238
|
-
background:
|
|
2274
|
+
background: L,
|
|
2239
2275
|
"&::after": {
|
|
2240
2276
|
borderBottomWidth: d,
|
|
2241
|
-
borderBottomColor:
|
|
2277
|
+
borderBottomColor: P
|
|
2242
2278
|
}
|
|
2243
2279
|
},
|
|
2244
2280
|
"&-selected": {
|
|
2245
|
-
color:
|
|
2246
|
-
backgroundColor:
|
|
2281
|
+
color: P,
|
|
2282
|
+
backgroundColor: A,
|
|
2247
2283
|
"&:hover": {
|
|
2248
|
-
backgroundColor:
|
|
2284
|
+
backgroundColor: A
|
|
2249
2285
|
},
|
|
2250
2286
|
"&::after": {
|
|
2251
2287
|
borderBottomWidth: d,
|
|
2252
|
-
borderBottomColor:
|
|
2288
|
+
borderBottomColor: P
|
|
2253
2289
|
}
|
|
2254
2290
|
}
|
|
2255
2291
|
}
|
|
@@ -2258,7 +2294,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2258
2294
|
//
|
|
2259
2295
|
[`&${o}-root`]: {
|
|
2260
2296
|
[`&${o}-inline, &${o}-vertical`]: {
|
|
2261
|
-
borderInlineEnd: `${
|
|
2297
|
+
borderInlineEnd: `${E(m)} ${S} ${$}`
|
|
2262
2298
|
}
|
|
2263
2299
|
},
|
|
2264
2300
|
// ======================== Inline ========================
|
|
@@ -2273,16 +2309,16 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2273
2309
|
position: "absolute",
|
|
2274
2310
|
insetBlock: 0,
|
|
2275
2311
|
insetInlineEnd: 0,
|
|
2276
|
-
borderInlineEnd: `${
|
|
2312
|
+
borderInlineEnd: `${E(f)} solid ${r}`,
|
|
2277
2313
|
transform: "scaleY(0.0001)",
|
|
2278
2314
|
opacity: 0,
|
|
2279
|
-
transition: [`transform ${
|
|
2315
|
+
transition: [`transform ${y} ${v}`, `opacity ${y} ${v}`].join(","),
|
|
2280
2316
|
content: '""'
|
|
2281
2317
|
},
|
|
2282
2318
|
// Danger
|
|
2283
2319
|
[`&${o}-item-danger`]: {
|
|
2284
2320
|
"&::after": {
|
|
2285
|
-
borderInlineEndColor:
|
|
2321
|
+
borderInlineEndColor: M
|
|
2286
2322
|
}
|
|
2287
2323
|
}
|
|
2288
2324
|
},
|
|
@@ -2290,24 +2326,24 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2290
2326
|
"&::after": {
|
|
2291
2327
|
transform: "scaleY(1)",
|
|
2292
2328
|
opacity: 1,
|
|
2293
|
-
transition: [`transform ${
|
|
2329
|
+
transition: [`transform ${y} ${p}`, `opacity ${y} ${p}`].join(",")
|
|
2294
2330
|
}
|
|
2295
2331
|
}
|
|
2296
2332
|
}
|
|
2297
2333
|
}
|
|
2298
2334
|
};
|
|
2299
|
-
},
|
|
2335
|
+
}, gt = (e) => {
|
|
2300
2336
|
const {
|
|
2301
2337
|
componentCls: t,
|
|
2302
2338
|
itemHeight: o,
|
|
2303
2339
|
itemMarginInline: n,
|
|
2304
2340
|
padding: r,
|
|
2305
|
-
menuArrowSize:
|
|
2341
|
+
menuArrowSize: a,
|
|
2306
2342
|
marginXS: i,
|
|
2307
|
-
itemMarginBlock:
|
|
2308
|
-
itemWidth:
|
|
2309
|
-
itemPaddingInline:
|
|
2310
|
-
} = e,
|
|
2343
|
+
itemMarginBlock: s,
|
|
2344
|
+
itemWidth: c,
|
|
2345
|
+
itemPaddingInline: u
|
|
2346
|
+
} = e, d = e.calc(a).add(r).add(i).equal();
|
|
2311
2347
|
return {
|
|
2312
2348
|
[`${t}-item`]: {
|
|
2313
2349
|
position: "relative",
|
|
@@ -2315,45 +2351,45 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2315
2351
|
},
|
|
2316
2352
|
[`${t}-item, ${t}-submenu-title`]: {
|
|
2317
2353
|
height: o,
|
|
2318
|
-
lineHeight:
|
|
2319
|
-
paddingInline:
|
|
2354
|
+
lineHeight: E(o),
|
|
2355
|
+
paddingInline: u,
|
|
2320
2356
|
overflow: "hidden",
|
|
2321
2357
|
textOverflow: "ellipsis",
|
|
2322
2358
|
marginInline: n,
|
|
2323
|
-
marginBlock:
|
|
2324
|
-
width:
|
|
2359
|
+
marginBlock: s,
|
|
2360
|
+
width: c
|
|
2325
2361
|
},
|
|
2326
2362
|
[`> ${t}-item,
|
|
2327
2363
|
> ${t}-submenu > ${t}-submenu-title`]: {
|
|
2328
2364
|
height: o,
|
|
2329
|
-
lineHeight:
|
|
2365
|
+
lineHeight: E(o)
|
|
2330
2366
|
},
|
|
2331
2367
|
[`${t}-item-group-list ${t}-submenu-title,
|
|
2332
2368
|
${t}-submenu-title`]: {
|
|
2333
|
-
paddingInlineEnd:
|
|
2369
|
+
paddingInlineEnd: d
|
|
2334
2370
|
}
|
|
2335
2371
|
};
|
|
2336
|
-
},
|
|
2372
|
+
}, Yn = (e) => {
|
|
2337
2373
|
const {
|
|
2338
2374
|
componentCls: t,
|
|
2339
2375
|
iconCls: o,
|
|
2340
2376
|
itemHeight: n,
|
|
2341
2377
|
colorTextLightSolid: r,
|
|
2342
|
-
dropdownWidth:
|
|
2378
|
+
dropdownWidth: a,
|
|
2343
2379
|
controlHeightLG: i,
|
|
2344
|
-
motionEaseOut:
|
|
2345
|
-
paddingXL:
|
|
2346
|
-
itemMarginInline:
|
|
2347
|
-
fontSizeLG:
|
|
2348
|
-
motionDurationFast:
|
|
2380
|
+
motionEaseOut: s,
|
|
2381
|
+
paddingXL: c,
|
|
2382
|
+
itemMarginInline: u,
|
|
2383
|
+
fontSizeLG: d,
|
|
2384
|
+
motionDurationFast: f,
|
|
2349
2385
|
motionDurationSlow: m,
|
|
2350
|
-
paddingXS:
|
|
2351
|
-
boxShadowSecondary:
|
|
2386
|
+
paddingXS: g,
|
|
2387
|
+
boxShadowSecondary: p,
|
|
2352
2388
|
collapsedWidth: v,
|
|
2353
|
-
collapsedIconSize:
|
|
2354
|
-
} = e,
|
|
2389
|
+
collapsedIconSize: h
|
|
2390
|
+
} = e, y = {
|
|
2355
2391
|
height: n,
|
|
2356
|
-
lineHeight:
|
|
2392
|
+
lineHeight: E(n),
|
|
2357
2393
|
listStylePosition: "inside",
|
|
2358
2394
|
listStyleType: "disc"
|
|
2359
2395
|
};
|
|
@@ -2364,19 +2400,19 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2364
2400
|
[`&${t}-root`]: {
|
|
2365
2401
|
boxShadow: "none"
|
|
2366
2402
|
}
|
|
2367
|
-
},
|
|
2403
|
+
}, gt(e))
|
|
2368
2404
|
},
|
|
2369
2405
|
[`${t}-submenu-popup`]: {
|
|
2370
|
-
[`${t}-vertical`]: Object.assign(Object.assign({},
|
|
2371
|
-
boxShadow:
|
|
2406
|
+
[`${t}-vertical`]: Object.assign(Object.assign({}, gt(e)), {
|
|
2407
|
+
boxShadow: p
|
|
2372
2408
|
})
|
|
2373
2409
|
}
|
|
2374
2410
|
},
|
|
2375
2411
|
// Vertical only
|
|
2376
2412
|
{
|
|
2377
2413
|
[`${t}-submenu-popup ${t}-vertical${t}-sub`]: {
|
|
2378
|
-
minWidth:
|
|
2379
|
-
maxHeight: `calc(100vh - ${
|
|
2414
|
+
minWidth: a,
|
|
2415
|
+
maxHeight: `calc(100vh - ${E(e.calc(i).mul(2.5).equal())})`,
|
|
2380
2416
|
padding: "0",
|
|
2381
2417
|
overflow: "hidden",
|
|
2382
2418
|
borderInlineEnd: 0,
|
|
@@ -2397,7 +2433,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2397
2433
|
[`${t}-item, ${t}-submenu-title`]: {
|
|
2398
2434
|
display: "flex",
|
|
2399
2435
|
alignItems: "center",
|
|
2400
|
-
transition: [`border-color ${m}`, `background ${m}`, `padding ${
|
|
2436
|
+
transition: [`border-color ${m}`, `background ${m}`, `padding ${f} ${s}`].join(","),
|
|
2401
2437
|
[`> ${t}-title-content`]: {
|
|
2402
2438
|
flex: "auto",
|
|
2403
2439
|
minWidth: 0,
|
|
@@ -2415,13 +2451,13 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2415
2451
|
border: 0,
|
|
2416
2452
|
borderRadius: 0,
|
|
2417
2453
|
boxShadow: "none",
|
|
2418
|
-
[`& > ${t}-submenu > ${t}-submenu-title`]:
|
|
2454
|
+
[`& > ${t}-submenu > ${t}-submenu-title`]: y,
|
|
2419
2455
|
[`& ${t}-item-group-title`]: {
|
|
2420
|
-
paddingInlineStart:
|
|
2456
|
+
paddingInlineStart: c
|
|
2421
2457
|
}
|
|
2422
2458
|
},
|
|
2423
2459
|
// >>>>> Item
|
|
2424
|
-
[`${t}-item`]:
|
|
2460
|
+
[`${t}-item`]: y
|
|
2425
2461
|
}
|
|
2426
2462
|
},
|
|
2427
2463
|
// Inline Collapse Only
|
|
@@ -2431,7 +2467,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2431
2467
|
[`&${t}-root`]: {
|
|
2432
2468
|
[`${t}-item, ${t}-submenu ${t}-submenu-title`]: {
|
|
2433
2469
|
[`> ${t}-inline-collapsed-noicon`]: {
|
|
2434
|
-
fontSize:
|
|
2470
|
+
fontSize: d,
|
|
2435
2471
|
textAlign: "center"
|
|
2436
2472
|
}
|
|
2437
2473
|
}
|
|
@@ -2441,7 +2477,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2441
2477
|
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
2442
2478
|
> ${t}-submenu > ${t}-submenu-title`]: {
|
|
2443
2479
|
insetInlineStart: 0,
|
|
2444
|
-
paddingInline: `calc(50% - ${
|
|
2480
|
+
paddingInline: `calc(50% - ${E(e.calc(h).div(2).equal())} - ${E(u)})`,
|
|
2445
2481
|
textOverflow: "clip",
|
|
2446
2482
|
[`
|
|
2447
2483
|
${t}-submenu-arrow,
|
|
@@ -2451,8 +2487,8 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2451
2487
|
},
|
|
2452
2488
|
[`${t}-item-icon, ${o}`]: {
|
|
2453
2489
|
margin: 0,
|
|
2454
|
-
fontSize:
|
|
2455
|
-
lineHeight:
|
|
2490
|
+
fontSize: h,
|
|
2491
|
+
lineHeight: E(n),
|
|
2456
2492
|
"+ span": {
|
|
2457
2493
|
display: "inline-block",
|
|
2458
2494
|
opacity: 0
|
|
@@ -2471,22 +2507,22 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2471
2507
|
color: r
|
|
2472
2508
|
}
|
|
2473
2509
|
},
|
|
2474
|
-
[`${t}-item-group-title`]: Object.assign(Object.assign({},
|
|
2475
|
-
paddingInline:
|
|
2510
|
+
[`${t}-item-group-title`]: Object.assign(Object.assign({}, fo), {
|
|
2511
|
+
paddingInline: g
|
|
2476
2512
|
})
|
|
2477
2513
|
}
|
|
2478
2514
|
}
|
|
2479
2515
|
];
|
|
2480
|
-
},
|
|
2516
|
+
}, ft = (e) => {
|
|
2481
2517
|
const {
|
|
2482
2518
|
componentCls: t,
|
|
2483
2519
|
motionDurationSlow: o,
|
|
2484
2520
|
motionDurationMid: n,
|
|
2485
2521
|
motionEaseInOut: r,
|
|
2486
|
-
motionEaseOut:
|
|
2522
|
+
motionEaseOut: a,
|
|
2487
2523
|
iconCls: i,
|
|
2488
|
-
iconSize:
|
|
2489
|
-
iconMarginInlineEnd:
|
|
2524
|
+
iconSize: s,
|
|
2525
|
+
iconMarginInlineEnd: c
|
|
2490
2526
|
} = e;
|
|
2491
2527
|
return {
|
|
2492
2528
|
// >>>>> Item
|
|
@@ -2498,16 +2534,16 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2498
2534
|
cursor: "pointer",
|
|
2499
2535
|
transition: [`border-color ${o}`, `background ${o}`, `padding calc(${o} + 0.1s) ${r}`].join(","),
|
|
2500
2536
|
[`${t}-item-icon, ${i}`]: {
|
|
2501
|
-
minWidth:
|
|
2502
|
-
fontSize:
|
|
2503
|
-
transition: [`font-size ${n} ${
|
|
2537
|
+
minWidth: s,
|
|
2538
|
+
fontSize: s,
|
|
2539
|
+
transition: [`font-size ${n} ${a}`, `margin ${o} ${r}`, `color ${o}`].join(","),
|
|
2504
2540
|
"+ span": {
|
|
2505
|
-
marginInlineStart:
|
|
2541
|
+
marginInlineStart: c,
|
|
2506
2542
|
opacity: 1,
|
|
2507
2543
|
transition: [`opacity ${o} ${r}`, `margin ${o}`, `color ${o}`].join(",")
|
|
2508
2544
|
}
|
|
2509
2545
|
},
|
|
2510
|
-
[`${t}-item-icon`]: Object.assign({},
|
|
2546
|
+
[`${t}-item-icon`]: Object.assign({}, vo()),
|
|
2511
2547
|
[`&${t}-item-only-child`]: {
|
|
2512
2548
|
[`> ${i}, > ${t}-item-icon`]: {
|
|
2513
2549
|
marginInlineEnd: 0
|
|
@@ -2522,7 +2558,9 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2522
2558
|
borderColor: "transparent !important"
|
|
2523
2559
|
},
|
|
2524
2560
|
a: {
|
|
2525
|
-
color: "inherit !important"
|
|
2561
|
+
color: "inherit !important",
|
|
2562
|
+
cursor: "not-allowed",
|
|
2563
|
+
pointerEvents: "none"
|
|
2526
2564
|
},
|
|
2527
2565
|
[`> ${t}-submenu-title`]: {
|
|
2528
2566
|
color: "inherit !important",
|
|
@@ -2530,13 +2568,13 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2530
2568
|
}
|
|
2531
2569
|
}
|
|
2532
2570
|
};
|
|
2533
|
-
},
|
|
2571
|
+
}, vt = (e) => {
|
|
2534
2572
|
const {
|
|
2535
2573
|
componentCls: t,
|
|
2536
2574
|
motionDurationSlow: o,
|
|
2537
2575
|
motionEaseInOut: n,
|
|
2538
2576
|
borderRadius: r,
|
|
2539
|
-
menuArrowSize:
|
|
2577
|
+
menuArrowSize: a,
|
|
2540
2578
|
menuArrowOffset: i
|
|
2541
2579
|
} = e;
|
|
2542
2580
|
return {
|
|
@@ -2545,7 +2583,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2545
2583
|
position: "absolute",
|
|
2546
2584
|
top: "50%",
|
|
2547
2585
|
insetInlineEnd: e.margin,
|
|
2548
|
-
width:
|
|
2586
|
+
width: a,
|
|
2549
2587
|
color: "currentcolor",
|
|
2550
2588
|
transform: "translateY(-50%)",
|
|
2551
2589
|
transition: `transform ${o} ${n}, opacity ${o}`
|
|
@@ -2554,48 +2592,48 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2554
2592
|
// →
|
|
2555
2593
|
"&::before, &::after": {
|
|
2556
2594
|
position: "absolute",
|
|
2557
|
-
width: e.calc(
|
|
2558
|
-
height: e.calc(
|
|
2595
|
+
width: e.calc(a).mul(0.6).equal(),
|
|
2596
|
+
height: e.calc(a).mul(0.15).equal(),
|
|
2559
2597
|
backgroundColor: "currentcolor",
|
|
2560
2598
|
borderRadius: r,
|
|
2561
2599
|
transition: [`background ${o} ${n}`, `transform ${o} ${n}`, `top ${o} ${n}`, `color ${o} ${n}`].join(","),
|
|
2562
2600
|
content: '""'
|
|
2563
2601
|
},
|
|
2564
2602
|
"&::before": {
|
|
2565
|
-
transform: `rotate(45deg) translateY(${
|
|
2603
|
+
transform: `rotate(45deg) translateY(${E(e.calc(i).mul(-1).equal())})`
|
|
2566
2604
|
},
|
|
2567
2605
|
"&::after": {
|
|
2568
|
-
transform: `rotate(-45deg) translateY(${
|
|
2606
|
+
transform: `rotate(-45deg) translateY(${E(i)})`
|
|
2569
2607
|
}
|
|
2570
2608
|
}
|
|
2571
2609
|
}
|
|
2572
2610
|
};
|
|
2573
|
-
},
|
|
2611
|
+
}, Un = (e) => {
|
|
2574
2612
|
const {
|
|
2575
2613
|
antCls: t,
|
|
2576
2614
|
componentCls: o,
|
|
2577
2615
|
fontSize: n,
|
|
2578
2616
|
motionDurationSlow: r,
|
|
2579
|
-
motionDurationMid:
|
|
2617
|
+
motionDurationMid: a,
|
|
2580
2618
|
motionEaseInOut: i,
|
|
2581
|
-
paddingXS:
|
|
2582
|
-
padding:
|
|
2583
|
-
colorSplit:
|
|
2584
|
-
lineWidth:
|
|
2585
|
-
zIndexPopup:
|
|
2619
|
+
paddingXS: s,
|
|
2620
|
+
padding: c,
|
|
2621
|
+
colorSplit: u,
|
|
2622
|
+
lineWidth: d,
|
|
2623
|
+
zIndexPopup: f,
|
|
2586
2624
|
borderRadiusLG: m,
|
|
2587
|
-
subMenuItemBorderRadius:
|
|
2588
|
-
menuArrowSize:
|
|
2625
|
+
subMenuItemBorderRadius: g,
|
|
2626
|
+
menuArrowSize: p,
|
|
2589
2627
|
menuArrowOffset: v,
|
|
2590
|
-
lineType:
|
|
2591
|
-
groupTitleLineHeight:
|
|
2592
|
-
groupTitleFontSize:
|
|
2628
|
+
lineType: h,
|
|
2629
|
+
groupTitleLineHeight: y,
|
|
2630
|
+
groupTitleFontSize: b
|
|
2593
2631
|
} = e;
|
|
2594
2632
|
return [
|
|
2595
2633
|
// Misc
|
|
2596
2634
|
{
|
|
2597
2635
|
"": {
|
|
2598
|
-
[o]: Object.assign(Object.assign({},
|
|
2636
|
+
[o]: Object.assign(Object.assign({}, rt()), {
|
|
2599
2637
|
// Hidden
|
|
2600
2638
|
"&-hidden": {
|
|
2601
2639
|
display: "none"
|
|
@@ -2607,7 +2645,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2607
2645
|
}
|
|
2608
2646
|
},
|
|
2609
2647
|
{
|
|
2610
|
-
[o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
2648
|
+
[o]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, fe(e)), rt()), {
|
|
2611
2649
|
marginBottom: 0,
|
|
2612
2650
|
paddingInlineStart: 0,
|
|
2613
2651
|
// Override default ul/ol
|
|
@@ -2633,16 +2671,16 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2633
2671
|
borderRadius: e.itemBorderRadius
|
|
2634
2672
|
},
|
|
2635
2673
|
[`${o}-item-group-title`]: {
|
|
2636
|
-
padding: `${
|
|
2637
|
-
fontSize:
|
|
2638
|
-
lineHeight:
|
|
2674
|
+
padding: `${E(s)} ${E(c)}`,
|
|
2675
|
+
fontSize: b,
|
|
2676
|
+
lineHeight: y,
|
|
2639
2677
|
transition: `all ${r}`
|
|
2640
2678
|
},
|
|
2641
2679
|
[`&-horizontal ${o}-submenu`]: {
|
|
2642
2680
|
transition: [`border-color ${r} ${i}`, `background ${r} ${i}`].join(",")
|
|
2643
2681
|
},
|
|
2644
2682
|
[`${o}-submenu, ${o}-submenu-inline`]: {
|
|
2645
|
-
transition: [`border-color ${r} ${i}`, `background ${r} ${i}`, `padding ${
|
|
2683
|
+
transition: [`border-color ${r} ${i}`, `background ${r} ${i}`, `padding ${a} ${i}`].join(",")
|
|
2646
2684
|
},
|
|
2647
2685
|
[`${o}-submenu ${o}-sub`]: {
|
|
2648
2686
|
cursor: "initial",
|
|
@@ -2662,8 +2700,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2662
2700
|
},
|
|
2663
2701
|
[`${o}-item-extra`]: {
|
|
2664
2702
|
marginInlineStart: "auto",
|
|
2665
|
-
paddingInlineStart: e.padding
|
|
2666
|
-
fontSize: e.fontSizeSM
|
|
2703
|
+
paddingInlineStart: e.padding
|
|
2667
2704
|
}
|
|
2668
2705
|
},
|
|
2669
2706
|
[`${o}-item a`]: {
|
|
@@ -2680,23 +2717,23 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2680
2717
|
[`${o}-item-divider`]: {
|
|
2681
2718
|
overflow: "hidden",
|
|
2682
2719
|
lineHeight: 0,
|
|
2683
|
-
borderColor:
|
|
2684
|
-
borderStyle:
|
|
2720
|
+
borderColor: u,
|
|
2721
|
+
borderStyle: h,
|
|
2685
2722
|
borderWidth: 0,
|
|
2686
|
-
borderTopWidth:
|
|
2687
|
-
marginBlock:
|
|
2723
|
+
borderTopWidth: d,
|
|
2724
|
+
marginBlock: d,
|
|
2688
2725
|
padding: 0,
|
|
2689
2726
|
"&-dashed": {
|
|
2690
2727
|
borderStyle: "dashed"
|
|
2691
2728
|
}
|
|
2692
2729
|
}
|
|
2693
|
-
}),
|
|
2730
|
+
}), ft(e)), {
|
|
2694
2731
|
[`${o}-item-group`]: {
|
|
2695
2732
|
[`${o}-item-group-list`]: {
|
|
2696
2733
|
margin: 0,
|
|
2697
2734
|
padding: 0,
|
|
2698
2735
|
[`${o}-item, ${o}-submenu-title`]: {
|
|
2699
|
-
paddingInline: `${
|
|
2736
|
+
paddingInline: `${E(e.calc(n).mul(2).equal())} ${E(c)}`
|
|
2700
2737
|
}
|
|
2701
2738
|
}
|
|
2702
2739
|
},
|
|
@@ -2704,7 +2741,7 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2704
2741
|
"&-submenu": {
|
|
2705
2742
|
"&-popup": {
|
|
2706
2743
|
position: "absolute",
|
|
2707
|
-
zIndex:
|
|
2744
|
+
zIndex: f,
|
|
2708
2745
|
borderRadius: m,
|
|
2709
2746
|
boxShadow: "none",
|
|
2710
2747
|
transformOrigin: "0 0",
|
|
@@ -2723,9 +2760,9 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2723
2760
|
},
|
|
2724
2761
|
[`> ${o}`]: Object.assign(Object.assign(Object.assign({
|
|
2725
2762
|
borderRadius: m
|
|
2726
|
-
},
|
|
2763
|
+
}, ft(e)), vt(e)), {
|
|
2727
2764
|
[`${o}-item, ${o}-submenu > ${o}-submenu-title`]: {
|
|
2728
|
-
borderRadius:
|
|
2765
|
+
borderRadius: g
|
|
2729
2766
|
},
|
|
2730
2767
|
[`${o}-submenu-title::after`]: {
|
|
2731
2768
|
transition: `transform ${r} ${i}`
|
|
@@ -2757,25 +2794,25 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2757
2794
|
paddingTop: e.paddingXS
|
|
2758
2795
|
}
|
|
2759
2796
|
}
|
|
2760
|
-
}),
|
|
2797
|
+
}), vt(e)), {
|
|
2761
2798
|
[`&-inline-collapsed ${o}-submenu-arrow,
|
|
2762
2799
|
&-inline ${o}-submenu-arrow`]: {
|
|
2763
2800
|
// ↓
|
|
2764
2801
|
"&::before": {
|
|
2765
|
-
transform: `rotate(-45deg) translateX(${
|
|
2802
|
+
transform: `rotate(-45deg) translateX(${E(v)})`
|
|
2766
2803
|
},
|
|
2767
2804
|
"&::after": {
|
|
2768
|
-
transform: `rotate(45deg) translateX(${
|
|
2805
|
+
transform: `rotate(45deg) translateX(${E(e.calc(v).mul(-1).equal())})`
|
|
2769
2806
|
}
|
|
2770
2807
|
},
|
|
2771
2808
|
[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]: {
|
|
2772
2809
|
// ↑
|
|
2773
|
-
transform: `translateY(${
|
|
2810
|
+
transform: `translateY(${E(e.calc(p).mul(0.2).mul(-1).equal())})`,
|
|
2774
2811
|
"&::after": {
|
|
2775
|
-
transform: `rotate(-45deg) translateX(${
|
|
2812
|
+
transform: `rotate(-45deg) translateX(${E(e.calc(v).mul(-1).equal())})`
|
|
2776
2813
|
},
|
|
2777
2814
|
"&::before": {
|
|
2778
|
-
transform: `rotate(45deg) translateX(${
|
|
2815
|
+
transform: `rotate(45deg) translateX(${E(v)})`
|
|
2779
2816
|
}
|
|
2780
2817
|
}
|
|
2781
2818
|
})
|
|
@@ -2789,33 +2826,33 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2789
2826
|
}
|
|
2790
2827
|
}
|
|
2791
2828
|
];
|
|
2792
|
-
},
|
|
2829
|
+
}, Kn = (e) => {
|
|
2793
2830
|
var t, o, n;
|
|
2794
2831
|
const {
|
|
2795
2832
|
colorPrimary: r,
|
|
2796
|
-
colorError:
|
|
2833
|
+
colorError: a,
|
|
2797
2834
|
colorTextDisabled: i,
|
|
2798
|
-
colorErrorBg:
|
|
2799
|
-
colorText:
|
|
2800
|
-
colorTextDescription:
|
|
2801
|
-
colorBgContainer:
|
|
2802
|
-
colorFillAlter:
|
|
2835
|
+
colorErrorBg: s,
|
|
2836
|
+
colorText: c,
|
|
2837
|
+
colorTextDescription: u,
|
|
2838
|
+
colorBgContainer: d,
|
|
2839
|
+
colorFillAlter: f,
|
|
2803
2840
|
colorFillContent: m,
|
|
2804
|
-
lineWidth:
|
|
2805
|
-
lineWidthBold:
|
|
2841
|
+
lineWidth: g,
|
|
2842
|
+
lineWidthBold: p,
|
|
2806
2843
|
controlItemBgActive: v,
|
|
2807
|
-
colorBgTextHover:
|
|
2808
|
-
controlHeightLG:
|
|
2809
|
-
lineHeight:
|
|
2810
|
-
colorBgElevated:
|
|
2811
|
-
marginXXS:
|
|
2844
|
+
colorBgTextHover: h,
|
|
2845
|
+
controlHeightLG: y,
|
|
2846
|
+
lineHeight: b,
|
|
2847
|
+
colorBgElevated: S,
|
|
2848
|
+
marginXXS: $,
|
|
2812
2849
|
padding: O,
|
|
2813
|
-
fontSize:
|
|
2814
|
-
controlHeightSM:
|
|
2815
|
-
fontSizeLG:
|
|
2816
|
-
colorTextLightSolid:
|
|
2817
|
-
colorErrorHover:
|
|
2818
|
-
} = e,
|
|
2850
|
+
fontSize: H,
|
|
2851
|
+
controlHeightSM: R,
|
|
2852
|
+
fontSizeLG: M,
|
|
2853
|
+
colorTextLightSolid: I,
|
|
2854
|
+
colorErrorHover: w
|
|
2855
|
+
} = 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, C = new it(I).setA(0.65).toRgbString();
|
|
2819
2856
|
return {
|
|
2820
2857
|
dropdownWidth: 160,
|
|
2821
2858
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
@@ -2823,161 +2860,163 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2823
2860
|
itemBorderRadius: e.borderRadiusLG,
|
|
2824
2861
|
radiusSubMenuItem: e.borderRadiusSM,
|
|
2825
2862
|
subMenuItemBorderRadius: e.borderRadiusSM,
|
|
2826
|
-
colorItemText:
|
|
2827
|
-
itemColor:
|
|
2828
|
-
colorItemTextHover:
|
|
2829
|
-
itemHoverColor:
|
|
2863
|
+
colorItemText: c,
|
|
2864
|
+
itemColor: c,
|
|
2865
|
+
colorItemTextHover: c,
|
|
2866
|
+
itemHoverColor: c,
|
|
2830
2867
|
colorItemTextHoverHorizontal: r,
|
|
2831
2868
|
horizontalItemHoverColor: r,
|
|
2832
|
-
colorGroupTitle:
|
|
2833
|
-
groupTitleColor:
|
|
2869
|
+
colorGroupTitle: u,
|
|
2870
|
+
groupTitleColor: u,
|
|
2834
2871
|
colorItemTextSelected: r,
|
|
2835
2872
|
itemSelectedColor: r,
|
|
2873
|
+
subMenuItemSelectedColor: r,
|
|
2836
2874
|
colorItemTextSelectedHorizontal: r,
|
|
2837
2875
|
horizontalItemSelectedColor: r,
|
|
2838
|
-
colorItemBg:
|
|
2839
|
-
itemBg:
|
|
2840
|
-
colorItemBgHover:
|
|
2841
|
-
itemHoverBg:
|
|
2876
|
+
colorItemBg: d,
|
|
2877
|
+
itemBg: d,
|
|
2878
|
+
colorItemBgHover: h,
|
|
2879
|
+
itemHoverBg: h,
|
|
2842
2880
|
colorItemBgActive: m,
|
|
2843
2881
|
itemActiveBg: v,
|
|
2844
|
-
colorSubItemBg:
|
|
2845
|
-
subMenuItemBg:
|
|
2882
|
+
colorSubItemBg: f,
|
|
2883
|
+
subMenuItemBg: f,
|
|
2846
2884
|
colorItemBgSelected: v,
|
|
2847
2885
|
itemSelectedBg: v,
|
|
2848
2886
|
colorItemBgSelectedHorizontal: "transparent",
|
|
2849
2887
|
horizontalItemSelectedBg: "transparent",
|
|
2850
2888
|
colorActiveBarWidth: 0,
|
|
2851
|
-
activeBarWidth:
|
|
2852
|
-
colorActiveBarHeight:
|
|
2853
|
-
activeBarHeight:
|
|
2854
|
-
colorActiveBarBorderSize:
|
|
2855
|
-
activeBarBorderWidth:
|
|
2889
|
+
activeBarWidth: B,
|
|
2890
|
+
colorActiveBarHeight: p,
|
|
2891
|
+
activeBarHeight: p,
|
|
2892
|
+
colorActiveBarBorderSize: g,
|
|
2893
|
+
activeBarBorderWidth: z,
|
|
2856
2894
|
// Disabled
|
|
2857
2895
|
colorItemTextDisabled: i,
|
|
2858
2896
|
itemDisabledColor: i,
|
|
2859
2897
|
// Danger
|
|
2860
|
-
colorDangerItemText:
|
|
2861
|
-
dangerItemColor:
|
|
2862
|
-
colorDangerItemTextHover:
|
|
2863
|
-
dangerItemHoverColor:
|
|
2864
|
-
colorDangerItemTextSelected:
|
|
2865
|
-
dangerItemSelectedColor:
|
|
2866
|
-
colorDangerItemBgActive:
|
|
2867
|
-
dangerItemActiveBg:
|
|
2868
|
-
colorDangerItemBgSelected:
|
|
2869
|
-
dangerItemSelectedBg:
|
|
2870
|
-
itemMarginInline:
|
|
2898
|
+
colorDangerItemText: a,
|
|
2899
|
+
dangerItemColor: a,
|
|
2900
|
+
colorDangerItemTextHover: a,
|
|
2901
|
+
dangerItemHoverColor: a,
|
|
2902
|
+
colorDangerItemTextSelected: a,
|
|
2903
|
+
dangerItemSelectedColor: a,
|
|
2904
|
+
colorDangerItemBgActive: s,
|
|
2905
|
+
dangerItemActiveBg: s,
|
|
2906
|
+
colorDangerItemBgSelected: s,
|
|
2907
|
+
dangerItemSelectedBg: s,
|
|
2908
|
+
itemMarginInline: N,
|
|
2871
2909
|
horizontalItemBorderRadius: 0,
|
|
2872
2910
|
horizontalItemHoverBg: "transparent",
|
|
2873
|
-
itemHeight:
|
|
2874
|
-
groupTitleLineHeight:
|
|
2875
|
-
collapsedWidth:
|
|
2876
|
-
popupBg:
|
|
2877
|
-
itemMarginBlock:
|
|
2911
|
+
itemHeight: y,
|
|
2912
|
+
groupTitleLineHeight: b,
|
|
2913
|
+
collapsedWidth: y * 2,
|
|
2914
|
+
popupBg: S,
|
|
2915
|
+
itemMarginBlock: $,
|
|
2878
2916
|
itemPaddingInline: O,
|
|
2879
|
-
horizontalLineHeight: `${
|
|
2880
|
-
iconSize:
|
|
2881
|
-
iconMarginInlineEnd:
|
|
2882
|
-
collapsedIconSize:
|
|
2883
|
-
groupTitleFontSize:
|
|
2917
|
+
horizontalLineHeight: `${y * 1.15}px`,
|
|
2918
|
+
iconSize: H,
|
|
2919
|
+
iconMarginInlineEnd: R - H,
|
|
2920
|
+
collapsedIconSize: M,
|
|
2921
|
+
groupTitleFontSize: H,
|
|
2884
2922
|
// Disabled
|
|
2885
|
-
darkItemDisabledColor: new
|
|
2923
|
+
darkItemDisabledColor: new it(I).setA(0.25).toRgbString(),
|
|
2886
2924
|
// Dark
|
|
2887
|
-
darkItemColor:
|
|
2888
|
-
darkDangerItemColor:
|
|
2925
|
+
darkItemColor: C,
|
|
2926
|
+
darkDangerItemColor: a,
|
|
2889
2927
|
darkItemBg: "#001529",
|
|
2890
2928
|
darkPopupBg: "#001529",
|
|
2891
2929
|
darkSubMenuItemBg: "#000c17",
|
|
2892
|
-
darkItemSelectedColor:
|
|
2930
|
+
darkItemSelectedColor: I,
|
|
2893
2931
|
darkItemSelectedBg: r,
|
|
2894
|
-
darkDangerItemSelectedBg:
|
|
2932
|
+
darkDangerItemSelectedBg: a,
|
|
2895
2933
|
darkItemHoverBg: "transparent",
|
|
2896
|
-
darkGroupTitleColor:
|
|
2897
|
-
darkItemHoverColor:
|
|
2898
|
-
darkDangerItemHoverColor:
|
|
2899
|
-
darkDangerItemSelectedColor:
|
|
2900
|
-
darkDangerItemActiveBg:
|
|
2934
|
+
darkGroupTitleColor: C,
|
|
2935
|
+
darkItemHoverColor: I,
|
|
2936
|
+
darkDangerItemHoverColor: w,
|
|
2937
|
+
darkDangerItemSelectedColor: I,
|
|
2938
|
+
darkDangerItemActiveBg: a,
|
|
2901
2939
|
// internal
|
|
2902
|
-
itemWidth:
|
|
2940
|
+
itemWidth: B ? `calc(100% + ${z}px)` : `calc(100% - ${N * 2}px)`
|
|
2903
2941
|
};
|
|
2904
|
-
},
|
|
2942
|
+
}, Zn = function(e) {
|
|
2905
2943
|
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
|
|
2944
|
+
return ce("Menu", (r) => {
|
|
2907
2945
|
const {
|
|
2908
|
-
colorBgElevated:
|
|
2946
|
+
colorBgElevated: a,
|
|
2909
2947
|
controlHeightLG: i,
|
|
2910
|
-
fontSize:
|
|
2911
|
-
darkItemColor:
|
|
2912
|
-
darkDangerItemColor:
|
|
2913
|
-
darkItemBg:
|
|
2914
|
-
darkSubMenuItemBg:
|
|
2948
|
+
fontSize: s,
|
|
2949
|
+
darkItemColor: c,
|
|
2950
|
+
darkDangerItemColor: u,
|
|
2951
|
+
darkItemBg: d,
|
|
2952
|
+
darkSubMenuItemBg: f,
|
|
2915
2953
|
darkItemSelectedColor: m,
|
|
2916
|
-
darkItemSelectedBg:
|
|
2917
|
-
darkDangerItemSelectedBg:
|
|
2954
|
+
darkItemSelectedBg: g,
|
|
2955
|
+
darkDangerItemSelectedBg: p,
|
|
2918
2956
|
darkItemHoverBg: v,
|
|
2919
|
-
darkGroupTitleColor:
|
|
2920
|
-
darkItemHoverColor:
|
|
2921
|
-
darkItemDisabledColor:
|
|
2922
|
-
darkDangerItemHoverColor:
|
|
2923
|
-
darkDangerItemSelectedColor:
|
|
2957
|
+
darkGroupTitleColor: h,
|
|
2958
|
+
darkItemHoverColor: y,
|
|
2959
|
+
darkItemDisabledColor: b,
|
|
2960
|
+
darkDangerItemHoverColor: S,
|
|
2961
|
+
darkDangerItemSelectedColor: $,
|
|
2924
2962
|
darkDangerItemActiveBg: O,
|
|
2925
|
-
popupBg:
|
|
2926
|
-
darkPopupBg:
|
|
2927
|
-
} = r,
|
|
2928
|
-
menuArrowSize:
|
|
2963
|
+
popupBg: H,
|
|
2964
|
+
darkPopupBg: R
|
|
2965
|
+
} = r, M = r.calc(s).div(7).mul(5).equal(), I = se(r, {
|
|
2966
|
+
menuArrowSize: M,
|
|
2929
2967
|
menuHorizontalHeight: r.calc(i).mul(1.15).equal(),
|
|
2930
|
-
menuArrowOffset: r.calc(
|
|
2931
|
-
menuSubMenuBg:
|
|
2968
|
+
menuArrowOffset: r.calc(M).mul(0.25).equal(),
|
|
2969
|
+
menuSubMenuBg: a,
|
|
2932
2970
|
calc: r.calc,
|
|
2933
|
-
popupBg:
|
|
2934
|
-
}),
|
|
2935
|
-
itemColor:
|
|
2936
|
-
itemHoverColor:
|
|
2937
|
-
groupTitleColor:
|
|
2971
|
+
popupBg: H
|
|
2972
|
+
}), w = se(I, {
|
|
2973
|
+
itemColor: c,
|
|
2974
|
+
itemHoverColor: y,
|
|
2975
|
+
groupTitleColor: h,
|
|
2938
2976
|
itemSelectedColor: m,
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2977
|
+
subMenuItemSelectedColor: m,
|
|
2978
|
+
itemBg: d,
|
|
2979
|
+
popupBg: R,
|
|
2980
|
+
subMenuItemBg: f,
|
|
2942
2981
|
itemActiveBg: "transparent",
|
|
2943
|
-
itemSelectedBg:
|
|
2982
|
+
itemSelectedBg: g,
|
|
2944
2983
|
activeBarHeight: 0,
|
|
2945
2984
|
activeBarBorderWidth: 0,
|
|
2946
2985
|
itemHoverBg: v,
|
|
2947
2986
|
// Disabled
|
|
2948
|
-
itemDisabledColor:
|
|
2987
|
+
itemDisabledColor: b,
|
|
2949
2988
|
// Danger
|
|
2950
|
-
dangerItemColor:
|
|
2951
|
-
dangerItemHoverColor:
|
|
2952
|
-
dangerItemSelectedColor:
|
|
2989
|
+
dangerItemColor: u,
|
|
2990
|
+
dangerItemHoverColor: S,
|
|
2991
|
+
dangerItemSelectedColor: $,
|
|
2953
2992
|
dangerItemActiveBg: O,
|
|
2954
|
-
dangerItemSelectedBg:
|
|
2955
|
-
menuSubMenuBg:
|
|
2993
|
+
dangerItemSelectedBg: p,
|
|
2994
|
+
menuSubMenuBg: f,
|
|
2956
2995
|
// Horizontal
|
|
2957
2996
|
horizontalItemSelectedColor: m,
|
|
2958
|
-
horizontalItemSelectedBg:
|
|
2997
|
+
horizontalItemSelectedBg: g
|
|
2959
2998
|
});
|
|
2960
2999
|
return [
|
|
2961
3000
|
// Basic
|
|
2962
|
-
|
|
3001
|
+
Un(I),
|
|
2963
3002
|
// Horizontal
|
|
2964
|
-
|
|
3003
|
+
qn(I),
|
|
2965
3004
|
// Hard code for some light style
|
|
2966
3005
|
// Vertical
|
|
2967
|
-
|
|
3006
|
+
Yn(I),
|
|
2968
3007
|
// Hard code for some light style
|
|
2969
3008
|
// Theme
|
|
2970
|
-
|
|
2971
|
-
|
|
3009
|
+
pt(I, "light"),
|
|
3010
|
+
pt(w, "dark"),
|
|
2972
3011
|
// RTL
|
|
2973
|
-
|
|
3012
|
+
Gn(I),
|
|
2974
3013
|
// Motion
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
3014
|
+
Ao(I),
|
|
3015
|
+
xe(I, "slide-up"),
|
|
3016
|
+
xe(I, "slide-down"),
|
|
3017
|
+
ze(I, "zoom-big")
|
|
2979
3018
|
];
|
|
2980
|
-
},
|
|
3019
|
+
}, Kn, {
|
|
2981
3020
|
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
3021
|
// Dropdown will handle menu style self. We do not need to handle this.
|
|
2983
3022
|
injectStyle: o,
|
|
@@ -2985,172 +3024,172 @@ const Oe = /* @__PURE__ */ a.createContext(null), _n = /* @__PURE__ */ a.forward
|
|
|
2985
3024
|
groupTitleLineHeight: !0
|
|
2986
3025
|
}
|
|
2987
3026
|
})(e, t);
|
|
2988
|
-
},
|
|
3027
|
+
}, Lt = (e) => {
|
|
2989
3028
|
var t;
|
|
2990
3029
|
const {
|
|
2991
3030
|
popupClassName: o,
|
|
2992
3031
|
icon: n,
|
|
2993
3032
|
title: r,
|
|
2994
|
-
theme:
|
|
2995
|
-
} = e, i =
|
|
2996
|
-
prefixCls:
|
|
2997
|
-
inlineCollapsed:
|
|
2998
|
-
theme:
|
|
2999
|
-
} = i,
|
|
3000
|
-
let
|
|
3033
|
+
theme: a
|
|
3034
|
+
} = e, i = l.useContext(Ie), {
|
|
3035
|
+
prefixCls: s,
|
|
3036
|
+
inlineCollapsed: c,
|
|
3037
|
+
theme: u
|
|
3038
|
+
} = i, d = wo();
|
|
3039
|
+
let f;
|
|
3001
3040
|
if (!n)
|
|
3002
|
-
|
|
3003
|
-
className: `${
|
|
3004
|
-
}, r.charAt(0)) : /* @__PURE__ */
|
|
3005
|
-
className: `${
|
|
3041
|
+
f = c && !d.length && r && typeof r == "string" ? /* @__PURE__ */ l.createElement("div", {
|
|
3042
|
+
className: `${s}-inline-collapsed-noicon`
|
|
3043
|
+
}, r.charAt(0)) : /* @__PURE__ */ l.createElement("span", {
|
|
3044
|
+
className: `${s}-title-content`
|
|
3006
3045
|
}, r);
|
|
3007
3046
|
else {
|
|
3008
|
-
const
|
|
3009
|
-
|
|
3010
|
-
className:
|
|
3011
|
-
}),
|
|
3012
|
-
className: `${
|
|
3047
|
+
const p = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
|
|
3048
|
+
f = /* @__PURE__ */ l.createElement(l.Fragment, null, de(n, {
|
|
3049
|
+
className: _(/* @__PURE__ */ l.isValidElement(n) ? (t = n.props) === null || t === void 0 ? void 0 : t.className : "", `${s}-item-icon`)
|
|
3050
|
+
}), p ? r : /* @__PURE__ */ l.createElement("span", {
|
|
3051
|
+
className: `${s}-title-content`
|
|
3013
3052
|
}, r));
|
|
3014
3053
|
}
|
|
3015
|
-
const m =
|
|
3054
|
+
const m = l.useMemo(() => Object.assign(Object.assign({}, i), {
|
|
3016
3055
|
firstLevel: !1
|
|
3017
|
-
}), [i]), [
|
|
3018
|
-
return /* @__PURE__ */
|
|
3056
|
+
}), [i]), [g] = Ge("Menu");
|
|
3057
|
+
return /* @__PURE__ */ l.createElement(Ie.Provider, {
|
|
3019
3058
|
value: m
|
|
3020
|
-
}, /* @__PURE__ */
|
|
3021
|
-
title:
|
|
3022
|
-
popupClassName:
|
|
3059
|
+
}, /* @__PURE__ */ l.createElement(xo, Object.assign({}, be(e, ["icon"]), {
|
|
3060
|
+
title: f,
|
|
3061
|
+
popupClassName: _(s, o, `${s}-${a || u}`),
|
|
3023
3062
|
popupStyle: Object.assign({
|
|
3024
|
-
zIndex:
|
|
3063
|
+
zIndex: g
|
|
3025
3064
|
}, e.popupStyle)
|
|
3026
3065
|
})));
|
|
3027
3066
|
};
|
|
3028
|
-
var
|
|
3067
|
+
var Qn = function(e, t) {
|
|
3029
3068
|
var o = {};
|
|
3030
3069
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
3031
3070
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
3032
3071
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
3033
3072
|
return o;
|
|
3034
3073
|
};
|
|
3035
|
-
function
|
|
3074
|
+
function He(e) {
|
|
3036
3075
|
return e === null || e === !1;
|
|
3037
3076
|
}
|
|
3038
|
-
const
|
|
3039
|
-
item:
|
|
3040
|
-
submenu:
|
|
3041
|
-
divider:
|
|
3042
|
-
},
|
|
3077
|
+
const Jn = {
|
|
3078
|
+
item: At,
|
|
3079
|
+
submenu: Lt,
|
|
3080
|
+
divider: Ht
|
|
3081
|
+
}, er = /* @__PURE__ */ ke((e, t) => {
|
|
3043
3082
|
var o;
|
|
3044
|
-
const n =
|
|
3045
|
-
getPrefixCls:
|
|
3083
|
+
const n = l.useContext(Ne), r = n || {}, {
|
|
3084
|
+
getPrefixCls: a,
|
|
3046
3085
|
getPopupContainer: i,
|
|
3047
|
-
direction:
|
|
3048
|
-
menu:
|
|
3049
|
-
} =
|
|
3050
|
-
prefixCls:
|
|
3051
|
-
className:
|
|
3086
|
+
direction: s,
|
|
3087
|
+
menu: c
|
|
3088
|
+
} = l.useContext(ne), u = a(), {
|
|
3089
|
+
prefixCls: d,
|
|
3090
|
+
className: f,
|
|
3052
3091
|
style: m,
|
|
3053
|
-
theme:
|
|
3054
|
-
expandIcon:
|
|
3092
|
+
theme: g = "light",
|
|
3093
|
+
expandIcon: p,
|
|
3055
3094
|
_internalDisableMenuItemTitleTooltip: v,
|
|
3056
|
-
inlineCollapsed:
|
|
3057
|
-
siderCollapsed:
|
|
3058
|
-
rootClassName:
|
|
3059
|
-
mode:
|
|
3060
|
-
selectable:
|
|
3095
|
+
inlineCollapsed: h,
|
|
3096
|
+
siderCollapsed: y,
|
|
3097
|
+
rootClassName: b,
|
|
3098
|
+
mode: S,
|
|
3099
|
+
selectable: $,
|
|
3061
3100
|
onClick: O,
|
|
3062
|
-
overflowedIndicatorPopupClassName:
|
|
3063
|
-
} = e,
|
|
3101
|
+
overflowedIndicatorPopupClassName: H
|
|
3102
|
+
} = e, R = Qn(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), M = be(R, ["collapsedWidth"]);
|
|
3064
3103
|
if (process.env.NODE_ENV !== "production") {
|
|
3065
|
-
const
|
|
3066
|
-
process.env.NODE_ENV !== "production" &&
|
|
3104
|
+
const D = ve("Menu");
|
|
3105
|
+
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
3106
|
}
|
|
3068
3107
|
(o = r.validator) === null || o === void 0 || o.call(r, {
|
|
3069
|
-
mode:
|
|
3108
|
+
mode: S
|
|
3070
3109
|
});
|
|
3071
|
-
const
|
|
3072
|
-
var
|
|
3073
|
-
O == null || O.apply(void 0, arguments), (
|
|
3074
|
-
}),
|
|
3110
|
+
const I = wt(function() {
|
|
3111
|
+
var D;
|
|
3112
|
+
O == null || O.apply(void 0, arguments), (D = r.onClick) === null || D === void 0 || D.call(r);
|
|
3113
|
+
}), w = r.mode || S, B = $ ?? r.selectable, z = h ?? y, N = {
|
|
3075
3114
|
horizontal: {
|
|
3076
|
-
motionName: `${
|
|
3115
|
+
motionName: `${u}-slide-up`
|
|
3077
3116
|
},
|
|
3078
|
-
inline:
|
|
3117
|
+
inline: bo(u),
|
|
3079
3118
|
other: {
|
|
3080
|
-
motionName: `${
|
|
3119
|
+
motionName: `${u}-zoom-big`
|
|
3081
3120
|
}
|
|
3082
|
-
},
|
|
3083
|
-
var
|
|
3084
|
-
if (typeof
|
|
3085
|
-
return
|
|
3086
|
-
if (typeof r.expandIcon == "function" ||
|
|
3121
|
+
}, C = a("menu", d || r.prefixCls), P = Be(C), [A, j, L] = Zn(C, P, !n), F = _(`${C}-${g}`, c == null ? void 0 : c.className, f), V = l.useMemo(() => {
|
|
3122
|
+
var D, W;
|
|
3123
|
+
if (typeof p == "function" || He(p))
|
|
3124
|
+
return p || null;
|
|
3125
|
+
if (typeof r.expandIcon == "function" || He(r.expandIcon))
|
|
3087
3126
|
return r.expandIcon || null;
|
|
3088
|
-
if (typeof (
|
|
3089
|
-
return (
|
|
3090
|
-
const q = (
|
|
3091
|
-
return
|
|
3092
|
-
className:
|
|
3127
|
+
if (typeof (c == null ? void 0 : c.expandIcon) == "function" || He(c == null ? void 0 : c.expandIcon))
|
|
3128
|
+
return (c == null ? void 0 : c.expandIcon) || null;
|
|
3129
|
+
const q = (D = p ?? (r == null ? void 0 : r.expandIcon)) !== null && D !== void 0 ? D : c == null ? void 0 : c.expandIcon;
|
|
3130
|
+
return de(q, {
|
|
3131
|
+
className: _(`${C}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(q) ? (W = q.props) === null || W === void 0 ? void 0 : W.className : void 0)
|
|
3093
3132
|
});
|
|
3094
|
-
}, [
|
|
3095
|
-
prefixCls:
|
|
3096
|
-
inlineCollapsed:
|
|
3097
|
-
direction:
|
|
3133
|
+
}, [p, r == null ? void 0 : r.expandIcon, c == null ? void 0 : c.expandIcon, C]), k = l.useMemo(() => ({
|
|
3134
|
+
prefixCls: C,
|
|
3135
|
+
inlineCollapsed: z || !1,
|
|
3136
|
+
direction: s,
|
|
3098
3137
|
firstLevel: !0,
|
|
3099
|
-
theme:
|
|
3100
|
-
mode:
|
|
3138
|
+
theme: g,
|
|
3139
|
+
mode: w,
|
|
3101
3140
|
disableMenuItemTitleTooltip: v
|
|
3102
|
-
}), [
|
|
3103
|
-
return
|
|
3141
|
+
}), [C, z, s, v, g]);
|
|
3142
|
+
return A(/* @__PURE__ */ l.createElement(Ne.Provider, {
|
|
3104
3143
|
value: null
|
|
3105
|
-
}, /* @__PURE__ */
|
|
3106
|
-
value:
|
|
3107
|
-
}, /* @__PURE__ */
|
|
3144
|
+
}, /* @__PURE__ */ l.createElement(Ie.Provider, {
|
|
3145
|
+
value: k
|
|
3146
|
+
}, /* @__PURE__ */ l.createElement(So, Object.assign({
|
|
3108
3147
|
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:
|
|
3148
|
+
overflowedIndicator: /* @__PURE__ */ l.createElement(xt, null),
|
|
3149
|
+
overflowedIndicatorPopupClassName: _(C, `${C}-${g}`, H),
|
|
3150
|
+
mode: w,
|
|
3151
|
+
selectable: B,
|
|
3152
|
+
onClick: I
|
|
3153
|
+
}, M, {
|
|
3154
|
+
inlineCollapsed: z,
|
|
3155
|
+
style: Object.assign(Object.assign({}, c == null ? void 0 : c.style), m),
|
|
3156
|
+
className: F,
|
|
3157
|
+
prefixCls: C,
|
|
3158
|
+
direction: s,
|
|
3159
|
+
defaultMotions: N,
|
|
3121
3160
|
expandIcon: V,
|
|
3122
3161
|
ref: t,
|
|
3123
|
-
rootClassName:
|
|
3124
|
-
_internalComponents:
|
|
3162
|
+
rootClassName: _(b, j, r.rootClassName, L, P),
|
|
3163
|
+
_internalComponents: Jn
|
|
3125
3164
|
})))));
|
|
3126
|
-
}),
|
|
3127
|
-
const o =
|
|
3128
|
-
return
|
|
3165
|
+
}), pe = /* @__PURE__ */ ke((e, t) => {
|
|
3166
|
+
const o = Ee(null), n = l.useContext(Je);
|
|
3167
|
+
return yt(t, () => ({
|
|
3129
3168
|
menu: o.current,
|
|
3130
3169
|
focus: (r) => {
|
|
3131
|
-
var
|
|
3132
|
-
(
|
|
3170
|
+
var a;
|
|
3171
|
+
(a = o.current) === null || a === void 0 || a.focus(r);
|
|
3133
3172
|
}
|
|
3134
|
-
})), /* @__PURE__ */
|
|
3173
|
+
})), /* @__PURE__ */ l.createElement(er, Object.assign({
|
|
3135
3174
|
ref: o
|
|
3136
3175
|
}, e, n));
|
|
3137
3176
|
});
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
process.env.NODE_ENV !== "production" && (
|
|
3143
|
-
const
|
|
3177
|
+
pe.Item = At;
|
|
3178
|
+
pe.SubMenu = Lt;
|
|
3179
|
+
pe.Divider = Ht;
|
|
3180
|
+
pe.ItemGroup = Oo;
|
|
3181
|
+
process.env.NODE_ENV !== "production" && (pe.displayName = "Menu");
|
|
3182
|
+
const tr = (e) => {
|
|
3144
3183
|
const {
|
|
3145
3184
|
componentCls: t,
|
|
3146
3185
|
menuCls: o,
|
|
3147
3186
|
colorError: n,
|
|
3148
3187
|
colorTextLightSolid: r
|
|
3149
|
-
} = e,
|
|
3188
|
+
} = e, a = `${o}-item`;
|
|
3150
3189
|
return {
|
|
3151
3190
|
[`${t}, ${t}-menu-submenu`]: {
|
|
3152
|
-
[`${o} ${
|
|
3153
|
-
[`&${
|
|
3191
|
+
[`${o} ${a}`]: {
|
|
3192
|
+
[`&${a}-danger:not(${a}-disabled)`]: {
|
|
3154
3193
|
color: n,
|
|
3155
3194
|
"&:hover": {
|
|
3156
3195
|
color: r,
|
|
@@ -3160,22 +3199,22 @@ const Xn = (e) => {
|
|
|
3160
3199
|
}
|
|
3161
3200
|
}
|
|
3162
3201
|
};
|
|
3163
|
-
},
|
|
3202
|
+
}, or = (e) => {
|
|
3164
3203
|
const {
|
|
3165
3204
|
componentCls: t,
|
|
3166
3205
|
menuCls: o,
|
|
3167
3206
|
zIndexPopup: n,
|
|
3168
3207
|
dropdownArrowDistance: r,
|
|
3169
|
-
sizePopupArrow:
|
|
3208
|
+
sizePopupArrow: a,
|
|
3170
3209
|
antCls: i,
|
|
3171
|
-
iconCls:
|
|
3172
|
-
motionDurationMid:
|
|
3173
|
-
paddingBlock:
|
|
3174
|
-
fontSize:
|
|
3175
|
-
dropdownEdgeChildPadding:
|
|
3210
|
+
iconCls: s,
|
|
3211
|
+
motionDurationMid: c,
|
|
3212
|
+
paddingBlock: u,
|
|
3213
|
+
fontSize: d,
|
|
3214
|
+
dropdownEdgeChildPadding: f,
|
|
3176
3215
|
colorTextDisabled: m,
|
|
3177
|
-
fontSizeIcon:
|
|
3178
|
-
controlPaddingHorizontal:
|
|
3216
|
+
fontSizeIcon: g,
|
|
3217
|
+
controlPaddingHorizontal: p,
|
|
3179
3218
|
colorBgElevated: v
|
|
3180
3219
|
} = e;
|
|
3181
3220
|
return [
|
|
@@ -3192,7 +3231,7 @@ const Xn = (e) => {
|
|
|
3192
3231
|
// A placeholder out of dropdown visible range to avoid close when user moving
|
|
3193
3232
|
"&::before": {
|
|
3194
3233
|
position: "absolute",
|
|
3195
|
-
insetBlock: e.calc(
|
|
3234
|
+
insetBlock: e.calc(a).div(2).sub(r).equal(),
|
|
3196
3235
|
// insetInlineStart: -7, // FIXME: Seems not work for hidden element
|
|
3197
3236
|
zIndex: -9999,
|
|
3198
3237
|
opacity: 1e-4,
|
|
@@ -3204,21 +3243,21 @@ const Xn = (e) => {
|
|
|
3204
3243
|
overflowY: "auto"
|
|
3205
3244
|
},
|
|
3206
3245
|
[`&-trigger${i}-btn`]: {
|
|
3207
|
-
[`& > ${
|
|
3208
|
-
fontSize:
|
|
3246
|
+
[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]: {
|
|
3247
|
+
fontSize: g
|
|
3209
3248
|
}
|
|
3210
3249
|
},
|
|
3211
3250
|
[`${t}-wrap`]: {
|
|
3212
3251
|
position: "relative",
|
|
3213
|
-
[`${i}-btn > ${
|
|
3214
|
-
fontSize:
|
|
3252
|
+
[`${i}-btn > ${s}-down`]: {
|
|
3253
|
+
fontSize: g
|
|
3215
3254
|
},
|
|
3216
|
-
[`${
|
|
3217
|
-
transition: `transform ${
|
|
3255
|
+
[`${s}-down::before`]: {
|
|
3256
|
+
transition: `transform ${c}`
|
|
3218
3257
|
}
|
|
3219
3258
|
},
|
|
3220
3259
|
[`${t}-wrap-open`]: {
|
|
3221
|
-
[`${
|
|
3260
|
+
[`${s}-down::before`]: {
|
|
3222
3261
|
transform: "rotate(180deg)"
|
|
3223
3262
|
}
|
|
3224
3263
|
},
|
|
@@ -3236,7 +3275,7 @@ const Xn = (e) => {
|
|
|
3236
3275
|
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
|
|
3237
3276
|
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
|
|
3238
3277
|
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]: {
|
|
3239
|
-
animationName:
|
|
3278
|
+
animationName: Po
|
|
3240
3279
|
},
|
|
3241
3280
|
[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
|
|
3242
3281
|
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
|
|
@@ -3244,25 +3283,28 @@ const Xn = (e) => {
|
|
|
3244
3283
|
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
|
|
3245
3284
|
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
|
|
3246
3285
|
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]: {
|
|
3247
|
-
animationName:
|
|
3286
|
+
animationName: Eo
|
|
3248
3287
|
},
|
|
3249
3288
|
[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
3250
3289
|
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
|
|
3251
3290
|
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]: {
|
|
3252
|
-
animationName:
|
|
3291
|
+
animationName: No
|
|
3253
3292
|
},
|
|
3254
3293
|
[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
|
|
3255
3294
|
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
|
|
3256
3295
|
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]: {
|
|
3257
|
-
animationName:
|
|
3296
|
+
animationName: Io
|
|
3258
3297
|
}
|
|
3259
3298
|
}
|
|
3260
3299
|
},
|
|
3261
3300
|
// =============================================================
|
|
3262
3301
|
// == Arrow style ==
|
|
3263
3302
|
// =============================================================
|
|
3264
|
-
|
|
3265
|
-
arrowPlacement: {
|
|
3303
|
+
Ze(e, v, {
|
|
3304
|
+
arrowPlacement: {
|
|
3305
|
+
top: !0,
|
|
3306
|
+
bottom: !0
|
|
3307
|
+
}
|
|
3266
3308
|
}),
|
|
3267
3309
|
{
|
|
3268
3310
|
// =============================================================
|
|
@@ -3283,24 +3325,24 @@ const Xn = (e) => {
|
|
|
3283
3325
|
margin: 0
|
|
3284
3326
|
}
|
|
3285
3327
|
},
|
|
3286
|
-
[`${t}, ${t}-menu-submenu`]: Object.assign(Object.assign({},
|
|
3328
|
+
[`${t}, ${t}-menu-submenu`]: Object.assign(Object.assign({}, fe(e)), {
|
|
3287
3329
|
[o]: Object.assign(Object.assign({
|
|
3288
|
-
padding:
|
|
3330
|
+
padding: f,
|
|
3289
3331
|
listStyleType: "none",
|
|
3290
3332
|
backgroundColor: v,
|
|
3291
3333
|
backgroundClip: "padding-box",
|
|
3292
3334
|
borderRadius: e.borderRadiusLG,
|
|
3293
3335
|
outline: "none",
|
|
3294
3336
|
boxShadow: e.boxShadowSecondary
|
|
3295
|
-
},
|
|
3337
|
+
}, at(e)), {
|
|
3296
3338
|
"&:empty": {
|
|
3297
3339
|
padding: 0,
|
|
3298
3340
|
boxShadow: "none"
|
|
3299
3341
|
},
|
|
3300
3342
|
[`${o}-item-group-title`]: {
|
|
3301
|
-
padding: `${
|
|
3343
|
+
padding: `${E(u)} ${E(p)}`,
|
|
3302
3344
|
color: e.colorTextDescription,
|
|
3303
|
-
transition: `all ${
|
|
3345
|
+
transition: `all ${c}`
|
|
3304
3346
|
},
|
|
3305
3347
|
// ======================= Item Content =======================
|
|
3306
3348
|
[`${o}-item`]: {
|
|
@@ -3309,7 +3351,7 @@ const Xn = (e) => {
|
|
|
3309
3351
|
alignItems: "center"
|
|
3310
3352
|
},
|
|
3311
3353
|
[`${o}-item-icon`]: {
|
|
3312
|
-
minWidth:
|
|
3354
|
+
minWidth: d,
|
|
3313
3355
|
marginInlineEnd: e.marginXS,
|
|
3314
3356
|
fontSize: e.fontSizeSM
|
|
3315
3357
|
},
|
|
@@ -3322,7 +3364,7 @@ const Xn = (e) => {
|
|
|
3322
3364
|
},
|
|
3323
3365
|
"> a": {
|
|
3324
3366
|
color: "inherit",
|
|
3325
|
-
transition: `all ${
|
|
3367
|
+
transition: `all ${c}`,
|
|
3326
3368
|
"&:hover": {
|
|
3327
3369
|
color: "inherit"
|
|
3328
3370
|
},
|
|
@@ -3343,18 +3385,18 @@ const Xn = (e) => {
|
|
|
3343
3385
|
[`${o}-item, ${o}-submenu-title`]: Object.assign(Object.assign({
|
|
3344
3386
|
display: "flex",
|
|
3345
3387
|
margin: 0,
|
|
3346
|
-
padding: `${
|
|
3388
|
+
padding: `${E(u)} ${E(p)}`,
|
|
3347
3389
|
color: e.colorText,
|
|
3348
3390
|
fontWeight: "normal",
|
|
3349
|
-
fontSize:
|
|
3391
|
+
fontSize: d,
|
|
3350
3392
|
lineHeight: e.lineHeight,
|
|
3351
3393
|
cursor: "pointer",
|
|
3352
|
-
transition: `all ${
|
|
3394
|
+
transition: `all ${c}`,
|
|
3353
3395
|
borderRadius: e.borderRadiusSM,
|
|
3354
3396
|
"&:hover, &-active": {
|
|
3355
3397
|
backgroundColor: e.controlItemBgHover
|
|
3356
3398
|
}
|
|
3357
|
-
},
|
|
3399
|
+
}, at(e)), {
|
|
3358
3400
|
"&-selected": {
|
|
3359
3401
|
color: e.colorPrimary,
|
|
3360
3402
|
backgroundColor: e.controlItemBgActive,
|
|
@@ -3377,7 +3419,7 @@ const Xn = (e) => {
|
|
|
3377
3419
|
"&-divider": {
|
|
3378
3420
|
height: 1,
|
|
3379
3421
|
// By design
|
|
3380
|
-
margin: `${
|
|
3422
|
+
margin: `${E(e.marginXXS)} 0`,
|
|
3381
3423
|
overflow: "hidden",
|
|
3382
3424
|
lineHeight: 0,
|
|
3383
3425
|
backgroundColor: e.colorSplit
|
|
@@ -3388,18 +3430,18 @@ const Xn = (e) => {
|
|
|
3388
3430
|
[`${t}-menu-submenu-arrow-icon`]: {
|
|
3389
3431
|
marginInlineEnd: "0 !important",
|
|
3390
3432
|
color: e.colorTextDescription,
|
|
3391
|
-
fontSize:
|
|
3433
|
+
fontSize: g,
|
|
3392
3434
|
fontStyle: "normal"
|
|
3393
3435
|
}
|
|
3394
3436
|
}
|
|
3395
3437
|
}),
|
|
3396
3438
|
[`${o}-item-group-list`]: {
|
|
3397
|
-
margin: `0 ${
|
|
3439
|
+
margin: `0 ${E(e.marginXS)}`,
|
|
3398
3440
|
padding: 0,
|
|
3399
3441
|
listStyle: "none"
|
|
3400
3442
|
},
|
|
3401
3443
|
[`${o}-submenu-title`]: {
|
|
3402
|
-
paddingInlineEnd: e.calc(
|
|
3444
|
+
paddingInlineEnd: e.calc(p).add(e.fontSizeSM).equal()
|
|
3403
3445
|
},
|
|
3404
3446
|
[`${o}-submenu-vertical`]: {
|
|
3405
3447
|
position: "relative"
|
|
@@ -3419,343 +3461,336 @@ const Xn = (e) => {
|
|
|
3419
3461
|
})
|
|
3420
3462
|
},
|
|
3421
3463
|
// Follow code may reuse in other components
|
|
3422
|
-
[
|
|
3464
|
+
[xe(e, "slide-up"), xe(e, "slide-down"), st(e, "move-up"), st(e, "move-down"), ze(e, "zoom-big")]
|
|
3423
3465
|
];
|
|
3424
|
-
},
|
|
3466
|
+
}, nr = (e) => Object.assign(Object.assign({
|
|
3425
3467
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
3426
3468
|
paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
|
|
3427
|
-
},
|
|
3469
|
+
}, je({
|
|
3428
3470
|
contentRadius: e.borderRadiusLG,
|
|
3429
3471
|
limitVerticalRadius: !0
|
|
3430
|
-
})),
|
|
3472
|
+
})), Ke(e)), rr = ce("Dropdown", (e) => {
|
|
3431
3473
|
const {
|
|
3432
3474
|
marginXXS: t,
|
|
3433
3475
|
sizePopupArrow: o,
|
|
3434
3476
|
paddingXXS: n,
|
|
3435
3477
|
componentCls: r
|
|
3436
|
-
} = e,
|
|
3478
|
+
} = e, a = se(e, {
|
|
3437
3479
|
menuCls: `${r}-menu`,
|
|
3438
3480
|
dropdownArrowDistance: e.calc(o).div(2).add(t).equal(),
|
|
3439
3481
|
dropdownEdgeChildPadding: n
|
|
3440
3482
|
});
|
|
3441
|
-
return [
|
|
3442
|
-
},
|
|
3483
|
+
return [or(a), tr(a)];
|
|
3484
|
+
}, nr, {
|
|
3443
3485
|
resetStyle: !1
|
|
3444
|
-
}),
|
|
3486
|
+
}), he = (e) => {
|
|
3445
3487
|
var t;
|
|
3446
3488
|
const {
|
|
3447
3489
|
menu: o,
|
|
3448
3490
|
arrow: n,
|
|
3449
3491
|
prefixCls: r,
|
|
3450
|
-
children:
|
|
3492
|
+
children: a,
|
|
3451
3493
|
trigger: i,
|
|
3452
|
-
disabled:
|
|
3453
|
-
dropdownRender:
|
|
3454
|
-
getPopupContainer:
|
|
3455
|
-
overlayClassName:
|
|
3456
|
-
rootClassName:
|
|
3494
|
+
disabled: s,
|
|
3495
|
+
dropdownRender: c,
|
|
3496
|
+
getPopupContainer: u,
|
|
3497
|
+
overlayClassName: d,
|
|
3498
|
+
rootClassName: f,
|
|
3457
3499
|
overlayStyle: m,
|
|
3458
|
-
open:
|
|
3459
|
-
onOpenChange:
|
|
3500
|
+
open: g,
|
|
3501
|
+
onOpenChange: p,
|
|
3460
3502
|
// Deprecated
|
|
3461
3503
|
visible: v,
|
|
3462
|
-
onVisibleChange:
|
|
3463
|
-
mouseEnterDelay:
|
|
3464
|
-
mouseLeaveDelay:
|
|
3465
|
-
autoAdjustOverflow:
|
|
3466
|
-
placement:
|
|
3504
|
+
onVisibleChange: h,
|
|
3505
|
+
mouseEnterDelay: y = 0.15,
|
|
3506
|
+
mouseLeaveDelay: b = 0.1,
|
|
3507
|
+
autoAdjustOverflow: S = !0,
|
|
3508
|
+
placement: $ = "",
|
|
3467
3509
|
overlay: O,
|
|
3468
|
-
transitionName:
|
|
3510
|
+
transitionName: H
|
|
3469
3511
|
} = 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
|
-
}, [
|
|
3512
|
+
getPopupContainer: R,
|
|
3513
|
+
getPrefixCls: M,
|
|
3514
|
+
direction: I,
|
|
3515
|
+
dropdown: w
|
|
3516
|
+
} = l.useContext(ne), B = ve("Dropdown");
|
|
3517
|
+
process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((X) => {
|
|
3518
|
+
let [oe, ee] = X;
|
|
3519
|
+
B.deprecated(!(oe in e), oe, ee);
|
|
3520
|
+
}), B.deprecated(!("overlay" in e), "overlay", "menu"));
|
|
3521
|
+
const z = l.useMemo(() => {
|
|
3522
|
+
const X = M();
|
|
3523
|
+
return H !== void 0 ? H : $.includes("top") ? `${X}-slide-down` : `${X}-slide-up`;
|
|
3524
|
+
}, [M, $, H]), N = l.useMemo(() => $ ? $.includes("Center") ? $.slice(0, $.indexOf("Center")) : $ : I === "rtl" ? "bottomRight" : "bottomLeft", [$, I]);
|
|
3483
3525
|
if (process.env.NODE_ENV !== "production") {
|
|
3484
|
-
if (
|
|
3485
|
-
const
|
|
3486
|
-
process.env.NODE_ENV !== "production" &&
|
|
3526
|
+
if ($.includes("Center")) {
|
|
3527
|
+
const X = $.slice(0, $.indexOf("Center"));
|
|
3528
|
+
process.env.NODE_ENV !== "production" && B(!$.includes("Center"), "deprecated", `You are using '${$}' placement in Dropdown, which is deprecated. Try to use '${X}' instead.`);
|
|
3487
3529
|
}
|
|
3488
|
-
[["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((
|
|
3489
|
-
let [oe, ee] =
|
|
3490
|
-
|
|
3530
|
+
[["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((X) => {
|
|
3531
|
+
let [oe, ee] = X;
|
|
3532
|
+
B.deprecated(!(oe in e), oe, ee);
|
|
3491
3533
|
});
|
|
3492
3534
|
}
|
|
3493
|
-
const
|
|
3494
|
-
className:
|
|
3495
|
-
[`${
|
|
3535
|
+
const C = M("dropdown", r), P = Be(C), [A, j, L] = rr(C, P), [, F] = We(), V = l.Children.only(Bn(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), k = de(V, {
|
|
3536
|
+
className: _(`${C}-trigger`, {
|
|
3537
|
+
[`${C}-rtl`]: I === "rtl"
|
|
3496
3538
|
}, V.props.className),
|
|
3497
|
-
disabled: (t = V.props.disabled) !== null && t !== void 0 ? t :
|
|
3498
|
-
}),
|
|
3499
|
-
value:
|
|
3500
|
-
}),
|
|
3501
|
-
|
|
3539
|
+
disabled: (t = V.props.disabled) !== null && t !== void 0 ? t : s
|
|
3540
|
+
}), D = s ? [] : i, W = !!(D != null && D.includes("contextMenu")), [q, G] = Fe(!1, {
|
|
3541
|
+
value: g ?? v
|
|
3542
|
+
}), Z = wt((X) => {
|
|
3543
|
+
p == null || p(X, {
|
|
3502
3544
|
source: "trigger"
|
|
3503
|
-
}),
|
|
3504
|
-
}),
|
|
3505
|
-
[`${
|
|
3506
|
-
}),
|
|
3545
|
+
}), h == null || h(X), G(X);
|
|
3546
|
+
}), Y = _(d, f, j, L, P, w == null ? void 0 : w.className, {
|
|
3547
|
+
[`${C}-rtl`]: I === "rtl"
|
|
3548
|
+
}), x = Pt({
|
|
3507
3549
|
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) || (
|
|
3550
|
+
autoAdjustOverflow: S,
|
|
3551
|
+
offset: F.marginXXS,
|
|
3552
|
+
arrowWidth: n ? F.sizePopupArrow : 0,
|
|
3553
|
+
borderRadius: F.borderRadius
|
|
3554
|
+
}), T = l.useCallback(() => {
|
|
3555
|
+
o != null && o.selectable && (o != null && o.multiple) || (p == null || p(!1, {
|
|
3514
3556
|
source: "menu"
|
|
3515
|
-
}),
|
|
3557
|
+
}), G(!1));
|
|
3516
3558
|
}, [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: `${
|
|
3559
|
+
let X;
|
|
3560
|
+
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, {
|
|
3561
|
+
prefixCls: `${C}-menu`,
|
|
3562
|
+
rootClassName: _(L, P),
|
|
3563
|
+
expandIcon: /* @__PURE__ */ l.createElement("span", {
|
|
3564
|
+
className: `${C}-menu-submenu-arrow`
|
|
3565
|
+
}, /* @__PURE__ */ l.createElement(Se, {
|
|
3566
|
+
className: `${C}-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, _e] = 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: y,
|
|
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: C,
|
|
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: _e
|
|
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: y,
|
|
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
|
+
}), C = 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-${C}`]: C,
|
|
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: y,
|
|
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: y,
|
|
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: C,
|
|
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 ? [] : y,
|
|
3746
|
+
onOpenChange: $,
|
|
3747
|
+
getPopupContainer: H || t,
|
|
3748
|
+
mouseEnterDelay: B,
|
|
3749
|
+
mouseLeaveDelay: z,
|
|
3750
|
+
overlayClassName: N,
|
|
3751
|
+
overlayStyle: C,
|
|
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
|
};
|