@gobolt/genesis 0.0.8 → 0.0.9
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/README.md +10 -0
- package/dist/{AntdIcon-c395a1c4.js → AntdIcon-BoLh1dP8.js} +66 -68
- package/dist/CheckOutlined-CeTKr6II.js +13 -0
- package/dist/{CloseCircleFilled-ddc51e7e.js → CloseCircleFilled-DXCxlIQL.js} +8 -11
- package/dist/{CloseOutlined-14b8bba1.js → CloseOutlined-ClXDNn82.js} +9 -12
- package/dist/{Compact-c39ed20d.js → Compact-CGY560JF.js} +63 -65
- package/dist/ContextIsolator-D5x2Ih51.js +20 -0
- package/dist/{ExclamationCircleFilled-23ef9812.js → ExclamationCircleFilled-C0Kj5KQV.js} +16 -22
- package/dist/KeyCode-DM2sFh3-.js +517 -0
- package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
- package/dist/{Overflow-a570fa69.js → Overflow-PBZD-PFm.js} +63 -64
- package/dist/{DownOutlined-64a4732a.js → PurePanel-BqPLRtc2.js} +67 -70
- package/dist/{SearchOutlined-a9014e08.js → SearchOutlined-BP3Z2K6j.js} +8 -11
- package/dist/{TextArea-20825221.js → TextArea-DKwCct3i.js} +583 -588
- package/dist/Typography-aGoDUl4R.js +710 -0
- package/dist/bundle.css +1204 -0
- package/dist/{button-fa1c119c.js → button-CDQgO1OK.js} +274 -278
- package/dist/{collapse-345bc884.js → collapse-Dtpt-6W_.js} +2 -2
- package/dist/compact-item-DH13cl8A.js +61 -0
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Badge/Badge.js +63 -62
- package/dist/components/Badge/__tests__/Badge.test.js +11 -65
- package/dist/components/Badge/index.js +2 -21
- package/dist/components/Badge/styles.js +7 -8
- package/dist/components/Breadcrumb/Breadcrumb.js +8 -24
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +21 -7
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +13 -60
- package/dist/components/Breadcrumb/index.js +2 -25
- package/dist/components/Breadcrumb/styles.d.ts +10 -6
- package/dist/components/Breadcrumb/styles.js +787 -808
- package/dist/components/Button/Button.d.ts +6 -4
- package/dist/components/Button/Button.js +20 -40
- package/dist/components/Button/__tests__/Button.test.js +9 -54
- package/dist/components/Button/index.js +2 -20
- package/dist/components/Button/styles.d.ts +9 -5
- package/dist/components/Button/styles.js +19 -30
- package/dist/components/Checkbox/Checkbox.js +8 -38
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -62
- package/dist/components/Checkbox/index.js +2 -47
- package/dist/components/Checkbox/styles.d.ts +8 -1
- package/dist/components/Checkbox/styles.js +181 -188
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -4
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +19 -51
- package/dist/components/ErrorBoundaryFallback/index.d.ts +1 -0
- package/dist/components/ErrorBoundaryFallback/index.js +2 -49
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -3
- package/dist/components/ErrorBoundaryFallback/styles.js +34 -37
- package/dist/components/Form/Form.d.ts +18 -5
- package/dist/components/Form/Form.js +4 -45
- package/dist/components/Form/__stories__/FormStory.js +44 -81
- package/dist/components/Form/__tests__/form.test.d.ts +1 -0
- package/dist/components/Form/__tests__/form.test.js +18 -0
- package/dist/components/Form/index.js +2 -46
- package/dist/components/Form/styles.d.ts +3 -0
- package/dist/components/Form/styles.js +5 -0
- package/dist/components/Input/Input.js +6 -29
- package/dist/components/Input/__tests__/Input.test.js +21 -66
- package/dist/components/Input/index.js +2 -29
- package/dist/components/Input/styles.d.ts +5 -2
- package/dist/components/Input/styles.js +319 -332
- package/dist/components/Message/Message.d.ts +4 -4
- package/dist/components/Message/Message.js +53 -80
- package/dist/components/Message/__tests__/Message.test.js +24 -70
- package/dist/components/Message/index.js +2 -48
- package/dist/components/Message/styles.d.ts +4 -1
- package/dist/components/Message/styles.js +24 -18
- package/dist/components/Notification/Notification.d.ts +11 -10
- package/dist/components/Notification/Notification.js +306 -372
- package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
- package/dist/components/Notification/NotificationRightChevron.js +23 -0
- package/dist/components/Notification/__tests__/Notification.test.js +8 -69
- package/dist/components/Notification/index.js +2 -59
- package/dist/components/Notification/styles.d.ts +13 -3
- package/dist/components/Notification/styles.js +36 -20
- package/dist/components/Radio/Radio.js +20 -106
- package/dist/components/Radio/RadioGroup.js +18 -71
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +15 -70
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.js +2 -56
- package/dist/components/Select/DropdownChevron.d.ts +2 -0
- package/dist/components/Select/DropdownChevron.js +23 -0
- package/dist/components/Select/Select.d.ts +9 -4
- package/dist/components/Select/Select.js +29 -41
- package/dist/components/Select/__tests__/Select.test.js +10752 -93
- package/dist/components/Select/index.js +2 -28
- package/dist/components/Select/styles.d.ts +20 -6
- package/dist/components/Select/styles.js +1381 -1370
- package/dist/components/Toast/Toast.d.ts +4 -4
- package/dist/components/Toast/Toast.js +8 -37
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +10 -55
- package/dist/components/Toast/index.js +2 -46
- package/dist/components/Toast/styles.d.ts +6 -1
- package/dist/components/Toast/styles.js +36 -21
- package/dist/components/Typography/Typography.d.ts +7 -4
- package/dist/components/Typography/Typography.js +2 -42
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +19 -56
- package/dist/components/Typography/index.js +2 -46
- package/dist/components/Typography/styles.d.ts +18 -4
- package/dist/components/Typography/styles.js +36 -43
- package/dist/components/index.d.ts +13 -5
- package/dist/components/index.js +24 -70
- package/dist/{context-3b8a39af.js → context-BMW3aJEf.js} +538 -548
- package/dist/genesis/GenesisThemeBreakdown.js +38 -55
- package/dist/genesis/GenesisThemeDemo.js +3 -53
- package/dist/genesis/styles.d.ts +6 -2
- package/dist/genesis/styles.js +496 -521
- package/dist/{index-e2b72ca8.js → index-1CBpubM3.js} +97 -102
- package/dist/index-BZAhCB_K.js +97 -0
- package/dist/{index-501fc13d.js → index-C0SmxWLS.js} +367 -392
- package/dist/index-C8haFnXI.js +1112 -0
- package/dist/index-CfDY25LP.js +873 -0
- package/dist/index-DPW8XdWj.js +952 -0
- package/dist/{index-8c8d2d0c.js → index-bKlRxQp4.js} +114 -114
- package/dist/index-oK7z6jnz.js +22795 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +31 -77
- package/dist/{isVisible-729780f5.js → isVisible-A-IfeFoT.js} +67 -94
- package/dist/{magic-string.es-b7491176.js → magic-string.es-D2FWSwU3.js} +56 -103
- package/dist/{pickAttrs-00ba4687.js → pickAttrs-B0YTfcV1.js} +1 -1
- package/dist/providers/GenesisProvider.d.ts +0 -5
- package/dist/providers/GenesisProvider.js +9 -59
- package/dist/providers/ThemeProvider.d.ts +1 -2
- package/dist/providers/ThemeProvider.js +11 -13
- package/dist/providers/ToastProvider.d.ts +11 -4
- package/dist/providers/ToastProvider.js +10 -39
- package/dist/providers/index.d.ts +2 -3
- package/dist/providers/index.js +4 -51
- package/dist/providers/useGenesis.d.ts +7 -0
- package/dist/providers/useGenesis.js +6 -0
- package/dist/setup-BvfREoHl.js +33891 -0
- package/dist/{styled-components.browser.esm-02f500bc.js → styled-components.browser.esm-CZ1XM4o4.js} +72 -134
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +15 -45
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +15 -45
- package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
- package/dist/styles/design-tokens/variables.d.ts +10 -10
- package/dist/styles/design-tokens/variables.js +1 -1
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/global-styles.js +14 -31
- package/dist/styles/theme/genesis-theme.js +257 -212
- package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
- package/dist/styles/theme/index.js +4 -5
- package/dist/styles-CT_fyXBd.js +1808 -0
- package/dist/test/setup.js +3 -46
- package/dist/useLocale-DT-z_vQ6.js +16 -0
- package/dist/useVariants-DvhXfgJY.js +30 -0
- package/dist/utils/isAllEnglishString.js +1 -2
- package/dist/{presets-83ccb923.js → warning-C63HNL9U.js} +358 -356
- package/package.json +35 -35
- package/dist/CheckOutlined-52d9ac25.js +0 -29
- package/dist/ContextIsolator-b09b2c52.js +0 -20
- package/dist/EllipsisOutlined-60122660.js +0 -1115
- package/dist/InfoCircleFilled-c5f90c20.js +0 -16
- package/dist/RightOutlined-83515eb4.js +0 -16
- package/dist/compact-item-b8f85aa6.js +0 -75
- package/dist/index-0a886e53.js +0 -100
- package/dist/index-0b9ee239.js +0 -955
- package/dist/index-1a33c134.js +0 -1389
- package/dist/index-4003d75b.js +0 -3748
- package/dist/index-89035ea5.js +0 -3242
- package/dist/providers/ToastWrapper.d.ts +0 -7
- package/dist/providers/ToastWrapper.js +0 -56
- package/dist/setup-aaca7b6f.js +0 -21158
- package/dist/styles/theme/global-styles.d.ts +0 -1
- package/dist/styles/theme/global-styles.js +0 -36
- package/dist/useVariants-a0d64298.js +0 -30
- /package/dist/{presetColors-ccf8cb4c.js → presetColors-Cl8UP3Nw.js} +0 -0
- /package/dist/{reactNode-f4391605.js → reactNode-sKPeiqPL.js} +0 -0
|
@@ -1,64 +1,60 @@
|
|
|
1
|
-
import { d as
|
|
1
|
+
import { d as Re } from "../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { a as
|
|
5
|
-
import { o as Q, t as
|
|
6
|
-
import { p as
|
|
7
|
-
import { c as ee } from "../../reactNode-
|
|
8
|
-
import { g as te,
|
|
9
|
-
import { i as
|
|
10
|
-
import {
|
|
11
|
-
import { D as
|
|
12
|
-
import { u as
|
|
13
|
-
import { T as
|
|
14
|
-
import { u as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import "../../index-8c8d2d0c.js";
|
|
21
|
-
import "../../presetColors-ccf8cb4c.js";
|
|
22
|
-
import "../../Compact-c39ed20d.js";
|
|
23
|
-
const Rt = (e) => typeof e != "object" && typeof e != "function" || e === null, _t = Rt;
|
|
24
|
-
var At = { 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" };
|
|
25
|
-
const Lt = At;
|
|
26
|
-
var kt = function(o, t) {
|
|
27
|
-
return /* @__PURE__ */ l.createElement(Ve, _e({}, o, {
|
|
3
|
+
import { useContext as we, useState as Oe, useEffect as be, useRef as _e, createContext as tt, forwardRef as Ae, useImperativeHandle as nt, useMemo as ot } from "react";
|
|
4
|
+
import { a as Se, c as P, F as Be } from "../../warning-C63HNL9U.js";
|
|
5
|
+
import { o as Q, t as ne, u as rt } from "../../isVisible-A-IfeFoT.js";
|
|
6
|
+
import { p as Le } from "../../pickAttrs-B0YTfcV1.js";
|
|
7
|
+
import { c as ee } from "../../reactNode-sKPeiqPL.js";
|
|
8
|
+
import { g as te, q as h, C as Z, X as it, j as lt, h as at, p as st, Y as dt, m as oe, F as Ee, o as Ie, H as ct, v as se, b as ke, I as he, E as ut } from "../../index-oK7z6jnz.js";
|
|
9
|
+
import { i as Ne, g as mt, R as pt } from "../../PurePanel-BqPLRtc2.js";
|
|
10
|
+
import { I as ye } from "../../AntdIcon-BoLh1dP8.js";
|
|
11
|
+
import { D as gt, M as ft, u as bt, S as $t, E as ht, R as vt, a as Ct, b as St } from "../../index-C8haFnXI.js";
|
|
12
|
+
import { u as We, a as It, z as yt } from "../../index-CfDY25LP.js";
|
|
13
|
+
import { T as xt, i as Xe, g as wt, a as Ot, b as Bt, c as Et } from "../../index-DPW8XdWj.js";
|
|
14
|
+
import { u as Ve } from "../../context-BMW3aJEf.js";
|
|
15
|
+
import { C as Nt } from "../../ContextIsolator-D5x2Ih51.js";
|
|
16
|
+
import { g as jt } from "../../collapse-Dtpt-6W_.js";
|
|
17
|
+
import { i as re, s as zt, a as Tt, b as Pt, c as Ht } from "../../Overflow-PBZD-PFm.js";
|
|
18
|
+
var Dt = { 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" }, Mt = function(n, t) {
|
|
19
|
+
return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
|
|
28
20
|
ref: t,
|
|
29
|
-
icon:
|
|
21
|
+
icon: Dt
|
|
30
22
|
}));
|
|
31
|
-
}, qe = /* @__PURE__ */ l.forwardRef(
|
|
23
|
+
}, qe = /* @__PURE__ */ l.forwardRef(Mt);
|
|
32
24
|
process.env.NODE_ENV !== "production" && (qe.displayName = "BarsOutlined");
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const Vt = Xt;
|
|
36
|
-
var qt = function(o, t) {
|
|
37
|
-
return /* @__PURE__ */ l.createElement(Ve, _e({}, o, {
|
|
25
|
+
var Rt = { 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" }, _t = function(n, t) {
|
|
26
|
+
return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
|
|
38
27
|
ref: t,
|
|
39
|
-
icon:
|
|
28
|
+
icon: Rt
|
|
40
29
|
}));
|
|
41
|
-
},
|
|
42
|
-
process.env.NODE_ENV !== "production" && (
|
|
43
|
-
|
|
30
|
+
}, ve = /* @__PURE__ */ l.forwardRef(_t);
|
|
31
|
+
process.env.NODE_ENV !== "production" && (ve.displayName = "LeftOutlined");
|
|
32
|
+
var At = { 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" }, Lt = function(n, t) {
|
|
33
|
+
return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
|
|
34
|
+
ref: t,
|
|
35
|
+
icon: At
|
|
36
|
+
}));
|
|
37
|
+
}, ie = /* @__PURE__ */ l.forwardRef(Lt);
|
|
38
|
+
process.env.NODE_ENV !== "production" && (ie.displayName = "RightOutlined");
|
|
39
|
+
const kt = (e) => typeof e != "object" && typeof e != "function" || e === null, Wt = /* @__PURE__ */ l.createContext({
|
|
44
40
|
siderHook: {
|
|
45
41
|
addSider: () => null,
|
|
46
42
|
removeSider: () => null
|
|
47
43
|
}
|
|
48
|
-
}),
|
|
44
|
+
}), Xt = (e) => {
|
|
49
45
|
const {
|
|
50
|
-
antCls:
|
|
46
|
+
antCls: n,
|
|
51
47
|
// .ant
|
|
52
48
|
componentCls: t,
|
|
53
49
|
// .ant-layout
|
|
54
|
-
colorText:
|
|
50
|
+
colorText: o,
|
|
55
51
|
footerBg: r,
|
|
56
52
|
headerHeight: a,
|
|
57
53
|
headerPadding: i,
|
|
58
|
-
headerColor:
|
|
54
|
+
headerColor: d,
|
|
59
55
|
footerPadding: s,
|
|
60
|
-
fontSize:
|
|
61
|
-
bodyBg:
|
|
56
|
+
fontSize: p,
|
|
57
|
+
bodyBg: g,
|
|
62
58
|
headerBg: S
|
|
63
59
|
} = e;
|
|
64
60
|
return {
|
|
@@ -68,7 +64,7 @@ const Be = Fe, Ft = /* @__PURE__ */ l.createContext({
|
|
|
68
64
|
flexDirection: "column",
|
|
69
65
|
/* fix firefox can't set height smaller than content on flex item */
|
|
70
66
|
minHeight: 0,
|
|
71
|
-
background:
|
|
67
|
+
background: g,
|
|
72
68
|
"&, *": {
|
|
73
69
|
boxSizing: "border-box"
|
|
74
70
|
},
|
|
@@ -91,100 +87,100 @@ const Be = Fe, Ft = /* @__PURE__ */ l.createContext({
|
|
|
91
87
|
[`${t}-header`]: {
|
|
92
88
|
height: a,
|
|
93
89
|
padding: i,
|
|
94
|
-
color:
|
|
95
|
-
lineHeight:
|
|
90
|
+
color: d,
|
|
91
|
+
lineHeight: h(a),
|
|
96
92
|
background: S,
|
|
97
93
|
// Other components/menu/style/index.less line:686
|
|
98
94
|
// Integration with header element so menu items have the same height
|
|
99
|
-
[`${
|
|
95
|
+
[`${n}-menu`]: {
|
|
100
96
|
lineHeight: "inherit"
|
|
101
97
|
}
|
|
102
98
|
},
|
|
103
99
|
// ==================== Footer ====================
|
|
104
100
|
[`${t}-footer`]: {
|
|
105
101
|
padding: s,
|
|
106
|
-
color:
|
|
107
|
-
fontSize:
|
|
102
|
+
color: o,
|
|
103
|
+
fontSize: p,
|
|
108
104
|
background: r
|
|
109
105
|
},
|
|
110
106
|
// =================== Content ====================
|
|
111
107
|
[`${t}-content`]: {
|
|
112
108
|
flex: "auto",
|
|
113
|
-
color:
|
|
109
|
+
color: o,
|
|
114
110
|
// fix firefox can't set height smaller than content on flex item
|
|
115
111
|
minHeight: 0
|
|
116
112
|
}
|
|
117
113
|
};
|
|
118
|
-
},
|
|
114
|
+
}, Fe = (e) => {
|
|
119
115
|
const {
|
|
120
|
-
colorBgLayout:
|
|
116
|
+
colorBgLayout: n,
|
|
121
117
|
controlHeight: t,
|
|
122
|
-
controlHeightLG:
|
|
118
|
+
controlHeightLG: o,
|
|
123
119
|
colorText: r,
|
|
124
120
|
controlHeightSM: a,
|
|
125
121
|
marginXXS: i,
|
|
126
|
-
colorTextLightSolid:
|
|
122
|
+
colorTextLightSolid: d,
|
|
127
123
|
colorBgContainer: s
|
|
128
|
-
} = e,
|
|
124
|
+
} = e, p = o * 1.25;
|
|
129
125
|
return {
|
|
130
126
|
// Deprecated
|
|
131
127
|
colorBgHeader: "#001529",
|
|
132
|
-
colorBgBody:
|
|
128
|
+
colorBgBody: n,
|
|
133
129
|
colorBgTrigger: "#002140",
|
|
134
|
-
bodyBg:
|
|
130
|
+
bodyBg: n,
|
|
135
131
|
headerBg: "#001529",
|
|
136
132
|
headerHeight: t * 2,
|
|
137
|
-
headerPadding: `0 ${
|
|
133
|
+
headerPadding: `0 ${p}px`,
|
|
138
134
|
headerColor: r,
|
|
139
|
-
footerPadding: `${a}px ${
|
|
140
|
-
footerBg:
|
|
135
|
+
footerPadding: `${a}px ${p}px`,
|
|
136
|
+
footerBg: n,
|
|
141
137
|
siderBg: "#001529",
|
|
142
|
-
triggerHeight:
|
|
138
|
+
triggerHeight: o + i * 2,
|
|
143
139
|
triggerBg: "#002140",
|
|
144
|
-
triggerColor:
|
|
145
|
-
zeroTriggerWidth:
|
|
146
|
-
zeroTriggerHeight:
|
|
140
|
+
triggerColor: d,
|
|
141
|
+
zeroTriggerWidth: o,
|
|
142
|
+
zeroTriggerHeight: o,
|
|
147
143
|
lightSiderBg: s,
|
|
148
144
|
lightTriggerBg: s,
|
|
149
145
|
lightTriggerColor: r
|
|
150
146
|
};
|
|
151
|
-
},
|
|
152
|
-
te("Layout", (e) => [
|
|
153
|
-
deprecatedTokens:
|
|
147
|
+
}, Ge = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
|
|
148
|
+
te("Layout", (e) => [Xt(e)], Fe, {
|
|
149
|
+
deprecatedTokens: Ge
|
|
154
150
|
});
|
|
155
|
-
const
|
|
151
|
+
const Vt = (e) => {
|
|
156
152
|
const {
|
|
157
|
-
componentCls:
|
|
153
|
+
componentCls: n,
|
|
158
154
|
siderBg: t,
|
|
159
|
-
motionDurationMid:
|
|
155
|
+
motionDurationMid: o,
|
|
160
156
|
motionDurationSlow: r,
|
|
161
157
|
antCls: a,
|
|
162
158
|
triggerHeight: i,
|
|
163
|
-
triggerColor:
|
|
159
|
+
triggerColor: d,
|
|
164
160
|
triggerBg: s,
|
|
165
|
-
headerHeight:
|
|
166
|
-
zeroTriggerWidth:
|
|
161
|
+
headerHeight: p,
|
|
162
|
+
zeroTriggerWidth: g,
|
|
167
163
|
zeroTriggerHeight: S,
|
|
168
164
|
borderRadiusLG: u,
|
|
169
|
-
lightSiderBg:
|
|
170
|
-
lightTriggerColor:
|
|
165
|
+
lightSiderBg: $,
|
|
166
|
+
lightTriggerColor: c,
|
|
171
167
|
lightTriggerBg: m,
|
|
172
|
-
bodyBg:
|
|
168
|
+
bodyBg: v
|
|
173
169
|
} = e;
|
|
174
170
|
return {
|
|
175
|
-
[
|
|
171
|
+
[n]: {
|
|
176
172
|
position: "relative",
|
|
177
173
|
// fix firefox can't set width smaller than content on flex item
|
|
178
174
|
minWidth: 0,
|
|
179
175
|
background: t,
|
|
180
|
-
transition: `all ${
|
|
176
|
+
transition: `all ${o}, background 0s`,
|
|
181
177
|
"&-has-trigger": {
|
|
182
178
|
paddingBottom: i
|
|
183
179
|
},
|
|
184
180
|
"&-right": {
|
|
185
181
|
order: 1
|
|
186
182
|
},
|
|
187
|
-
[`${
|
|
183
|
+
[`${n}-children`]: {
|
|
188
184
|
height: "100%",
|
|
189
185
|
// Hack for fixing margin collapse bug
|
|
190
186
|
// https://github.com/ant-design/ant-design/issues/7967
|
|
@@ -195,36 +191,36 @@ const Yt = (e) => {
|
|
|
195
191
|
width: "auto"
|
|
196
192
|
}
|
|
197
193
|
},
|
|
198
|
-
[`${
|
|
194
|
+
[`${n}-trigger`]: {
|
|
199
195
|
position: "fixed",
|
|
200
196
|
bottom: 0,
|
|
201
197
|
zIndex: 1,
|
|
202
198
|
height: i,
|
|
203
|
-
color:
|
|
204
|
-
lineHeight:
|
|
199
|
+
color: d,
|
|
200
|
+
lineHeight: h(i),
|
|
205
201
|
textAlign: "center",
|
|
206
202
|
background: s,
|
|
207
203
|
cursor: "pointer",
|
|
208
|
-
transition: `all ${
|
|
204
|
+
transition: `all ${o}`
|
|
209
205
|
},
|
|
210
|
-
|
|
206
|
+
[`${n}-zero-width`]: {
|
|
211
207
|
"> *": {
|
|
212
208
|
overflow: "hidden"
|
|
213
209
|
},
|
|
214
210
|
"&-trigger": {
|
|
215
211
|
position: "absolute",
|
|
216
|
-
top:
|
|
217
|
-
insetInlineEnd: e.calc(
|
|
212
|
+
top: p,
|
|
213
|
+
insetInlineEnd: e.calc(g).mul(-1).equal(),
|
|
218
214
|
zIndex: 1,
|
|
219
|
-
width:
|
|
215
|
+
width: g,
|
|
220
216
|
height: S,
|
|
221
|
-
color:
|
|
217
|
+
color: d,
|
|
222
218
|
fontSize: e.fontSizeXL,
|
|
223
219
|
display: "flex",
|
|
224
220
|
alignItems: "center",
|
|
225
221
|
justifyContent: "center",
|
|
226
222
|
background: t,
|
|
227
|
-
borderRadius: `0 ${
|
|
223
|
+
borderRadius: `0 ${h(u)} ${h(u)} 0`,
|
|
228
224
|
cursor: "pointer",
|
|
229
225
|
transition: `background ${r} ease`,
|
|
230
226
|
"&::after": {
|
|
@@ -238,86 +234,84 @@ const Yt = (e) => {
|
|
|
238
234
|
background: "rgba(255, 255, 255, 0.2)"
|
|
239
235
|
},
|
|
240
236
|
"&-right": {
|
|
241
|
-
insetInlineStart: e.calc(
|
|
242
|
-
borderRadius: `${
|
|
237
|
+
insetInlineStart: e.calc(g).mul(-1).equal(),
|
|
238
|
+
borderRadius: `${h(u)} 0 0 ${h(u)}`
|
|
243
239
|
}
|
|
244
240
|
}
|
|
245
241
|
},
|
|
246
242
|
// Light
|
|
247
243
|
"&-light": {
|
|
248
|
-
background:
|
|
249
|
-
[`${
|
|
250
|
-
color:
|
|
244
|
+
background: $,
|
|
245
|
+
[`${n}-trigger`]: {
|
|
246
|
+
color: c,
|
|
251
247
|
background: m
|
|
252
248
|
},
|
|
253
|
-
[`${
|
|
254
|
-
color:
|
|
249
|
+
[`${n}-zero-width-trigger`]: {
|
|
250
|
+
color: c,
|
|
255
251
|
background: m,
|
|
256
|
-
border: `1px solid ${
|
|
252
|
+
border: `1px solid ${v}`,
|
|
257
253
|
// Safe to modify to any other color
|
|
258
254
|
borderInlineStart: 0
|
|
259
255
|
}
|
|
260
256
|
}
|
|
261
257
|
}
|
|
262
258
|
};
|
|
263
|
-
},
|
|
264
|
-
deprecatedTokens:
|
|
259
|
+
}, qt = te(["Layout", "Sider"], (e) => [Vt(e)], Fe, {
|
|
260
|
+
deprecatedTokens: Ge
|
|
265
261
|
});
|
|
266
|
-
var
|
|
262
|
+
var Ft = function(e, n) {
|
|
267
263
|
var t = {};
|
|
268
|
-
for (var
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
272
|
-
o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
|
|
264
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
265
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
266
|
+
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
273
267
|
return t;
|
|
274
268
|
};
|
|
275
|
-
const
|
|
269
|
+
const je = {
|
|
276
270
|
xs: "479.98px",
|
|
277
271
|
sm: "575.98px",
|
|
278
272
|
md: "767.98px",
|
|
279
273
|
lg: "991.98px",
|
|
280
274
|
xl: "1199.98px",
|
|
281
275
|
xxl: "1599.98px"
|
|
282
|
-
},
|
|
276
|
+
}, Gt = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), xe = /* @__PURE__ */ l.createContext({}), Yt = /* @__PURE__ */ (() => {
|
|
283
277
|
let e = 0;
|
|
284
278
|
return function() {
|
|
285
|
-
let
|
|
286
|
-
return e += 1, `${
|
|
279
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
280
|
+
return e += 1, `${n}${e}`;
|
|
287
281
|
};
|
|
288
|
-
})(),
|
|
282
|
+
})(), Ut = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
289
283
|
const {
|
|
290
284
|
prefixCls: t,
|
|
291
|
-
className:
|
|
285
|
+
className: o,
|
|
292
286
|
trigger: r,
|
|
293
287
|
children: a,
|
|
294
288
|
defaultCollapsed: i = !1,
|
|
295
|
-
theme:
|
|
289
|
+
theme: d = "dark",
|
|
296
290
|
style: s = {},
|
|
297
|
-
collapsible:
|
|
298
|
-
reverseArrow:
|
|
291
|
+
collapsible: p = !1,
|
|
292
|
+
reverseArrow: g = !1,
|
|
299
293
|
width: S = 200,
|
|
300
294
|
collapsedWidth: u = 80,
|
|
301
|
-
zeroWidthTriggerStyle:
|
|
302
|
-
breakpoint:
|
|
295
|
+
zeroWidthTriggerStyle: $,
|
|
296
|
+
breakpoint: c,
|
|
303
297
|
onCollapse: m,
|
|
304
|
-
onBreakpoint:
|
|
305
|
-
} = e, I =
|
|
298
|
+
onBreakpoint: v
|
|
299
|
+
} = e, I = Ft(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
|
|
306
300
|
siderHook: B
|
|
307
|
-
} =
|
|
308
|
-
|
|
309
|
-
"collapsed" in e &&
|
|
301
|
+
} = we(Wt), [x, b] = Oe("collapsed" in e ? e.collapsed : i), [E, N] = Oe(!1);
|
|
302
|
+
be(() => {
|
|
303
|
+
"collapsed" in e && b(e.collapsed);
|
|
310
304
|
}, [e.collapsed]);
|
|
311
|
-
const _ = (
|
|
312
|
-
"collapsed" in e ||
|
|
305
|
+
const _ = (T, A) => {
|
|
306
|
+
"collapsed" in e || b(T), m == null || m(T, A);
|
|
313
307
|
}, {
|
|
314
308
|
getPrefixCls: w,
|
|
315
309
|
direction: C
|
|
316
|
-
} =
|
|
317
|
-
y.current = (
|
|
318
|
-
N(
|
|
319
|
-
},
|
|
320
|
-
function
|
|
310
|
+
} = we(Z), f = w("layout-sider", t), [j, D, M] = qt(f), y = _e(null);
|
|
311
|
+
y.current = (T) => {
|
|
312
|
+
N(T.matches), v == null || v(T.matches), x !== T.matches && _(T.matches, "responsive");
|
|
313
|
+
}, be(() => {
|
|
314
|
+
function T(Y) {
|
|
321
315
|
return y.current(Y);
|
|
322
316
|
}
|
|
323
317
|
let A;
|
|
@@ -325,38 +319,38 @@ const Ee = {
|
|
|
325
319
|
const {
|
|
326
320
|
matchMedia: Y
|
|
327
321
|
} = window;
|
|
328
|
-
if (Y &&
|
|
329
|
-
A = Y(`screen and (max-width: ${
|
|
322
|
+
if (Y && c && c in je) {
|
|
323
|
+
A = Y(`screen and (max-width: ${je[c]})`);
|
|
330
324
|
try {
|
|
331
|
-
A.addEventListener("change",
|
|
325
|
+
A.addEventListener("change", T);
|
|
332
326
|
} catch {
|
|
333
|
-
A.addListener(
|
|
327
|
+
A.addListener(T);
|
|
334
328
|
}
|
|
335
|
-
|
|
329
|
+
T(A);
|
|
336
330
|
}
|
|
337
331
|
}
|
|
338
332
|
return () => {
|
|
339
333
|
try {
|
|
340
|
-
A == null || A.removeEventListener("change",
|
|
334
|
+
A == null || A.removeEventListener("change", T);
|
|
341
335
|
} catch {
|
|
342
|
-
A == null || A.removeListener(
|
|
336
|
+
A == null || A.removeListener(T);
|
|
343
337
|
}
|
|
344
338
|
};
|
|
345
|
-
}, [
|
|
346
|
-
const
|
|
347
|
-
return B.addSider(
|
|
339
|
+
}, [c]), be(() => {
|
|
340
|
+
const T = Yt("ant-sider-");
|
|
341
|
+
return B.addSider(T), () => B.removeSider(T);
|
|
348
342
|
}, []);
|
|
349
343
|
const H = () => {
|
|
350
344
|
_(!x, "clickTrigger");
|
|
351
|
-
}, L = Q(I, ["collapsed"]), k = x ? u : S, R =
|
|
345
|
+
}, L = Q(I, ["collapsed"]), k = x ? u : S, R = Gt(k) ? `${k}px` : String(k), W = parseFloat(String(u || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
|
|
352
346
|
onClick: H,
|
|
353
|
-
className: P(`${
|
|
354
|
-
style:
|
|
355
|
-
}, r || /* @__PURE__ */ l.createElement(
|
|
356
|
-
expanded: V ? /* @__PURE__ */ l.createElement(
|
|
357
|
-
collapsed: V ? /* @__PURE__ */ l.createElement(
|
|
347
|
+
className: P(`${f}-zero-width-trigger`, `${f}-zero-width-trigger-${g ? "right" : "left"}`),
|
|
348
|
+
style: $
|
|
349
|
+
}, r || /* @__PURE__ */ l.createElement(qe, null)) : null, V = C === "rtl" == !g, X = {
|
|
350
|
+
expanded: V ? /* @__PURE__ */ l.createElement(ie, null) : /* @__PURE__ */ l.createElement(ve, null),
|
|
351
|
+
collapsed: V ? /* @__PURE__ */ l.createElement(ve, null) : /* @__PURE__ */ l.createElement(ie, null)
|
|
358
352
|
}[x ? "collapsed" : "expanded"], q = r !== null ? W || /* @__PURE__ */ l.createElement("div", {
|
|
359
|
-
className: `${
|
|
353
|
+
className: `${f}-trigger`,
|
|
360
354
|
onClick: H,
|
|
361
355
|
style: {
|
|
362
356
|
width: R
|
|
@@ -366,87 +360,85 @@ const Ee = {
|
|
|
366
360
|
maxWidth: R,
|
|
367
361
|
minWidth: R,
|
|
368
362
|
width: R
|
|
369
|
-
}),
|
|
370
|
-
[`${
|
|
371
|
-
[`${
|
|
372
|
-
[`${
|
|
373
|
-
[`${
|
|
374
|
-
},
|
|
363
|
+
}), me = P(f, `${f}-${d}`, {
|
|
364
|
+
[`${f}-collapsed`]: !!x,
|
|
365
|
+
[`${f}-has-trigger`]: p && r !== null && !W,
|
|
366
|
+
[`${f}-below`]: !!E,
|
|
367
|
+
[`${f}-zero-width`]: parseFloat(R) === 0
|
|
368
|
+
}, o, D, M), pe = l.useMemo(() => ({
|
|
375
369
|
siderCollapsed: x
|
|
376
370
|
}), [x]);
|
|
377
|
-
return
|
|
378
|
-
value:
|
|
371
|
+
return j(/* @__PURE__ */ l.createElement(xe.Provider, {
|
|
372
|
+
value: pe
|
|
379
373
|
}, /* @__PURE__ */ l.createElement("aside", Object.assign({
|
|
380
|
-
className:
|
|
374
|
+
className: me
|
|
381
375
|
}, L, {
|
|
382
376
|
style: G,
|
|
383
|
-
ref:
|
|
377
|
+
ref: n
|
|
384
378
|
}), /* @__PURE__ */ l.createElement("div", {
|
|
385
|
-
className: `${
|
|
386
|
-
}, a),
|
|
379
|
+
className: `${f}-children`
|
|
380
|
+
}, a), p || E && W ? q : null)));
|
|
387
381
|
});
|
|
388
|
-
process.env.NODE_ENV !== "production" && (
|
|
389
|
-
const
|
|
382
|
+
process.env.NODE_ENV !== "production" && (Ut.displayName = "Sider");
|
|
383
|
+
const le = /* @__PURE__ */ tt({
|
|
390
384
|
prefixCls: "",
|
|
391
385
|
firstLevel: !0,
|
|
392
386
|
inlineCollapsed: !1
|
|
393
|
-
})
|
|
394
|
-
var
|
|
387
|
+
});
|
|
388
|
+
var Kt = function(e, n) {
|
|
395
389
|
var t = {};
|
|
396
|
-
for (var
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
400
|
-
o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
|
|
390
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
391
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
392
|
+
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
401
393
|
return t;
|
|
402
394
|
};
|
|
403
|
-
const
|
|
395
|
+
const Ye = (e) => {
|
|
404
396
|
const {
|
|
405
|
-
prefixCls:
|
|
397
|
+
prefixCls: n,
|
|
406
398
|
className: t,
|
|
407
|
-
dashed:
|
|
408
|
-
} = e, r =
|
|
399
|
+
dashed: o
|
|
400
|
+
} = e, r = Kt(e, ["prefixCls", "className", "dashed"]), {
|
|
409
401
|
getPrefixCls: a
|
|
410
|
-
} = l.useContext(Z), i = a("menu",
|
|
411
|
-
[`${i}-item-divider-dashed`]: !!
|
|
402
|
+
} = l.useContext(Z), i = a("menu", n), d = P({
|
|
403
|
+
[`${i}-item-divider-dashed`]: !!o
|
|
412
404
|
}, t);
|
|
413
|
-
return /* @__PURE__ */ l.createElement(
|
|
414
|
-
className:
|
|
405
|
+
return /* @__PURE__ */ l.createElement(gt, Object.assign({
|
|
406
|
+
className: d
|
|
415
407
|
}, r));
|
|
416
|
-
}, Ue =
|
|
417
|
-
var
|
|
408
|
+
}, Ue = (e) => {
|
|
409
|
+
var n;
|
|
418
410
|
const {
|
|
419
411
|
className: t,
|
|
420
|
-
children:
|
|
412
|
+
children: o,
|
|
421
413
|
icon: r,
|
|
422
414
|
title: a,
|
|
423
415
|
danger: i,
|
|
424
|
-
extra:
|
|
416
|
+
extra: d
|
|
425
417
|
} = e, {
|
|
426
418
|
prefixCls: s,
|
|
427
|
-
firstLevel:
|
|
428
|
-
direction:
|
|
419
|
+
firstLevel: p,
|
|
420
|
+
direction: g,
|
|
429
421
|
disableMenuItemTitleTooltip: S,
|
|
430
422
|
inlineCollapsed: u
|
|
431
|
-
} = l.useContext(
|
|
432
|
-
const
|
|
423
|
+
} = l.useContext(le), $ = (x) => {
|
|
424
|
+
const b = o == null ? void 0 : o[0], E = /* @__PURE__ */ l.createElement("span", {
|
|
433
425
|
className: P(`${s}-title-content`, {
|
|
434
|
-
[`${s}-title-content-with-extra`]: !!
|
|
426
|
+
[`${s}-title-content-with-extra`]: !!d || d === 0
|
|
435
427
|
})
|
|
436
|
-
},
|
|
437
|
-
return (!r || /* @__PURE__ */ l.isValidElement(
|
|
428
|
+
}, o);
|
|
429
|
+
return (!r || /* @__PURE__ */ l.isValidElement(o) && o.type === "span") && o && x && p && typeof b == "string" ? /* @__PURE__ */ l.createElement("div", {
|
|
438
430
|
className: `${s}-inline-collapsed-noicon`
|
|
439
|
-
},
|
|
431
|
+
}, b.charAt(0)) : E;
|
|
440
432
|
}, {
|
|
441
|
-
siderCollapsed:
|
|
442
|
-
} = l.useContext(
|
|
433
|
+
siderCollapsed: c
|
|
434
|
+
} = l.useContext(xe);
|
|
443
435
|
let m = a;
|
|
444
|
-
typeof a > "u" ? m =
|
|
445
|
-
const
|
|
436
|
+
typeof a > "u" ? m = p ? o : "" : a === !1 && (m = "");
|
|
437
|
+
const v = {
|
|
446
438
|
title: m
|
|
447
439
|
};
|
|
448
|
-
!
|
|
449
|
-
const I =
|
|
440
|
+
!c && !u && (v.title = null, v.open = !1);
|
|
441
|
+
const I = ne(o).length;
|
|
450
442
|
let B = /* @__PURE__ */ l.createElement(ft, Object.assign({}, Q(e, ["title", "icon", "danger"]), {
|
|
451
443
|
className: P({
|
|
452
444
|
[`${s}-item-danger`]: i,
|
|
@@ -454,58 +446,56 @@ const oo = (e) => {
|
|
|
454
446
|
}, t),
|
|
455
447
|
title: typeof a == "string" ? a : void 0
|
|
456
448
|
}), ee(r, {
|
|
457
|
-
className: P(/* @__PURE__ */ l.isValidElement(r) ? (
|
|
458
|
-
}),
|
|
459
|
-
return S || (B = /* @__PURE__ */ l.createElement(
|
|
460
|
-
placement:
|
|
449
|
+
className: P(/* @__PURE__ */ l.isValidElement(r) ? (n = r.props) === null || n === void 0 ? void 0 : n.className : "", `${s}-item-icon`)
|
|
450
|
+
}), $(u));
|
|
451
|
+
return S || (B = /* @__PURE__ */ l.createElement(xt, Object.assign({}, v, {
|
|
452
|
+
placement: g === "rtl" ? "left" : "right",
|
|
461
453
|
classNames: {
|
|
462
454
|
root: `${s}-inline-collapsed-tooltip`
|
|
463
455
|
}
|
|
464
456
|
}), B)), B;
|
|
465
|
-
}
|
|
466
|
-
var
|
|
457
|
+
};
|
|
458
|
+
var Zt = function(e, n) {
|
|
467
459
|
var t = {};
|
|
468
|
-
for (var
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
472
|
-
o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
|
|
460
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
461
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
462
|
+
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
473
463
|
return t;
|
|
474
464
|
};
|
|
475
|
-
const
|
|
465
|
+
const ae = /* @__PURE__ */ l.createContext(null), Jt = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
476
466
|
const {
|
|
477
467
|
children: t
|
|
478
|
-
} = e,
|
|
468
|
+
} = e, o = Zt(e, ["children"]), r = l.useContext(ae), a = l.useMemo(() => Object.assign(Object.assign({}, r), o), [
|
|
479
469
|
r,
|
|
480
|
-
|
|
470
|
+
o.prefixCls,
|
|
481
471
|
// restProps.expandIcon, Not mark as deps since this is a ReactNode
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
472
|
+
o.mode,
|
|
473
|
+
o.selectable,
|
|
474
|
+
o.rootClassName
|
|
485
475
|
// restProps.validator, Not mark as deps since this is a function
|
|
486
|
-
]), i =
|
|
487
|
-
return /* @__PURE__ */ l.createElement(
|
|
476
|
+
]), i = it(t), d = lt(n, i ? at(t) : null);
|
|
477
|
+
return /* @__PURE__ */ l.createElement(ae.Provider, {
|
|
488
478
|
value: a
|
|
489
|
-
}, /* @__PURE__ */ l.createElement(
|
|
479
|
+
}, /* @__PURE__ */ l.createElement(Nt, {
|
|
490
480
|
space: !0
|
|
491
481
|
}, i ? /* @__PURE__ */ l.cloneElement(t, {
|
|
492
|
-
ref:
|
|
482
|
+
ref: d
|
|
493
483
|
}) : t));
|
|
494
|
-
}),
|
|
484
|
+
}), Qt = (e) => {
|
|
495
485
|
const {
|
|
496
|
-
componentCls:
|
|
486
|
+
componentCls: n,
|
|
497
487
|
motionDurationSlow: t,
|
|
498
|
-
horizontalLineHeight:
|
|
488
|
+
horizontalLineHeight: o,
|
|
499
489
|
colorSplit: r,
|
|
500
490
|
lineWidth: a,
|
|
501
491
|
lineType: i,
|
|
502
|
-
itemPaddingInline:
|
|
492
|
+
itemPaddingInline: d
|
|
503
493
|
} = e;
|
|
504
494
|
return {
|
|
505
|
-
[`${
|
|
506
|
-
lineHeight:
|
|
495
|
+
[`${n}-horizontal`]: {
|
|
496
|
+
lineHeight: o,
|
|
507
497
|
border: 0,
|
|
508
|
-
borderBottom: `${
|
|
498
|
+
borderBottom: `${h(a)} ${i} ${r}`,
|
|
509
499
|
boxShadow: "none",
|
|
510
500
|
"&::after": {
|
|
511
501
|
display: "block",
|
|
@@ -514,73 +504,73 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
514
504
|
content: '"\\20"'
|
|
515
505
|
},
|
|
516
506
|
// ======================= Item =======================
|
|
517
|
-
[`${
|
|
507
|
+
[`${n}-item, ${n}-submenu`]: {
|
|
518
508
|
position: "relative",
|
|
519
509
|
display: "inline-block",
|
|
520
510
|
verticalAlign: "bottom",
|
|
521
|
-
paddingInline:
|
|
511
|
+
paddingInline: d
|
|
522
512
|
},
|
|
523
|
-
[`> ${
|
|
524
|
-
> ${
|
|
525
|
-
> ${
|
|
513
|
+
[`> ${n}-item:hover,
|
|
514
|
+
> ${n}-item-active,
|
|
515
|
+
> ${n}-submenu ${n}-submenu-title:hover`]: {
|
|
526
516
|
backgroundColor: "transparent"
|
|
527
517
|
},
|
|
528
|
-
[`${
|
|
518
|
+
[`${n}-item, ${n}-submenu-title`]: {
|
|
529
519
|
transition: [`border-color ${t}`, `background ${t}`].join(",")
|
|
530
520
|
},
|
|
531
521
|
// ===================== Sub Menu =====================
|
|
532
|
-
[`${
|
|
522
|
+
[`${n}-submenu-arrow`]: {
|
|
533
523
|
display: "none"
|
|
534
524
|
}
|
|
535
525
|
}
|
|
536
526
|
};
|
|
537
|
-
},
|
|
527
|
+
}, en = (e) => {
|
|
538
528
|
let {
|
|
539
|
-
componentCls:
|
|
529
|
+
componentCls: n,
|
|
540
530
|
menuArrowOffset: t,
|
|
541
|
-
calc:
|
|
531
|
+
calc: o
|
|
542
532
|
} = e;
|
|
543
533
|
return {
|
|
544
|
-
[`${
|
|
534
|
+
[`${n}-rtl`]: {
|
|
545
535
|
direction: "rtl"
|
|
546
536
|
},
|
|
547
|
-
[`${
|
|
537
|
+
[`${n}-submenu-rtl`]: {
|
|
548
538
|
transformOrigin: "100% 0"
|
|
549
539
|
},
|
|
550
540
|
// Vertical Arrow
|
|
551
|
-
[`${
|
|
552
|
-
${
|
|
553
|
-
[`${
|
|
541
|
+
[`${n}-rtl${n}-vertical,
|
|
542
|
+
${n}-submenu-rtl ${n}-vertical`]: {
|
|
543
|
+
[`${n}-submenu-arrow`]: {
|
|
554
544
|
"&::before": {
|
|
555
|
-
transform: `rotate(-45deg) translateY(${
|
|
545
|
+
transform: `rotate(-45deg) translateY(${h(o(t).mul(-1).equal())})`
|
|
556
546
|
},
|
|
557
547
|
"&::after": {
|
|
558
|
-
transform: `rotate(45deg) translateY(${
|
|
548
|
+
transform: `rotate(45deg) translateY(${h(t)})`
|
|
559
549
|
}
|
|
560
550
|
}
|
|
561
551
|
}
|
|
562
552
|
};
|
|
563
|
-
},
|
|
553
|
+
}, ze = (e) => Object.assign({}, st(e)), Te = (e, n) => {
|
|
564
554
|
const {
|
|
565
555
|
componentCls: t,
|
|
566
|
-
itemColor:
|
|
556
|
+
itemColor: o,
|
|
567
557
|
itemSelectedColor: r,
|
|
568
558
|
subMenuItemSelectedColor: a,
|
|
569
559
|
groupTitleColor: i,
|
|
570
|
-
itemBg:
|
|
560
|
+
itemBg: d,
|
|
571
561
|
subMenuItemBg: s,
|
|
572
|
-
itemSelectedBg:
|
|
573
|
-
activeBarHeight:
|
|
562
|
+
itemSelectedBg: p,
|
|
563
|
+
activeBarHeight: g,
|
|
574
564
|
activeBarWidth: S,
|
|
575
565
|
activeBarBorderWidth: u,
|
|
576
|
-
motionDurationSlow:
|
|
577
|
-
motionEaseInOut:
|
|
566
|
+
motionDurationSlow: $,
|
|
567
|
+
motionEaseInOut: c,
|
|
578
568
|
motionEaseOut: m,
|
|
579
|
-
itemPaddingInline:
|
|
569
|
+
itemPaddingInline: v,
|
|
580
570
|
motionDurationMid: I,
|
|
581
571
|
itemHoverColor: B,
|
|
582
572
|
lineType: x,
|
|
583
|
-
colorSplit:
|
|
573
|
+
colorSplit: b,
|
|
584
574
|
// Disabled
|
|
585
575
|
itemDisabledColor: E,
|
|
586
576
|
// Danger
|
|
@@ -588,9 +578,9 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
588
578
|
dangerItemHoverColor: _,
|
|
589
579
|
dangerItemSelectedColor: w,
|
|
590
580
|
dangerItemActiveBg: C,
|
|
591
|
-
dangerItemSelectedBg:
|
|
581
|
+
dangerItemSelectedBg: f,
|
|
592
582
|
// Bg
|
|
593
|
-
popupBg:
|
|
583
|
+
popupBg: j,
|
|
594
584
|
itemHoverBg: D,
|
|
595
585
|
itemActiveBg: M,
|
|
596
586
|
menuSubMenuBg: y,
|
|
@@ -601,10 +591,10 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
601
591
|
horizontalItemHoverBg: R
|
|
602
592
|
} = e;
|
|
603
593
|
return {
|
|
604
|
-
[`${t}-${
|
|
605
|
-
color:
|
|
606
|
-
background:
|
|
607
|
-
[`&${t}-root:focus-visible`]: Object.assign({},
|
|
594
|
+
[`${t}-${n}, ${t}-${n} > ${t}`]: {
|
|
595
|
+
color: o,
|
|
596
|
+
background: d,
|
|
597
|
+
[`&${t}-root:focus-visible`]: Object.assign({}, ze(e)),
|
|
608
598
|
// ======================== Item ========================
|
|
609
599
|
[`${t}-item`]: {
|
|
610
600
|
"&-group-title, &-extra": {
|
|
@@ -615,8 +605,8 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
615
605
|
color: a
|
|
616
606
|
},
|
|
617
607
|
[`${t}-item, ${t}-submenu-title`]: {
|
|
618
|
-
color:
|
|
619
|
-
[`&:not(${t}-item-disabled):focus-visible`]: Object.assign({},
|
|
608
|
+
color: o,
|
|
609
|
+
[`&:not(${t}-item-disabled):focus-visible`]: Object.assign({}, ze(e))
|
|
620
610
|
},
|
|
621
611
|
// Disabled
|
|
622
612
|
[`${t}-item-disabled, ${t}-submenu-disabled`]: {
|
|
@@ -674,10 +664,10 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
674
664
|
}
|
|
675
665
|
},
|
|
676
666
|
[`& ${t}-item-selected`]: {
|
|
677
|
-
backgroundColor:
|
|
667
|
+
backgroundColor: p,
|
|
678
668
|
// Danger
|
|
679
669
|
[`&${t}-item-danger`]: {
|
|
680
|
-
backgroundColor:
|
|
670
|
+
backgroundColor: f
|
|
681
671
|
}
|
|
682
672
|
},
|
|
683
673
|
[`&${t}-submenu > ${t}`]: {
|
|
@@ -686,14 +676,14 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
686
676
|
// ===== 设置浮层的颜色 =======
|
|
687
677
|
// !dark 模式会被popupBg 会被rest 为 darkPopupBg
|
|
688
678
|
[`&${t}-popup > ${t}`]: {
|
|
689
|
-
backgroundColor:
|
|
679
|
+
backgroundColor: j
|
|
690
680
|
},
|
|
691
681
|
[`&${t}-submenu-popup > ${t}`]: {
|
|
692
|
-
backgroundColor:
|
|
682
|
+
backgroundColor: j
|
|
693
683
|
},
|
|
694
684
|
// ===== 设置浮层的颜色 end =======
|
|
695
685
|
// ====================== Horizontal ======================
|
|
696
|
-
[`&${t}-horizontal`]: Object.assign(Object.assign({},
|
|
686
|
+
[`&${t}-horizontal`]: Object.assign(Object.assign({}, n === "dark" ? {
|
|
697
687
|
borderBottom: 0
|
|
698
688
|
} : {}), {
|
|
699
689
|
[`> ${t}-item, > ${t}-submenu`]: {
|
|
@@ -703,16 +693,16 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
703
693
|
borderRadius: k,
|
|
704
694
|
"&::after": {
|
|
705
695
|
position: "absolute",
|
|
706
|
-
insetInline:
|
|
696
|
+
insetInline: v,
|
|
707
697
|
bottom: 0,
|
|
708
|
-
borderBottom: `${
|
|
709
|
-
transition: `border-color ${
|
|
698
|
+
borderBottom: `${h(g)} solid transparent`,
|
|
699
|
+
transition: `border-color ${$} ${c}`,
|
|
710
700
|
content: '""'
|
|
711
701
|
},
|
|
712
702
|
"&:hover, &-active, &-open": {
|
|
713
703
|
background: R,
|
|
714
704
|
"&::after": {
|
|
715
|
-
borderBottomWidth:
|
|
705
|
+
borderBottomWidth: g,
|
|
716
706
|
borderBottomColor: H
|
|
717
707
|
}
|
|
718
708
|
},
|
|
@@ -723,7 +713,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
723
713
|
backgroundColor: L
|
|
724
714
|
},
|
|
725
715
|
"&::after": {
|
|
726
|
-
borderBottomWidth:
|
|
716
|
+
borderBottomWidth: g,
|
|
727
717
|
borderBottomColor: H
|
|
728
718
|
}
|
|
729
719
|
}
|
|
@@ -733,7 +723,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
733
723
|
//
|
|
734
724
|
[`&${t}-root`]: {
|
|
735
725
|
[`&${t}-inline, &${t}-vertical`]: {
|
|
736
|
-
borderInlineEnd: `${
|
|
726
|
+
borderInlineEnd: `${h(u)} ${x} ${b}`
|
|
737
727
|
}
|
|
738
728
|
},
|
|
739
729
|
// ======================== Inline ========================
|
|
@@ -748,7 +738,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
748
738
|
position: "absolute",
|
|
749
739
|
insetBlock: 0,
|
|
750
740
|
insetInlineEnd: 0,
|
|
751
|
-
borderInlineEnd: `${
|
|
741
|
+
borderInlineEnd: `${h(S)} solid ${r}`,
|
|
752
742
|
transform: "scaleY(0.0001)",
|
|
753
743
|
opacity: 0,
|
|
754
744
|
transition: [`transform ${I} ${m}`, `opacity ${I} ${m}`].join(","),
|
|
@@ -765,93 +755,93 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
765
755
|
"&::after": {
|
|
766
756
|
transform: "scaleY(1)",
|
|
767
757
|
opacity: 1,
|
|
768
|
-
transition: [`transform ${I} ${
|
|
758
|
+
transition: [`transform ${I} ${c}`, `opacity ${I} ${c}`].join(",")
|
|
769
759
|
}
|
|
770
760
|
}
|
|
771
761
|
}
|
|
772
762
|
}
|
|
773
763
|
};
|
|
774
|
-
},
|
|
764
|
+
}, Pe = (e) => {
|
|
775
765
|
const {
|
|
776
|
-
componentCls:
|
|
766
|
+
componentCls: n,
|
|
777
767
|
itemHeight: t,
|
|
778
|
-
itemMarginInline:
|
|
768
|
+
itemMarginInline: o,
|
|
779
769
|
padding: r,
|
|
780
770
|
menuArrowSize: a,
|
|
781
771
|
marginXS: i,
|
|
782
|
-
itemMarginBlock:
|
|
772
|
+
itemMarginBlock: d,
|
|
783
773
|
itemWidth: s,
|
|
784
|
-
itemPaddingInline:
|
|
785
|
-
} = e,
|
|
774
|
+
itemPaddingInline: p
|
|
775
|
+
} = e, g = e.calc(a).add(r).add(i).equal();
|
|
786
776
|
return {
|
|
787
|
-
[`${
|
|
777
|
+
[`${n}-item`]: {
|
|
788
778
|
position: "relative",
|
|
789
779
|
overflow: "hidden"
|
|
790
780
|
},
|
|
791
|
-
[`${
|
|
781
|
+
[`${n}-item, ${n}-submenu-title`]: {
|
|
792
782
|
height: t,
|
|
793
|
-
lineHeight:
|
|
794
|
-
paddingInline:
|
|
783
|
+
lineHeight: h(t),
|
|
784
|
+
paddingInline: p,
|
|
795
785
|
overflow: "hidden",
|
|
796
786
|
textOverflow: "ellipsis",
|
|
797
|
-
marginInline:
|
|
798
|
-
marginBlock:
|
|
787
|
+
marginInline: o,
|
|
788
|
+
marginBlock: d,
|
|
799
789
|
width: s
|
|
800
790
|
},
|
|
801
|
-
[`> ${
|
|
802
|
-
> ${
|
|
791
|
+
[`> ${n}-item,
|
|
792
|
+
> ${n}-submenu > ${n}-submenu-title`]: {
|
|
803
793
|
height: t,
|
|
804
|
-
lineHeight:
|
|
794
|
+
lineHeight: h(t)
|
|
805
795
|
},
|
|
806
|
-
[`${
|
|
807
|
-
${
|
|
808
|
-
paddingInlineEnd:
|
|
796
|
+
[`${n}-item-group-list ${n}-submenu-title,
|
|
797
|
+
${n}-submenu-title`]: {
|
|
798
|
+
paddingInlineEnd: g
|
|
809
799
|
}
|
|
810
800
|
};
|
|
811
|
-
},
|
|
801
|
+
}, tn = (e) => {
|
|
812
802
|
const {
|
|
813
|
-
componentCls:
|
|
803
|
+
componentCls: n,
|
|
814
804
|
iconCls: t,
|
|
815
|
-
itemHeight:
|
|
805
|
+
itemHeight: o,
|
|
816
806
|
colorTextLightSolid: r,
|
|
817
807
|
dropdownWidth: a,
|
|
818
808
|
controlHeightLG: i,
|
|
819
|
-
motionEaseOut:
|
|
809
|
+
motionEaseOut: d,
|
|
820
810
|
paddingXL: s,
|
|
821
|
-
itemMarginInline:
|
|
822
|
-
fontSizeLG:
|
|
811
|
+
itemMarginInline: p,
|
|
812
|
+
fontSizeLG: g,
|
|
823
813
|
motionDurationFast: S,
|
|
824
814
|
motionDurationSlow: u,
|
|
825
|
-
paddingXS:
|
|
826
|
-
boxShadowSecondary:
|
|
815
|
+
paddingXS: $,
|
|
816
|
+
boxShadowSecondary: c,
|
|
827
817
|
collapsedWidth: m,
|
|
828
|
-
collapsedIconSize:
|
|
818
|
+
collapsedIconSize: v
|
|
829
819
|
} = e, I = {
|
|
830
|
-
height:
|
|
831
|
-
lineHeight:
|
|
820
|
+
height: o,
|
|
821
|
+
lineHeight: h(o),
|
|
832
822
|
listStylePosition: "inside",
|
|
833
823
|
listStyleType: "disc"
|
|
834
824
|
};
|
|
835
825
|
return [
|
|
836
826
|
{
|
|
837
|
-
[
|
|
827
|
+
[n]: {
|
|
838
828
|
"&-inline, &-vertical": Object.assign({
|
|
839
|
-
[`&${
|
|
829
|
+
[`&${n}-root`]: {
|
|
840
830
|
boxShadow: "none"
|
|
841
831
|
}
|
|
842
|
-
},
|
|
832
|
+
}, Pe(e))
|
|
843
833
|
},
|
|
844
|
-
[`${
|
|
845
|
-
[`${
|
|
846
|
-
boxShadow:
|
|
834
|
+
[`${n}-submenu-popup`]: {
|
|
835
|
+
[`${n}-vertical`]: Object.assign(Object.assign({}, Pe(e)), {
|
|
836
|
+
boxShadow: c
|
|
847
837
|
})
|
|
848
838
|
}
|
|
849
839
|
},
|
|
850
840
|
// Vertical only
|
|
851
841
|
{
|
|
852
|
-
[`${
|
|
842
|
+
[`${n}-submenu-popup ${n}-vertical${n}-sub`]: {
|
|
853
843
|
minWidth: a,
|
|
854
|
-
maxHeight: `calc(100vh - ${
|
|
844
|
+
maxHeight: `calc(100vh - ${h(e.calc(i).mul(2.5).equal())})`,
|
|
855
845
|
padding: "0",
|
|
856
846
|
overflow: "hidden",
|
|
857
847
|
borderInlineEnd: 0,
|
|
@@ -865,15 +855,15 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
865
855
|
},
|
|
866
856
|
// Inline Only
|
|
867
857
|
{
|
|
868
|
-
[`${
|
|
858
|
+
[`${n}-inline`]: {
|
|
869
859
|
width: "100%",
|
|
870
860
|
// Motion enhance for first level
|
|
871
|
-
[`&${
|
|
872
|
-
[`${
|
|
861
|
+
[`&${n}-root`]: {
|
|
862
|
+
[`${n}-item, ${n}-submenu-title`]: {
|
|
873
863
|
display: "flex",
|
|
874
864
|
alignItems: "center",
|
|
875
|
-
transition: [`border-color ${u}`, `background ${u}`, `padding ${S} ${
|
|
876
|
-
[`> ${
|
|
865
|
+
transition: [`border-color ${u}`, `background ${u}`, `padding ${S} ${d}`].join(","),
|
|
866
|
+
[`> ${n}-title-content`]: {
|
|
877
867
|
flex: "auto",
|
|
878
868
|
minWidth: 0,
|
|
879
869
|
overflow: "hidden",
|
|
@@ -885,112 +875,112 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
885
875
|
}
|
|
886
876
|
},
|
|
887
877
|
// >>>>> Sub
|
|
888
|
-
[`${
|
|
878
|
+
[`${n}-sub${n}-inline`]: {
|
|
889
879
|
padding: 0,
|
|
890
880
|
border: 0,
|
|
891
881
|
borderRadius: 0,
|
|
892
882
|
boxShadow: "none",
|
|
893
|
-
[`& > ${
|
|
894
|
-
[`& ${
|
|
883
|
+
[`& > ${n}-submenu > ${n}-submenu-title`]: I,
|
|
884
|
+
[`& ${n}-item-group-title`]: {
|
|
895
885
|
paddingInlineStart: s
|
|
896
886
|
}
|
|
897
887
|
},
|
|
898
888
|
// >>>>> Item
|
|
899
|
-
[`${
|
|
889
|
+
[`${n}-item`]: I
|
|
900
890
|
}
|
|
901
891
|
},
|
|
902
892
|
// Inline Collapse Only
|
|
903
893
|
{
|
|
904
|
-
[`${
|
|
894
|
+
[`${n}-inline-collapsed`]: {
|
|
905
895
|
width: m,
|
|
906
|
-
[`&${
|
|
907
|
-
[`${
|
|
908
|
-
[`> ${
|
|
909
|
-
fontSize:
|
|
896
|
+
[`&${n}-root`]: {
|
|
897
|
+
[`${n}-item, ${n}-submenu ${n}-submenu-title`]: {
|
|
898
|
+
[`> ${n}-inline-collapsed-noicon`]: {
|
|
899
|
+
fontSize: g,
|
|
910
900
|
textAlign: "center"
|
|
911
901
|
}
|
|
912
902
|
}
|
|
913
903
|
},
|
|
914
|
-
[`> ${
|
|
915
|
-
> ${
|
|
916
|
-
> ${
|
|
917
|
-
> ${
|
|
904
|
+
[`> ${n}-item,
|
|
905
|
+
> ${n}-item-group > ${n}-item-group-list > ${n}-item,
|
|
906
|
+
> ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
|
|
907
|
+
> ${n}-submenu > ${n}-submenu-title`]: {
|
|
918
908
|
insetInlineStart: 0,
|
|
919
|
-
paddingInline: `calc(50% - ${
|
|
909
|
+
paddingInline: `calc(50% - ${h(e.calc(v).div(2).equal())} - ${h(p)})`,
|
|
920
910
|
textOverflow: "clip",
|
|
921
911
|
[`
|
|
922
|
-
${
|
|
923
|
-
${
|
|
912
|
+
${n}-submenu-arrow,
|
|
913
|
+
${n}-submenu-expand-icon
|
|
924
914
|
`]: {
|
|
925
915
|
opacity: 0
|
|
926
916
|
},
|
|
927
|
-
[`${
|
|
917
|
+
[`${n}-item-icon, ${t}`]: {
|
|
928
918
|
margin: 0,
|
|
929
|
-
fontSize:
|
|
930
|
-
lineHeight:
|
|
919
|
+
fontSize: v,
|
|
920
|
+
lineHeight: h(o),
|
|
931
921
|
"+ span": {
|
|
932
922
|
display: "inline-block",
|
|
933
923
|
opacity: 0
|
|
934
924
|
}
|
|
935
925
|
}
|
|
936
926
|
},
|
|
937
|
-
[`${
|
|
927
|
+
[`${n}-item-icon, ${t}`]: {
|
|
938
928
|
display: "inline-block"
|
|
939
929
|
},
|
|
940
930
|
"&-tooltip": {
|
|
941
931
|
pointerEvents: "none",
|
|
942
|
-
[`${
|
|
932
|
+
[`${n}-item-icon, ${t}`]: {
|
|
943
933
|
display: "none"
|
|
944
934
|
},
|
|
945
935
|
"a, a:hover": {
|
|
946
936
|
color: r
|
|
947
937
|
}
|
|
948
938
|
},
|
|
949
|
-
[`${
|
|
950
|
-
paddingInline:
|
|
939
|
+
[`${n}-item-group-title`]: Object.assign(Object.assign({}, dt), {
|
|
940
|
+
paddingInline: $
|
|
951
941
|
})
|
|
952
942
|
}
|
|
953
943
|
}
|
|
954
944
|
];
|
|
955
|
-
},
|
|
945
|
+
}, He = (e) => {
|
|
956
946
|
const {
|
|
957
|
-
componentCls:
|
|
947
|
+
componentCls: n,
|
|
958
948
|
motionDurationSlow: t,
|
|
959
|
-
motionDurationMid:
|
|
949
|
+
motionDurationMid: o,
|
|
960
950
|
motionEaseInOut: r,
|
|
961
951
|
motionEaseOut: a,
|
|
962
952
|
iconCls: i,
|
|
963
|
-
iconSize:
|
|
953
|
+
iconSize: d,
|
|
964
954
|
iconMarginInlineEnd: s
|
|
965
955
|
} = e;
|
|
966
956
|
return {
|
|
967
957
|
// >>>>> Item
|
|
968
|
-
[`${
|
|
958
|
+
[`${n}-item, ${n}-submenu-title`]: {
|
|
969
959
|
position: "relative",
|
|
970
960
|
display: "block",
|
|
971
961
|
margin: 0,
|
|
972
962
|
whiteSpace: "nowrap",
|
|
973
963
|
cursor: "pointer",
|
|
974
964
|
transition: [`border-color ${t}`, `background ${t}`, `padding calc(${t} + 0.1s) ${r}`].join(","),
|
|
975
|
-
[`${
|
|
976
|
-
minWidth:
|
|
977
|
-
fontSize:
|
|
978
|
-
transition: [`font-size ${
|
|
965
|
+
[`${n}-item-icon, ${i}`]: {
|
|
966
|
+
minWidth: d,
|
|
967
|
+
fontSize: d,
|
|
968
|
+
transition: [`font-size ${o} ${a}`, `margin ${t} ${r}`, `color ${t}`].join(","),
|
|
979
969
|
"+ span": {
|
|
980
970
|
marginInlineStart: s,
|
|
981
971
|
opacity: 1,
|
|
982
972
|
transition: [`opacity ${t} ${r}`, `margin ${t}`, `color ${t}`].join(",")
|
|
983
973
|
}
|
|
984
974
|
},
|
|
985
|
-
[`${
|
|
986
|
-
[`&${
|
|
987
|
-
[`> ${i}, > ${
|
|
975
|
+
[`${n}-item-icon`]: Object.assign({}, ct()),
|
|
976
|
+
[`&${n}-item-only-child`]: {
|
|
977
|
+
[`> ${i}, > ${n}-item-icon`]: {
|
|
988
978
|
marginInlineEnd: 0
|
|
989
979
|
}
|
|
990
980
|
}
|
|
991
981
|
},
|
|
992
982
|
// Disabled state sets text to gray and nukes hover/tab effects
|
|
993
|
-
[`${
|
|
983
|
+
[`${n}-item-disabled, ${n}-submenu-disabled`]: {
|
|
994
984
|
background: "none !important",
|
|
995
985
|
cursor: "not-allowed",
|
|
996
986
|
"&::after": {
|
|
@@ -1001,23 +991,23 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1001
991
|
cursor: "not-allowed",
|
|
1002
992
|
pointerEvents: "none"
|
|
1003
993
|
},
|
|
1004
|
-
[`> ${
|
|
994
|
+
[`> ${n}-submenu-title`]: {
|
|
1005
995
|
color: "inherit !important",
|
|
1006
996
|
cursor: "not-allowed"
|
|
1007
997
|
}
|
|
1008
998
|
}
|
|
1009
999
|
};
|
|
1010
|
-
},
|
|
1000
|
+
}, De = (e) => {
|
|
1011
1001
|
const {
|
|
1012
|
-
componentCls:
|
|
1002
|
+
componentCls: n,
|
|
1013
1003
|
motionDurationSlow: t,
|
|
1014
|
-
motionEaseInOut:
|
|
1004
|
+
motionEaseInOut: o,
|
|
1015
1005
|
borderRadius: r,
|
|
1016
1006
|
menuArrowSize: a,
|
|
1017
1007
|
menuArrowOffset: i
|
|
1018
1008
|
} = e;
|
|
1019
1009
|
return {
|
|
1020
|
-
[`${
|
|
1010
|
+
[`${n}-submenu`]: {
|
|
1021
1011
|
"&-expand-icon, &-arrow": {
|
|
1022
1012
|
position: "absolute",
|
|
1023
1013
|
top: "50%",
|
|
@@ -1025,7 +1015,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1025
1015
|
width: a,
|
|
1026
1016
|
color: "currentcolor",
|
|
1027
1017
|
transform: "translateY(-50%)",
|
|
1028
|
-
transition: `transform ${t} ${
|
|
1018
|
+
transition: `transform ${t} ${o}, opacity ${t}`
|
|
1029
1019
|
},
|
|
1030
1020
|
"&-arrow": {
|
|
1031
1021
|
// →
|
|
@@ -1035,36 +1025,36 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1035
1025
|
height: e.calc(a).mul(0.15).equal(),
|
|
1036
1026
|
backgroundColor: "currentcolor",
|
|
1037
1027
|
borderRadius: r,
|
|
1038
|
-
transition: [`background ${t} ${
|
|
1028
|
+
transition: [`background ${t} ${o}`, `transform ${t} ${o}`, `top ${t} ${o}`, `color ${t} ${o}`].join(","),
|
|
1039
1029
|
content: '""'
|
|
1040
1030
|
},
|
|
1041
1031
|
"&::before": {
|
|
1042
|
-
transform: `rotate(45deg) translateY(${
|
|
1032
|
+
transform: `rotate(45deg) translateY(${h(e.calc(i).mul(-1).equal())})`
|
|
1043
1033
|
},
|
|
1044
1034
|
"&::after": {
|
|
1045
|
-
transform: `rotate(-45deg) translateY(${
|
|
1035
|
+
transform: `rotate(-45deg) translateY(${h(i)})`
|
|
1046
1036
|
}
|
|
1047
1037
|
}
|
|
1048
1038
|
}
|
|
1049
1039
|
};
|
|
1050
|
-
},
|
|
1040
|
+
}, nn = (e) => {
|
|
1051
1041
|
const {
|
|
1052
|
-
antCls:
|
|
1042
|
+
antCls: n,
|
|
1053
1043
|
componentCls: t,
|
|
1054
|
-
fontSize:
|
|
1044
|
+
fontSize: o,
|
|
1055
1045
|
motionDurationSlow: r,
|
|
1056
1046
|
motionDurationMid: a,
|
|
1057
1047
|
motionEaseInOut: i,
|
|
1058
|
-
paddingXS:
|
|
1048
|
+
paddingXS: d,
|
|
1059
1049
|
padding: s,
|
|
1060
|
-
colorSplit:
|
|
1061
|
-
lineWidth:
|
|
1050
|
+
colorSplit: p,
|
|
1051
|
+
lineWidth: g,
|
|
1062
1052
|
zIndexPopup: S,
|
|
1063
1053
|
borderRadiusLG: u,
|
|
1064
|
-
subMenuItemBorderRadius:
|
|
1065
|
-
menuArrowSize:
|
|
1054
|
+
subMenuItemBorderRadius: $,
|
|
1055
|
+
menuArrowSize: c,
|
|
1066
1056
|
menuArrowOffset: m,
|
|
1067
|
-
lineType:
|
|
1057
|
+
lineType: v,
|
|
1068
1058
|
groupTitleLineHeight: I,
|
|
1069
1059
|
groupTitleFontSize: B
|
|
1070
1060
|
} = e;
|
|
@@ -1072,7 +1062,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1072
1062
|
// Misc
|
|
1073
1063
|
{
|
|
1074
1064
|
"": {
|
|
1075
|
-
[t]: Object.assign(Object.assign({},
|
|
1065
|
+
[t]: Object.assign(Object.assign({}, Ee()), {
|
|
1076
1066
|
// Hidden
|
|
1077
1067
|
"&-hidden": {
|
|
1078
1068
|
display: "none"
|
|
@@ -1084,11 +1074,11 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1084
1074
|
}
|
|
1085
1075
|
},
|
|
1086
1076
|
{
|
|
1087
|
-
[t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
1077
|
+
[t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Ie(e)), Ee()), {
|
|
1088
1078
|
marginBottom: 0,
|
|
1089
1079
|
paddingInlineStart: 0,
|
|
1090
1080
|
// Override default ul/ol
|
|
1091
|
-
fontSize:
|
|
1081
|
+
fontSize: o,
|
|
1092
1082
|
lineHeight: 0,
|
|
1093
1083
|
listStyle: "none",
|
|
1094
1084
|
outline: "none",
|
|
@@ -1110,7 +1100,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1110
1100
|
borderRadius: e.itemBorderRadius
|
|
1111
1101
|
},
|
|
1112
1102
|
[`${t}-item-group-title`]: {
|
|
1113
|
-
padding: `${
|
|
1103
|
+
padding: `${h(d)} ${h(s)}`,
|
|
1114
1104
|
fontSize: B,
|
|
1115
1105
|
lineHeight: I,
|
|
1116
1106
|
transition: `all ${r}`
|
|
@@ -1133,7 +1123,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1133
1123
|
width: "100%"
|
|
1134
1124
|
},
|
|
1135
1125
|
// https://github.com/ant-design/ant-design/issues/41143
|
|
1136
|
-
[`> ${
|
|
1126
|
+
[`> ${n}-typography-ellipsis-single-line`]: {
|
|
1137
1127
|
display: "inline",
|
|
1138
1128
|
verticalAlign: "unset"
|
|
1139
1129
|
},
|
|
@@ -1156,23 +1146,23 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1156
1146
|
[`${t}-item-divider`]: {
|
|
1157
1147
|
overflow: "hidden",
|
|
1158
1148
|
lineHeight: 0,
|
|
1159
|
-
borderColor:
|
|
1160
|
-
borderStyle:
|
|
1149
|
+
borderColor: p,
|
|
1150
|
+
borderStyle: v,
|
|
1161
1151
|
borderWidth: 0,
|
|
1162
|
-
borderTopWidth:
|
|
1163
|
-
marginBlock:
|
|
1152
|
+
borderTopWidth: g,
|
|
1153
|
+
marginBlock: g,
|
|
1164
1154
|
padding: 0,
|
|
1165
1155
|
"&-dashed": {
|
|
1166
1156
|
borderStyle: "dashed"
|
|
1167
1157
|
}
|
|
1168
1158
|
}
|
|
1169
|
-
}),
|
|
1159
|
+
}), He(e)), {
|
|
1170
1160
|
[`${t}-item-group`]: {
|
|
1171
1161
|
[`${t}-item-group-list`]: {
|
|
1172
1162
|
margin: 0,
|
|
1173
1163
|
padding: 0,
|
|
1174
1164
|
[`${t}-item, ${t}-submenu-title`]: {
|
|
1175
|
-
paddingInline: `${
|
|
1165
|
+
paddingInline: `${h(e.calc(o).mul(2).equal())} ${h(s)}`
|
|
1176
1166
|
}
|
|
1177
1167
|
}
|
|
1178
1168
|
},
|
|
@@ -1199,9 +1189,9 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1199
1189
|
},
|
|
1200
1190
|
[`> ${t}`]: Object.assign(Object.assign(Object.assign({
|
|
1201
1191
|
borderRadius: u
|
|
1202
|
-
},
|
|
1192
|
+
}, He(e)), De(e)), {
|
|
1203
1193
|
[`${t}-item, ${t}-submenu > ${t}-submenu-title`]: {
|
|
1204
|
-
borderRadius:
|
|
1194
|
+
borderRadius: $
|
|
1205
1195
|
},
|
|
1206
1196
|
[`${t}-submenu-title::after`]: {
|
|
1207
1197
|
transition: `transform ${r} ${i}`
|
|
@@ -1233,65 +1223,65 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1233
1223
|
paddingTop: e.paddingXS
|
|
1234
1224
|
}
|
|
1235
1225
|
}
|
|
1236
|
-
}),
|
|
1226
|
+
}), De(e)), {
|
|
1237
1227
|
[`&-inline-collapsed ${t}-submenu-arrow,
|
|
1238
1228
|
&-inline ${t}-submenu-arrow`]: {
|
|
1239
1229
|
// ↓
|
|
1240
1230
|
"&::before": {
|
|
1241
|
-
transform: `rotate(-45deg) translateX(${
|
|
1231
|
+
transform: `rotate(-45deg) translateX(${h(m)})`
|
|
1242
1232
|
},
|
|
1243
1233
|
"&::after": {
|
|
1244
|
-
transform: `rotate(45deg) translateX(${
|
|
1234
|
+
transform: `rotate(45deg) translateX(${h(e.calc(m).mul(-1).equal())})`
|
|
1245
1235
|
}
|
|
1246
1236
|
},
|
|
1247
1237
|
[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]: {
|
|
1248
1238
|
// ↑
|
|
1249
|
-
transform: `translateY(${
|
|
1239
|
+
transform: `translateY(${h(e.calc(c).mul(0.2).mul(-1).equal())})`,
|
|
1250
1240
|
"&::after": {
|
|
1251
|
-
transform: `rotate(-45deg) translateX(${
|
|
1241
|
+
transform: `rotate(-45deg) translateX(${h(e.calc(m).mul(-1).equal())})`
|
|
1252
1242
|
},
|
|
1253
1243
|
"&::before": {
|
|
1254
|
-
transform: `rotate(45deg) translateX(${
|
|
1244
|
+
transform: `rotate(45deg) translateX(${h(m)})`
|
|
1255
1245
|
}
|
|
1256
1246
|
}
|
|
1257
1247
|
})
|
|
1258
1248
|
},
|
|
1259
1249
|
// Integration with header element so menu items have the same height
|
|
1260
1250
|
{
|
|
1261
|
-
[`${
|
|
1251
|
+
[`${n}-layout-header`]: {
|
|
1262
1252
|
[t]: {
|
|
1263
1253
|
lineHeight: "inherit"
|
|
1264
1254
|
}
|
|
1265
1255
|
}
|
|
1266
1256
|
}
|
|
1267
1257
|
];
|
|
1268
|
-
},
|
|
1269
|
-
var
|
|
1258
|
+
}, on = (e) => {
|
|
1259
|
+
var n, t, o;
|
|
1270
1260
|
const {
|
|
1271
1261
|
colorPrimary: r,
|
|
1272
1262
|
colorError: a,
|
|
1273
1263
|
colorTextDisabled: i,
|
|
1274
|
-
colorErrorBg:
|
|
1264
|
+
colorErrorBg: d,
|
|
1275
1265
|
colorText: s,
|
|
1276
|
-
colorTextDescription:
|
|
1277
|
-
colorBgContainer:
|
|
1266
|
+
colorTextDescription: p,
|
|
1267
|
+
colorBgContainer: g,
|
|
1278
1268
|
colorFillAlter: S,
|
|
1279
1269
|
colorFillContent: u,
|
|
1280
|
-
lineWidth:
|
|
1281
|
-
lineWidthBold:
|
|
1270
|
+
lineWidth: $,
|
|
1271
|
+
lineWidthBold: c,
|
|
1282
1272
|
controlItemBgActive: m,
|
|
1283
|
-
colorBgTextHover:
|
|
1273
|
+
colorBgTextHover: v,
|
|
1284
1274
|
controlHeightLG: I,
|
|
1285
1275
|
lineHeight: B,
|
|
1286
1276
|
colorBgElevated: x,
|
|
1287
|
-
marginXXS:
|
|
1277
|
+
marginXXS: b,
|
|
1288
1278
|
padding: E,
|
|
1289
1279
|
fontSize: N,
|
|
1290
1280
|
controlHeightSM: _,
|
|
1291
1281
|
fontSizeLG: w,
|
|
1292
1282
|
colorTextLightSolid: C,
|
|
1293
|
-
colorErrorHover:
|
|
1294
|
-
} = e,
|
|
1283
|
+
colorErrorHover: f
|
|
1284
|
+
} = e, j = (n = e.activeBarWidth) !== null && n !== void 0 ? n : 0, D = (t = e.activeBarBorderWidth) !== null && t !== void 0 ? t : $, M = (o = e.itemMarginInline) !== null && o !== void 0 ? o : e.marginXXS, y = new Be(C).setA(0.65).toRgbString();
|
|
1295
1285
|
return {
|
|
1296
1286
|
dropdownWidth: 160,
|
|
1297
1287
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
@@ -1305,17 +1295,17 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1305
1295
|
itemHoverColor: s,
|
|
1306
1296
|
colorItemTextHoverHorizontal: r,
|
|
1307
1297
|
horizontalItemHoverColor: r,
|
|
1308
|
-
colorGroupTitle:
|
|
1309
|
-
groupTitleColor:
|
|
1298
|
+
colorGroupTitle: p,
|
|
1299
|
+
groupTitleColor: p,
|
|
1310
1300
|
colorItemTextSelected: r,
|
|
1311
1301
|
itemSelectedColor: r,
|
|
1312
1302
|
subMenuItemSelectedColor: r,
|
|
1313
1303
|
colorItemTextSelectedHorizontal: r,
|
|
1314
1304
|
horizontalItemSelectedColor: r,
|
|
1315
|
-
colorItemBg:
|
|
1316
|
-
itemBg:
|
|
1317
|
-
colorItemBgHover:
|
|
1318
|
-
itemHoverBg:
|
|
1305
|
+
colorItemBg: g,
|
|
1306
|
+
itemBg: g,
|
|
1307
|
+
colorItemBgHover: v,
|
|
1308
|
+
itemHoverBg: v,
|
|
1319
1309
|
colorItemBgActive: u,
|
|
1320
1310
|
itemActiveBg: m,
|
|
1321
1311
|
colorSubItemBg: S,
|
|
@@ -1325,10 +1315,10 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1325
1315
|
colorItemBgSelectedHorizontal: "transparent",
|
|
1326
1316
|
horizontalItemSelectedBg: "transparent",
|
|
1327
1317
|
colorActiveBarWidth: 0,
|
|
1328
|
-
activeBarWidth:
|
|
1329
|
-
colorActiveBarHeight:
|
|
1330
|
-
activeBarHeight:
|
|
1331
|
-
colorActiveBarBorderSize:
|
|
1318
|
+
activeBarWidth: j,
|
|
1319
|
+
colorActiveBarHeight: c,
|
|
1320
|
+
activeBarHeight: c,
|
|
1321
|
+
colorActiveBarBorderSize: $,
|
|
1332
1322
|
activeBarBorderWidth: D,
|
|
1333
1323
|
// Disabled
|
|
1334
1324
|
colorItemTextDisabled: i,
|
|
@@ -1340,10 +1330,10 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1340
1330
|
dangerItemHoverColor: a,
|
|
1341
1331
|
colorDangerItemTextSelected: a,
|
|
1342
1332
|
dangerItemSelectedColor: a,
|
|
1343
|
-
colorDangerItemBgActive:
|
|
1344
|
-
dangerItemActiveBg:
|
|
1345
|
-
colorDangerItemBgSelected:
|
|
1346
|
-
dangerItemSelectedBg:
|
|
1333
|
+
colorDangerItemBgActive: d,
|
|
1334
|
+
dangerItemActiveBg: d,
|
|
1335
|
+
colorDangerItemBgSelected: d,
|
|
1336
|
+
dangerItemSelectedBg: d,
|
|
1347
1337
|
itemMarginInline: M,
|
|
1348
1338
|
horizontalItemBorderRadius: 0,
|
|
1349
1339
|
horizontalItemHoverBg: "transparent",
|
|
@@ -1351,7 +1341,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1351
1341
|
groupTitleLineHeight: B,
|
|
1352
1342
|
collapsedWidth: I * 2,
|
|
1353
1343
|
popupBg: x,
|
|
1354
|
-
itemMarginBlock:
|
|
1344
|
+
itemMarginBlock: b,
|
|
1355
1345
|
itemPaddingInline: E,
|
|
1356
1346
|
horizontalLineHeight: `${I * 1.15}px`,
|
|
1357
1347
|
iconSize: N,
|
|
@@ -1359,7 +1349,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1359
1349
|
collapsedIconSize: w,
|
|
1360
1350
|
groupTitleFontSize: N,
|
|
1361
1351
|
// Disabled
|
|
1362
|
-
darkItemDisabledColor: new
|
|
1352
|
+
darkItemDisabledColor: new Be(C).setA(0.25).toRgbString(),
|
|
1363
1353
|
// Dark
|
|
1364
1354
|
darkItemColor: y,
|
|
1365
1355
|
darkDangerItemColor: a,
|
|
@@ -1372,301 +1362,299 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
|
|
|
1372
1362
|
darkItemHoverBg: "transparent",
|
|
1373
1363
|
darkGroupTitleColor: y,
|
|
1374
1364
|
darkItemHoverColor: C,
|
|
1375
|
-
darkDangerItemHoverColor:
|
|
1365
|
+
darkDangerItemHoverColor: f,
|
|
1376
1366
|
darkDangerItemSelectedColor: C,
|
|
1377
1367
|
darkDangerItemActiveBg: a,
|
|
1378
1368
|
// internal
|
|
1379
|
-
itemWidth:
|
|
1369
|
+
itemWidth: j ? `calc(100% + ${D}px)` : `calc(100% - ${M * 2}px)`
|
|
1380
1370
|
};
|
|
1381
|
-
},
|
|
1382
|
-
let
|
|
1371
|
+
}, rn = function(e) {
|
|
1372
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
1383
1373
|
return te("Menu", (r) => {
|
|
1384
1374
|
const {
|
|
1385
1375
|
colorBgElevated: a,
|
|
1386
1376
|
controlHeightLG: i,
|
|
1387
|
-
fontSize:
|
|
1377
|
+
fontSize: d,
|
|
1388
1378
|
darkItemColor: s,
|
|
1389
|
-
darkDangerItemColor:
|
|
1390
|
-
darkItemBg:
|
|
1379
|
+
darkDangerItemColor: p,
|
|
1380
|
+
darkItemBg: g,
|
|
1391
1381
|
darkSubMenuItemBg: S,
|
|
1392
1382
|
darkItemSelectedColor: u,
|
|
1393
|
-
darkItemSelectedBg:
|
|
1394
|
-
darkDangerItemSelectedBg:
|
|
1383
|
+
darkItemSelectedBg: $,
|
|
1384
|
+
darkDangerItemSelectedBg: c,
|
|
1395
1385
|
darkItemHoverBg: m,
|
|
1396
|
-
darkGroupTitleColor:
|
|
1386
|
+
darkGroupTitleColor: v,
|
|
1397
1387
|
darkItemHoverColor: I,
|
|
1398
1388
|
darkItemDisabledColor: B,
|
|
1399
1389
|
darkDangerItemHoverColor: x,
|
|
1400
|
-
darkDangerItemSelectedColor:
|
|
1390
|
+
darkDangerItemSelectedColor: b,
|
|
1401
1391
|
darkDangerItemActiveBg: E,
|
|
1402
1392
|
popupBg: N,
|
|
1403
1393
|
darkPopupBg: _
|
|
1404
|
-
} = r, w = r.calc(
|
|
1394
|
+
} = r, w = r.calc(d).div(7).mul(5).equal(), C = oe(r, {
|
|
1405
1395
|
menuArrowSize: w,
|
|
1406
1396
|
menuHorizontalHeight: r.calc(i).mul(1.15).equal(),
|
|
1407
1397
|
menuArrowOffset: r.calc(w).mul(0.25).equal(),
|
|
1408
1398
|
menuSubMenuBg: a,
|
|
1409
1399
|
calc: r.calc,
|
|
1410
1400
|
popupBg: N
|
|
1411
|
-
}),
|
|
1401
|
+
}), f = oe(C, {
|
|
1412
1402
|
itemColor: s,
|
|
1413
1403
|
itemHoverColor: I,
|
|
1414
|
-
groupTitleColor:
|
|
1404
|
+
groupTitleColor: v,
|
|
1415
1405
|
itemSelectedColor: u,
|
|
1416
|
-
itemBg:
|
|
1406
|
+
itemBg: g,
|
|
1417
1407
|
popupBg: _,
|
|
1418
1408
|
subMenuItemBg: S,
|
|
1419
1409
|
itemActiveBg: "transparent",
|
|
1420
|
-
itemSelectedBg:
|
|
1410
|
+
itemSelectedBg: $,
|
|
1421
1411
|
activeBarHeight: 0,
|
|
1422
1412
|
activeBarBorderWidth: 0,
|
|
1423
1413
|
itemHoverBg: m,
|
|
1424
1414
|
// Disabled
|
|
1425
1415
|
itemDisabledColor: B,
|
|
1426
1416
|
// Danger
|
|
1427
|
-
dangerItemColor:
|
|
1417
|
+
dangerItemColor: p,
|
|
1428
1418
|
dangerItemHoverColor: x,
|
|
1429
|
-
dangerItemSelectedColor:
|
|
1419
|
+
dangerItemSelectedColor: b,
|
|
1430
1420
|
dangerItemActiveBg: E,
|
|
1431
|
-
dangerItemSelectedBg:
|
|
1421
|
+
dangerItemSelectedBg: c,
|
|
1432
1422
|
menuSubMenuBg: S,
|
|
1433
1423
|
// Horizontal
|
|
1434
1424
|
horizontalItemSelectedColor: u,
|
|
1435
|
-
horizontalItemSelectedBg:
|
|
1425
|
+
horizontalItemSelectedBg: $
|
|
1436
1426
|
});
|
|
1437
1427
|
return [
|
|
1438
1428
|
// Basic
|
|
1439
|
-
|
|
1429
|
+
nn(C),
|
|
1440
1430
|
// Horizontal
|
|
1441
|
-
|
|
1431
|
+
Qt(C),
|
|
1442
1432
|
// Hard code for some light style
|
|
1443
1433
|
// Vertical
|
|
1444
|
-
|
|
1434
|
+
tn(C),
|
|
1445
1435
|
// Hard code for some light style
|
|
1446
1436
|
// Theme
|
|
1447
1437
|
Te(C, "light"),
|
|
1448
|
-
Te(
|
|
1438
|
+
Te(f, "dark"),
|
|
1449
1439
|
// RTL
|
|
1450
|
-
|
|
1440
|
+
en(C),
|
|
1451
1441
|
// Motion
|
|
1452
|
-
|
|
1442
|
+
jt(C),
|
|
1453
1443
|
re(C, "slide-up"),
|
|
1454
1444
|
re(C, "slide-down"),
|
|
1455
|
-
|
|
1445
|
+
Xe(C, "zoom-big")
|
|
1456
1446
|
];
|
|
1457
|
-
},
|
|
1447
|
+
}, on, {
|
|
1458
1448
|
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"]],
|
|
1459
1449
|
// Dropdown will handle menu style self. We do not need to handle this.
|
|
1460
1450
|
injectStyle: t,
|
|
1461
1451
|
unitless: {
|
|
1462
1452
|
groupTitleLineHeight: !0
|
|
1463
1453
|
}
|
|
1464
|
-
})(e,
|
|
1465
|
-
},
|
|
1466
|
-
var
|
|
1454
|
+
})(e, n);
|
|
1455
|
+
}, Ke = (e) => {
|
|
1456
|
+
var n;
|
|
1467
1457
|
const {
|
|
1468
1458
|
popupClassName: t,
|
|
1469
|
-
icon:
|
|
1459
|
+
icon: o,
|
|
1470
1460
|
title: r,
|
|
1471
1461
|
theme: a
|
|
1472
|
-
} = e, i = l.useContext(
|
|
1473
|
-
prefixCls:
|
|
1462
|
+
} = e, i = l.useContext(le), {
|
|
1463
|
+
prefixCls: d,
|
|
1474
1464
|
inlineCollapsed: s,
|
|
1475
|
-
theme:
|
|
1476
|
-
} = i,
|
|
1465
|
+
theme: p
|
|
1466
|
+
} = i, g = bt();
|
|
1477
1467
|
let S;
|
|
1478
|
-
if (!
|
|
1479
|
-
S = s && !
|
|
1480
|
-
className: `${
|
|
1468
|
+
if (!o)
|
|
1469
|
+
S = s && !g.length && r && typeof r == "string" ? /* @__PURE__ */ l.createElement("div", {
|
|
1470
|
+
className: `${d}-inline-collapsed-noicon`
|
|
1481
1471
|
}, r.charAt(0)) : /* @__PURE__ */ l.createElement("span", {
|
|
1482
|
-
className: `${
|
|
1472
|
+
className: `${d}-title-content`
|
|
1483
1473
|
}, r);
|
|
1484
1474
|
else {
|
|
1485
|
-
const
|
|
1486
|
-
S = /* @__PURE__ */ l.createElement(l.Fragment, null, ee(
|
|
1487
|
-
className: P(/* @__PURE__ */ l.isValidElement(
|
|
1488
|
-
}),
|
|
1489
|
-
className: `${
|
|
1475
|
+
const c = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
|
|
1476
|
+
S = /* @__PURE__ */ l.createElement(l.Fragment, null, ee(o, {
|
|
1477
|
+
className: P(/* @__PURE__ */ l.isValidElement(o) ? (n = o.props) === null || n === void 0 ? void 0 : n.className : "", `${d}-item-icon`)
|
|
1478
|
+
}), c ? r : /* @__PURE__ */ l.createElement("span", {
|
|
1479
|
+
className: `${d}-title-content`
|
|
1490
1480
|
}, r));
|
|
1491
1481
|
}
|
|
1492
1482
|
const u = l.useMemo(() => Object.assign(Object.assign({}, i), {
|
|
1493
1483
|
firstLevel: !1
|
|
1494
|
-
}), [i]), [
|
|
1495
|
-
return /* @__PURE__ */ l.createElement(
|
|
1484
|
+
}), [i]), [$] = We("Menu");
|
|
1485
|
+
return /* @__PURE__ */ l.createElement(le.Provider, {
|
|
1496
1486
|
value: u
|
|
1497
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1487
|
+
}, /* @__PURE__ */ l.createElement($t, Object.assign({}, Q(e, ["icon"]), {
|
|
1498
1488
|
title: S,
|
|
1499
|
-
popupClassName: P(
|
|
1489
|
+
popupClassName: P(d, t, `${d}-${a || p}`),
|
|
1500
1490
|
popupStyle: Object.assign({
|
|
1501
|
-
zIndex:
|
|
1491
|
+
zIndex: $
|
|
1502
1492
|
}, e.popupStyle)
|
|
1503
1493
|
})));
|
|
1504
|
-
}
|
|
1505
|
-
var
|
|
1494
|
+
};
|
|
1495
|
+
var ln = function(e, n) {
|
|
1506
1496
|
var t = {};
|
|
1507
|
-
for (var
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1511
|
-
o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
|
|
1497
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
1498
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
1499
|
+
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
1512
1500
|
return t;
|
|
1513
1501
|
};
|
|
1514
|
-
function
|
|
1502
|
+
function $e(e) {
|
|
1515
1503
|
return e === null || e === !1;
|
|
1516
1504
|
}
|
|
1517
|
-
const
|
|
1518
|
-
item:
|
|
1519
|
-
submenu:
|
|
1520
|
-
divider:
|
|
1521
|
-
},
|
|
1505
|
+
const an = {
|
|
1506
|
+
item: Ue,
|
|
1507
|
+
submenu: Ke,
|
|
1508
|
+
divider: Ye
|
|
1509
|
+
}, sn = /* @__PURE__ */ Ae((e, n) => {
|
|
1522
1510
|
var t;
|
|
1523
|
-
const
|
|
1511
|
+
const o = l.useContext(ae), r = o || {}, {
|
|
1524
1512
|
getPrefixCls: a,
|
|
1525
1513
|
getPopupContainer: i,
|
|
1526
|
-
direction:
|
|
1514
|
+
direction: d,
|
|
1527
1515
|
menu: s
|
|
1528
|
-
} = l.useContext(Z),
|
|
1529
|
-
prefixCls:
|
|
1516
|
+
} = l.useContext(Z), p = a(), {
|
|
1517
|
+
prefixCls: g,
|
|
1530
1518
|
className: S,
|
|
1531
1519
|
style: u,
|
|
1532
|
-
theme:
|
|
1533
|
-
expandIcon:
|
|
1520
|
+
theme: $ = "light",
|
|
1521
|
+
expandIcon: c,
|
|
1534
1522
|
_internalDisableMenuItemTitleTooltip: m,
|
|
1535
|
-
inlineCollapsed:
|
|
1523
|
+
inlineCollapsed: v,
|
|
1536
1524
|
siderCollapsed: I,
|
|
1537
1525
|
rootClassName: B,
|
|
1538
1526
|
mode: x,
|
|
1539
|
-
selectable:
|
|
1527
|
+
selectable: b,
|
|
1540
1528
|
onClick: E,
|
|
1541
1529
|
overflowedIndicatorPopupClassName: N
|
|
1542
|
-
} = e, _ =
|
|
1530
|
+
} = e, _ = ln(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), w = Q(_, ["collapsedWidth"]);
|
|
1543
1531
|
if (process.env.NODE_ENV !== "production") {
|
|
1544
|
-
const
|
|
1545
|
-
process.env.NODE_ENV !== "production" &&
|
|
1532
|
+
const z = se("Menu");
|
|
1533
|
+
process.env.NODE_ENV !== "production" && z(!("inlineCollapsed" in e && x !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), z.deprecated("items" in e && !e.children, "children", "items");
|
|
1546
1534
|
}
|
|
1547
1535
|
(t = r.validator) === null || t === void 0 || t.call(r, {
|
|
1548
1536
|
mode: x
|
|
1549
1537
|
});
|
|
1550
|
-
const C =
|
|
1551
|
-
var
|
|
1552
|
-
E == null || E.apply(void 0, arguments), (
|
|
1553
|
-
}),
|
|
1538
|
+
const C = ke(function() {
|
|
1539
|
+
var z;
|
|
1540
|
+
E == null || E.apply(void 0, arguments), (z = r.onClick) === null || z === void 0 || z.call(r);
|
|
1541
|
+
}), f = r.mode || x, j = b ?? r.selectable, D = v ?? I, M = {
|
|
1554
1542
|
horizontal: {
|
|
1555
|
-
motionName: `${
|
|
1543
|
+
motionName: `${p}-slide-up`
|
|
1556
1544
|
},
|
|
1557
|
-
inline:
|
|
1545
|
+
inline: It(p),
|
|
1558
1546
|
other: {
|
|
1559
|
-
motionName: `${
|
|
1547
|
+
motionName: `${p}-zoom-big`
|
|
1560
1548
|
}
|
|
1561
|
-
}, y = a("menu",
|
|
1562
|
-
var
|
|
1563
|
-
if (typeof
|
|
1564
|
-
return
|
|
1565
|
-
if (typeof r.expandIcon == "function" ||
|
|
1549
|
+
}, y = a("menu", g || r.prefixCls), H = Ve(y), [L, k, R] = rn(y, H, !o), W = P(`${y}-${$}`, s == null ? void 0 : s.className, S), V = l.useMemo(() => {
|
|
1550
|
+
var z, X;
|
|
1551
|
+
if (typeof c == "function" || $e(c))
|
|
1552
|
+
return c || null;
|
|
1553
|
+
if (typeof r.expandIcon == "function" || $e(r.expandIcon))
|
|
1566
1554
|
return r.expandIcon || null;
|
|
1567
|
-
if (typeof (s == null ? void 0 : s.expandIcon) == "function" ||
|
|
1555
|
+
if (typeof (s == null ? void 0 : s.expandIcon) == "function" || $e(s == null ? void 0 : s.expandIcon))
|
|
1568
1556
|
return (s == null ? void 0 : s.expandIcon) || null;
|
|
1569
|
-
const q = (
|
|
1557
|
+
const q = (z = c ?? (r == null ? void 0 : r.expandIcon)) !== null && z !== void 0 ? z : s == null ? void 0 : s.expandIcon;
|
|
1570
1558
|
return ee(q, {
|
|
1571
1559
|
className: P(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(q) ? (X = q.props) === null || X === void 0 ? void 0 : X.className : void 0)
|
|
1572
1560
|
});
|
|
1573
|
-
}, [
|
|
1561
|
+
}, [c, r == null ? void 0 : r.expandIcon, s == null ? void 0 : s.expandIcon, y]), F = l.useMemo(() => ({
|
|
1574
1562
|
prefixCls: y,
|
|
1575
1563
|
inlineCollapsed: D || !1,
|
|
1576
|
-
direction:
|
|
1564
|
+
direction: d,
|
|
1577
1565
|
firstLevel: !0,
|
|
1578
|
-
theme:
|
|
1579
|
-
mode:
|
|
1566
|
+
theme: $,
|
|
1567
|
+
mode: f,
|
|
1580
1568
|
disableMenuItemTitleTooltip: m
|
|
1581
|
-
}), [y, D,
|
|
1582
|
-
return L(/* @__PURE__ */ l.createElement(
|
|
1569
|
+
}), [y, D, d, m, $]);
|
|
1570
|
+
return L(/* @__PURE__ */ l.createElement(ae.Provider, {
|
|
1583
1571
|
value: null
|
|
1584
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1572
|
+
}, /* @__PURE__ */ l.createElement(le.Provider, {
|
|
1585
1573
|
value: F
|
|
1586
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1574
|
+
}, /* @__PURE__ */ l.createElement(ht, Object.assign({
|
|
1587
1575
|
getPopupContainer: i,
|
|
1588
|
-
overflowedIndicator: /* @__PURE__ */ l.createElement(
|
|
1589
|
-
overflowedIndicatorPopupClassName: P(y, `${y}-${
|
|
1590
|
-
mode:
|
|
1591
|
-
selectable:
|
|
1576
|
+
overflowedIndicator: /* @__PURE__ */ l.createElement(vt, null),
|
|
1577
|
+
overflowedIndicatorPopupClassName: P(y, `${y}-${$}`, N),
|
|
1578
|
+
mode: f,
|
|
1579
|
+
selectable: j,
|
|
1592
1580
|
onClick: C
|
|
1593
1581
|
}, w, {
|
|
1594
1582
|
inlineCollapsed: D,
|
|
1595
1583
|
style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), u),
|
|
1596
1584
|
className: W,
|
|
1597
1585
|
prefixCls: y,
|
|
1598
|
-
direction:
|
|
1586
|
+
direction: d,
|
|
1599
1587
|
defaultMotions: M,
|
|
1600
1588
|
expandIcon: V,
|
|
1601
|
-
ref:
|
|
1589
|
+
ref: n,
|
|
1602
1590
|
rootClassName: P(B, k, r.rootClassName, R, H),
|
|
1603
|
-
_internalComponents:
|
|
1591
|
+
_internalComponents: an
|
|
1604
1592
|
})))));
|
|
1605
|
-
}),
|
|
1606
|
-
const t =
|
|
1607
|
-
return
|
|
1593
|
+
}), J = /* @__PURE__ */ Ae((e, n) => {
|
|
1594
|
+
const t = _e(null), o = l.useContext(xe);
|
|
1595
|
+
return nt(n, () => ({
|
|
1608
1596
|
menu: t.current,
|
|
1609
1597
|
focus: (r) => {
|
|
1610
1598
|
var a;
|
|
1611
1599
|
(a = t.current) === null || a === void 0 || a.focus(r);
|
|
1612
1600
|
}
|
|
1613
|
-
})), /* @__PURE__ */ l.createElement(
|
|
1601
|
+
})), /* @__PURE__ */ l.createElement(sn, Object.assign({
|
|
1614
1602
|
ref: t
|
|
1615
|
-
}, e,
|
|
1603
|
+
}, e, o));
|
|
1616
1604
|
});
|
|
1617
|
-
J.Item =
|
|
1618
|
-
J.SubMenu =
|
|
1619
|
-
J.Divider =
|
|
1620
|
-
J.ItemGroup =
|
|
1605
|
+
J.Item = Ue;
|
|
1606
|
+
J.SubMenu = Ke;
|
|
1607
|
+
J.Divider = Ye;
|
|
1608
|
+
J.ItemGroup = Ct;
|
|
1621
1609
|
process.env.NODE_ENV !== "production" && (J.displayName = "Menu");
|
|
1622
|
-
const
|
|
1610
|
+
const dn = (e) => {
|
|
1623
1611
|
const {
|
|
1624
|
-
componentCls:
|
|
1612
|
+
componentCls: n,
|
|
1625
1613
|
menuCls: t,
|
|
1626
|
-
colorError:
|
|
1614
|
+
colorError: o,
|
|
1627
1615
|
colorTextLightSolid: r
|
|
1628
1616
|
} = e, a = `${t}-item`;
|
|
1629
1617
|
return {
|
|
1630
|
-
[`${
|
|
1618
|
+
[`${n}, ${n}-menu-submenu`]: {
|
|
1631
1619
|
[`${t} ${a}`]: {
|
|
1632
1620
|
[`&${a}-danger:not(${a}-disabled)`]: {
|
|
1633
|
-
color:
|
|
1621
|
+
color: o,
|
|
1634
1622
|
"&:hover": {
|
|
1635
1623
|
color: r,
|
|
1636
|
-
backgroundColor:
|
|
1624
|
+
backgroundColor: o
|
|
1637
1625
|
}
|
|
1638
1626
|
}
|
|
1639
1627
|
}
|
|
1640
1628
|
}
|
|
1641
1629
|
};
|
|
1642
|
-
},
|
|
1630
|
+
}, cn = (e) => {
|
|
1643
1631
|
const {
|
|
1644
|
-
componentCls:
|
|
1632
|
+
componentCls: n,
|
|
1645
1633
|
menuCls: t,
|
|
1646
|
-
zIndexPopup:
|
|
1634
|
+
zIndexPopup: o,
|
|
1647
1635
|
dropdownArrowDistance: r,
|
|
1648
1636
|
sizePopupArrow: a,
|
|
1649
1637
|
antCls: i,
|
|
1650
|
-
iconCls:
|
|
1638
|
+
iconCls: d,
|
|
1651
1639
|
motionDurationMid: s,
|
|
1652
|
-
paddingBlock:
|
|
1653
|
-
fontSize:
|
|
1640
|
+
paddingBlock: p,
|
|
1641
|
+
fontSize: g,
|
|
1654
1642
|
dropdownEdgeChildPadding: S,
|
|
1655
1643
|
colorTextDisabled: u,
|
|
1656
|
-
fontSizeIcon:
|
|
1657
|
-
controlPaddingHorizontal:
|
|
1644
|
+
fontSizeIcon: $,
|
|
1645
|
+
controlPaddingHorizontal: c,
|
|
1658
1646
|
colorBgElevated: m
|
|
1659
1647
|
} = e;
|
|
1660
1648
|
return [
|
|
1661
1649
|
{
|
|
1662
|
-
[
|
|
1650
|
+
[n]: {
|
|
1663
1651
|
position: "absolute",
|
|
1664
1652
|
top: -9999,
|
|
1665
1653
|
left: {
|
|
1666
1654
|
_skip_check_: !0,
|
|
1667
1655
|
value: -9999
|
|
1668
1656
|
},
|
|
1669
|
-
zIndex:
|
|
1657
|
+
zIndex: o,
|
|
1670
1658
|
display: "block",
|
|
1671
1659
|
// A placeholder out of dropdown visible range to avoid close when user moving
|
|
1672
1660
|
"&::before": {
|
|
@@ -1683,21 +1671,21 @@ const Io = J, yo = (e) => {
|
|
|
1683
1671
|
overflowY: "auto"
|
|
1684
1672
|
},
|
|
1685
1673
|
[`&-trigger${i}-btn`]: {
|
|
1686
|
-
[`& > ${
|
|
1687
|
-
fontSize:
|
|
1674
|
+
[`& > ${d}-down, & > ${i}-btn-icon > ${d}-down`]: {
|
|
1675
|
+
fontSize: $
|
|
1688
1676
|
}
|
|
1689
1677
|
},
|
|
1690
|
-
[`${
|
|
1678
|
+
[`${n}-wrap`]: {
|
|
1691
1679
|
position: "relative",
|
|
1692
|
-
[`${i}-btn > ${
|
|
1693
|
-
fontSize:
|
|
1680
|
+
[`${i}-btn > ${d}-down`]: {
|
|
1681
|
+
fontSize: $
|
|
1694
1682
|
},
|
|
1695
|
-
[`${
|
|
1683
|
+
[`${d}-down::before`]: {
|
|
1696
1684
|
transition: `transform ${s}`
|
|
1697
1685
|
}
|
|
1698
1686
|
},
|
|
1699
|
-
[`${
|
|
1700
|
-
[`${
|
|
1687
|
+
[`${n}-wrap-open`]: {
|
|
1688
|
+
[`${d}-down::before`]: {
|
|
1701
1689
|
transform: "rotate(180deg)"
|
|
1702
1690
|
}
|
|
1703
1691
|
},
|
|
@@ -1709,38 +1697,38 @@ const Io = J, yo = (e) => {
|
|
|
1709
1697
|
// =============================================================
|
|
1710
1698
|
// When position is not enough for dropdown, the placement will revert.
|
|
1711
1699
|
// We will handle this with revert motion name.
|
|
1712
|
-
[`&${i}-slide-down-enter${i}-slide-down-enter-active${
|
|
1713
|
-
&${i}-slide-down-appear${i}-slide-down-appear-active${
|
|
1714
|
-
&${i}-slide-down-enter${i}-slide-down-enter-active${
|
|
1715
|
-
&${i}-slide-down-appear${i}-slide-down-appear-active${
|
|
1716
|
-
&${i}-slide-down-enter${i}-slide-down-enter-active${
|
|
1717
|
-
&${i}-slide-down-appear${i}-slide-down-appear-active${
|
|
1718
|
-
animationName:
|
|
1700
|
+
[`&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomLeft,
|
|
1701
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomLeft,
|
|
1702
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottom,
|
|
1703
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottom,
|
|
1704
|
+
&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomRight,
|
|
1705
|
+
&${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomRight`]: {
|
|
1706
|
+
animationName: zt
|
|
1719
1707
|
},
|
|
1720
|
-
[`&${i}-slide-up-enter${i}-slide-up-enter-active${
|
|
1721
|
-
&${i}-slide-up-appear${i}-slide-up-appear-active${
|
|
1722
|
-
&${i}-slide-up-enter${i}-slide-up-enter-active${
|
|
1723
|
-
&${i}-slide-up-appear${i}-slide-up-appear-active${
|
|
1724
|
-
&${i}-slide-up-enter${i}-slide-up-enter-active${
|
|
1725
|
-
&${i}-slide-up-appear${i}-slide-up-appear-active${
|
|
1726
|
-
animationName:
|
|
1708
|
+
[`&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topLeft,
|
|
1709
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topLeft,
|
|
1710
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-top,
|
|
1711
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-top,
|
|
1712
|
+
&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topRight,
|
|
1713
|
+
&${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topRight`]: {
|
|
1714
|
+
animationName: Tt
|
|
1727
1715
|
},
|
|
1728
|
-
[`&${i}-slide-down-leave${i}-slide-down-leave-active${
|
|
1729
|
-
&${i}-slide-down-leave${i}-slide-down-leave-active${
|
|
1730
|
-
&${i}-slide-down-leave${i}-slide-down-leave-active${
|
|
1731
|
-
animationName:
|
|
1716
|
+
[`&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomLeft,
|
|
1717
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottom,
|
|
1718
|
+
&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomRight`]: {
|
|
1719
|
+
animationName: Pt
|
|
1732
1720
|
},
|
|
1733
|
-
[`&${i}-slide-up-leave${i}-slide-up-leave-active${
|
|
1734
|
-
&${i}-slide-up-leave${i}-slide-up-leave-active${
|
|
1735
|
-
&${i}-slide-up-leave${i}-slide-up-leave-active${
|
|
1736
|
-
animationName:
|
|
1721
|
+
[`&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topLeft,
|
|
1722
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-top,
|
|
1723
|
+
&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topRight`]: {
|
|
1724
|
+
animationName: Ht
|
|
1737
1725
|
}
|
|
1738
1726
|
}
|
|
1739
1727
|
},
|
|
1740
1728
|
// =============================================================
|
|
1741
1729
|
// == Arrow style ==
|
|
1742
1730
|
// =============================================================
|
|
1743
|
-
|
|
1731
|
+
wt(e, m, {
|
|
1744
1732
|
arrowPlacement: {
|
|
1745
1733
|
top: !0,
|
|
1746
1734
|
bottom: !0
|
|
@@ -1750,13 +1738,13 @@ const Io = J, yo = (e) => {
|
|
|
1750
1738
|
// =============================================================
|
|
1751
1739
|
// == Menu ==
|
|
1752
1740
|
// =============================================================
|
|
1753
|
-
[`${
|
|
1741
|
+
[`${n} ${t}`]: {
|
|
1754
1742
|
position: "relative",
|
|
1755
1743
|
margin: 0
|
|
1756
1744
|
},
|
|
1757
1745
|
[`${t}-submenu-popup`]: {
|
|
1758
1746
|
position: "absolute",
|
|
1759
|
-
zIndex:
|
|
1747
|
+
zIndex: o,
|
|
1760
1748
|
background: "transparent",
|
|
1761
1749
|
boxShadow: "none",
|
|
1762
1750
|
transformOrigin: "0 0",
|
|
@@ -1765,7 +1753,7 @@ const Io = J, yo = (e) => {
|
|
|
1765
1753
|
margin: 0
|
|
1766
1754
|
}
|
|
1767
1755
|
},
|
|
1768
|
-
[`${
|
|
1756
|
+
[`${n}, ${n}-menu-submenu`]: Object.assign(Object.assign({}, Ie(e)), {
|
|
1769
1757
|
[t]: Object.assign(Object.assign({
|
|
1770
1758
|
padding: S,
|
|
1771
1759
|
listStyleType: "none",
|
|
@@ -1774,13 +1762,13 @@ const Io = J, yo = (e) => {
|
|
|
1774
1762
|
borderRadius: e.borderRadiusLG,
|
|
1775
1763
|
outline: "none",
|
|
1776
1764
|
boxShadow: e.boxShadowSecondary
|
|
1777
|
-
},
|
|
1765
|
+
}, he(e)), {
|
|
1778
1766
|
"&:empty": {
|
|
1779
1767
|
padding: 0,
|
|
1780
1768
|
boxShadow: "none"
|
|
1781
1769
|
},
|
|
1782
1770
|
[`${t}-item-group-title`]: {
|
|
1783
|
-
padding: `${
|
|
1771
|
+
padding: `${h(p)} ${h(c)}`,
|
|
1784
1772
|
color: e.colorTextDescription,
|
|
1785
1773
|
transition: `all ${s}`
|
|
1786
1774
|
},
|
|
@@ -1791,7 +1779,7 @@ const Io = J, yo = (e) => {
|
|
|
1791
1779
|
alignItems: "center"
|
|
1792
1780
|
},
|
|
1793
1781
|
[`${t}-item-icon`]: {
|
|
1794
|
-
minWidth:
|
|
1782
|
+
minWidth: g,
|
|
1795
1783
|
marginInlineEnd: e.marginXS,
|
|
1796
1784
|
fontSize: e.fontSizeSM
|
|
1797
1785
|
},
|
|
@@ -1825,10 +1813,10 @@ const Io = J, yo = (e) => {
|
|
|
1825
1813
|
[`${t}-item, ${t}-submenu-title`]: Object.assign(Object.assign({
|
|
1826
1814
|
display: "flex",
|
|
1827
1815
|
margin: 0,
|
|
1828
|
-
padding: `${
|
|
1816
|
+
padding: `${h(p)} ${h(c)}`,
|
|
1829
1817
|
color: e.colorText,
|
|
1830
1818
|
fontWeight: "normal",
|
|
1831
|
-
fontSize:
|
|
1819
|
+
fontSize: g,
|
|
1832
1820
|
lineHeight: e.lineHeight,
|
|
1833
1821
|
cursor: "pointer",
|
|
1834
1822
|
transition: `all ${s}`,
|
|
@@ -1836,7 +1824,7 @@ const Io = J, yo = (e) => {
|
|
|
1836
1824
|
"&:hover, &-active": {
|
|
1837
1825
|
backgroundColor: e.controlItemBgHover
|
|
1838
1826
|
}
|
|
1839
|
-
},
|
|
1827
|
+
}, he(e)), {
|
|
1840
1828
|
"&-selected": {
|
|
1841
1829
|
color: e.colorPrimary,
|
|
1842
1830
|
backgroundColor: e.controlItemBgActive,
|
|
@@ -1859,150 +1847,150 @@ const Io = J, yo = (e) => {
|
|
|
1859
1847
|
"&-divider": {
|
|
1860
1848
|
height: 1,
|
|
1861
1849
|
// By design
|
|
1862
|
-
margin: `${
|
|
1850
|
+
margin: `${h(e.marginXXS)} 0`,
|
|
1863
1851
|
overflow: "hidden",
|
|
1864
1852
|
lineHeight: 0,
|
|
1865
1853
|
backgroundColor: e.colorSplit
|
|
1866
1854
|
},
|
|
1867
|
-
[`${
|
|
1855
|
+
[`${n}-menu-submenu-expand-icon`]: {
|
|
1868
1856
|
position: "absolute",
|
|
1869
1857
|
insetInlineEnd: e.paddingXS,
|
|
1870
|
-
[`${
|
|
1858
|
+
[`${n}-menu-submenu-arrow-icon`]: {
|
|
1871
1859
|
marginInlineEnd: "0 !important",
|
|
1872
1860
|
color: e.colorTextDescription,
|
|
1873
|
-
fontSize:
|
|
1861
|
+
fontSize: $,
|
|
1874
1862
|
fontStyle: "normal"
|
|
1875
1863
|
}
|
|
1876
1864
|
}
|
|
1877
1865
|
}),
|
|
1878
1866
|
[`${t}-item-group-list`]: {
|
|
1879
|
-
margin: `0 ${
|
|
1867
|
+
margin: `0 ${h(e.marginXS)}`,
|
|
1880
1868
|
padding: 0,
|
|
1881
1869
|
listStyle: "none"
|
|
1882
1870
|
},
|
|
1883
1871
|
[`${t}-submenu-title`]: {
|
|
1884
|
-
paddingInlineEnd: e.calc(
|
|
1872
|
+
paddingInlineEnd: e.calc(c).add(e.fontSizeSM).equal()
|
|
1885
1873
|
},
|
|
1886
1874
|
[`${t}-submenu-vertical`]: {
|
|
1887
1875
|
position: "relative"
|
|
1888
1876
|
},
|
|
1889
|
-
[`${t}-submenu${t}-submenu-disabled ${
|
|
1890
|
-
[`&, ${
|
|
1877
|
+
[`${t}-submenu${t}-submenu-disabled ${n}-menu-submenu-title`]: {
|
|
1878
|
+
[`&, ${n}-menu-submenu-arrow-icon`]: {
|
|
1891
1879
|
color: u,
|
|
1892
1880
|
backgroundColor: m,
|
|
1893
1881
|
cursor: "not-allowed"
|
|
1894
1882
|
}
|
|
1895
1883
|
},
|
|
1896
1884
|
// https://github.com/ant-design/ant-design/issues/19264
|
|
1897
|
-
[`${t}-submenu-selected ${
|
|
1885
|
+
[`${t}-submenu-selected ${n}-menu-submenu-title`]: {
|
|
1898
1886
|
color: e.colorPrimary
|
|
1899
1887
|
}
|
|
1900
1888
|
})
|
|
1901
1889
|
})
|
|
1902
1890
|
},
|
|
1903
1891
|
// Follow code may reuse in other components
|
|
1904
|
-
[re(e, "slide-up"), re(e, "slide-down"),
|
|
1892
|
+
[re(e, "slide-up"), re(e, "slide-down"), Ne(e, "move-up"), Ne(e, "move-down"), Xe(e, "zoom-big")]
|
|
1905
1893
|
];
|
|
1906
|
-
},
|
|
1894
|
+
}, un = (e) => Object.assign(Object.assign({
|
|
1907
1895
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
1908
1896
|
paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
|
|
1909
|
-
},
|
|
1897
|
+
}, Ot({
|
|
1910
1898
|
contentRadius: e.borderRadiusLG,
|
|
1911
1899
|
limitVerticalRadius: !0
|
|
1912
|
-
})),
|
|
1900
|
+
})), Bt(e)), mn = te("Dropdown", (e) => {
|
|
1913
1901
|
const {
|
|
1914
|
-
marginXXS:
|
|
1902
|
+
marginXXS: n,
|
|
1915
1903
|
sizePopupArrow: t,
|
|
1916
|
-
paddingXXS:
|
|
1904
|
+
paddingXXS: o,
|
|
1917
1905
|
componentCls: r
|
|
1918
|
-
} = e, a =
|
|
1906
|
+
} = e, a = oe(e, {
|
|
1919
1907
|
menuCls: `${r}-menu`,
|
|
1920
|
-
dropdownArrowDistance: e.calc(t).div(2).add(
|
|
1921
|
-
dropdownEdgeChildPadding:
|
|
1908
|
+
dropdownArrowDistance: e.calc(t).div(2).add(n).equal(),
|
|
1909
|
+
dropdownEdgeChildPadding: o
|
|
1922
1910
|
});
|
|
1923
|
-
return [
|
|
1924
|
-
},
|
|
1911
|
+
return [cn(a), dn(a)];
|
|
1912
|
+
}, un, {
|
|
1925
1913
|
resetStyle: !1
|
|
1926
|
-
}),
|
|
1927
|
-
var
|
|
1914
|
+
}), de = (e) => {
|
|
1915
|
+
var n;
|
|
1928
1916
|
const {
|
|
1929
1917
|
menu: t,
|
|
1930
|
-
arrow:
|
|
1918
|
+
arrow: o,
|
|
1931
1919
|
prefixCls: r,
|
|
1932
1920
|
children: a,
|
|
1933
1921
|
trigger: i,
|
|
1934
|
-
disabled:
|
|
1922
|
+
disabled: d,
|
|
1935
1923
|
dropdownRender: s,
|
|
1936
|
-
getPopupContainer:
|
|
1937
|
-
overlayClassName:
|
|
1924
|
+
getPopupContainer: p,
|
|
1925
|
+
overlayClassName: g,
|
|
1938
1926
|
rootClassName: S,
|
|
1939
1927
|
overlayStyle: u,
|
|
1940
|
-
open:
|
|
1941
|
-
onOpenChange:
|
|
1928
|
+
open: $,
|
|
1929
|
+
onOpenChange: c,
|
|
1942
1930
|
// Deprecated
|
|
1943
1931
|
visible: m,
|
|
1944
|
-
onVisibleChange:
|
|
1932
|
+
onVisibleChange: v,
|
|
1945
1933
|
mouseEnterDelay: I = 0.15,
|
|
1946
1934
|
mouseLeaveDelay: B = 0.1,
|
|
1947
1935
|
autoAdjustOverflow: x = !0,
|
|
1948
|
-
placement:
|
|
1936
|
+
placement: b = "",
|
|
1949
1937
|
overlay: E,
|
|
1950
1938
|
transitionName: N
|
|
1951
1939
|
} = e, {
|
|
1952
1940
|
getPopupContainer: _,
|
|
1953
1941
|
getPrefixCls: w,
|
|
1954
1942
|
direction: C,
|
|
1955
|
-
dropdown:
|
|
1956
|
-
} = l.useContext(Z),
|
|
1943
|
+
dropdown: f
|
|
1944
|
+
} = l.useContext(Z), j = se("Dropdown");
|
|
1957
1945
|
process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((O) => {
|
|
1958
1946
|
let [U, K] = O;
|
|
1959
|
-
|
|
1960
|
-
}),
|
|
1947
|
+
j.deprecated(!(U in e), U, K);
|
|
1948
|
+
}), j.deprecated(!("overlay" in e), "overlay", "menu"));
|
|
1961
1949
|
const D = l.useMemo(() => {
|
|
1962
1950
|
const O = w();
|
|
1963
|
-
return N !== void 0 ? N :
|
|
1964
|
-
}, [w,
|
|
1951
|
+
return N !== void 0 ? N : b.includes("top") ? `${O}-slide-down` : `${O}-slide-up`;
|
|
1952
|
+
}, [w, b, N]), M = l.useMemo(() => b ? b.includes("Center") ? b.slice(0, b.indexOf("Center")) : b : C === "rtl" ? "bottomRight" : "bottomLeft", [b, C]);
|
|
1965
1953
|
if (process.env.NODE_ENV !== "production") {
|
|
1966
|
-
if (
|
|
1967
|
-
const O =
|
|
1968
|
-
process.env.NODE_ENV !== "production" &&
|
|
1954
|
+
if (b.includes("Center")) {
|
|
1955
|
+
const O = b.slice(0, b.indexOf("Center"));
|
|
1956
|
+
process.env.NODE_ENV !== "production" && j(!b.includes("Center"), "deprecated", `You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${O}' instead.`);
|
|
1969
1957
|
}
|
|
1970
1958
|
[["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((O) => {
|
|
1971
1959
|
let [U, K] = O;
|
|
1972
|
-
|
|
1960
|
+
j.deprecated(!(U in e), U, K);
|
|
1973
1961
|
});
|
|
1974
1962
|
}
|
|
1975
|
-
const y = w("dropdown", r), H =
|
|
1963
|
+
const y = w("dropdown", r), H = Ve(y), [L, k, R] = mn(y, H), [, W] = ut(), V = l.Children.only(kt(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), F = ee(V, {
|
|
1976
1964
|
className: P(`${y}-trigger`, {
|
|
1977
1965
|
[`${y}-rtl`]: C === "rtl"
|
|
1978
1966
|
}, V.props.className),
|
|
1979
|
-
disabled: (
|
|
1980
|
-
}),
|
|
1981
|
-
value:
|
|
1982
|
-
}),
|
|
1983
|
-
|
|
1967
|
+
disabled: (n = V.props.disabled) !== null && n !== void 0 ? n : d
|
|
1968
|
+
}), z = d ? [] : i, X = !!(z != null && z.includes("contextMenu")), [q, G] = rt(!1, {
|
|
1969
|
+
value: $ ?? m
|
|
1970
|
+
}), me = ke((O) => {
|
|
1971
|
+
c == null || c(O, {
|
|
1984
1972
|
source: "trigger"
|
|
1985
|
-
}),
|
|
1986
|
-
}),
|
|
1973
|
+
}), v == null || v(O), G(O);
|
|
1974
|
+
}), pe = P(g, S, k, R, H, f == null ? void 0 : f.className, {
|
|
1987
1975
|
[`${y}-rtl`]: C === "rtl"
|
|
1988
|
-
}),
|
|
1989
|
-
arrowPointAtCenter: typeof
|
|
1976
|
+
}), T = Et({
|
|
1977
|
+
arrowPointAtCenter: typeof o == "object" && o.pointAtCenter,
|
|
1990
1978
|
autoAdjustOverflow: x,
|
|
1991
1979
|
offset: W.marginXXS,
|
|
1992
|
-
arrowWidth:
|
|
1980
|
+
arrowWidth: o ? W.sizePopupArrow : 0,
|
|
1993
1981
|
borderRadius: W.borderRadius
|
|
1994
1982
|
}), A = l.useCallback(() => {
|
|
1995
|
-
t != null && t.selectable && (t != null && t.multiple) || (
|
|
1983
|
+
t != null && t.selectable && (t != null && t.multiple) || (c == null || c(!1, {
|
|
1996
1984
|
source: "menu"
|
|
1997
1985
|
}), G(!1));
|
|
1998
1986
|
}, [t == null ? void 0 : t.selectable, t == null ? void 0 : t.multiple]), Y = () => {
|
|
1999
1987
|
let O;
|
|
2000
|
-
return t != null && t.items ? O = /* @__PURE__ */ l.createElement(
|
|
1988
|
+
return t != null && t.items ? O = /* @__PURE__ */ l.createElement(J, Object.assign({}, t)) : typeof E == "function" ? O = E() : O = E, s && (O = s(O)), O = l.Children.only(typeof O == "string" ? /* @__PURE__ */ l.createElement("span", null, O) : O), /* @__PURE__ */ l.createElement(Jt, {
|
|
2001
1989
|
prefixCls: `${y}-menu`,
|
|
2002
1990
|
rootClassName: P(R, H),
|
|
2003
1991
|
expandIcon: /* @__PURE__ */ l.createElement("span", {
|
|
2004
1992
|
className: `${y}-menu-submenu-arrow`
|
|
2005
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1993
|
+
}, /* @__PURE__ */ l.createElement(ie, {
|
|
2006
1994
|
className: `${y}-menu-submenu-arrow-icon`
|
|
2007
1995
|
})),
|
|
2008
1996
|
mode: "vertical",
|
|
@@ -2012,168 +2000,162 @@ const Io = J, yo = (e) => {
|
|
|
2012
2000
|
let {
|
|
2013
2001
|
mode: K
|
|
2014
2002
|
} = U;
|
|
2015
|
-
process.env.NODE_ENV !== "production" &&
|
|
2003
|
+
process.env.NODE_ENV !== "production" && j(!K || K === "vertical", "usage", `mode="${K}" is not supported for Dropdown's Menu.`);
|
|
2016
2004
|
}
|
|
2017
2005
|
}, O);
|
|
2018
|
-
}, [
|
|
2019
|
-
let
|
|
2006
|
+
}, [ge, et] = We("Dropdown", u == null ? void 0 : u.zIndex);
|
|
2007
|
+
let fe = /* @__PURE__ */ l.createElement(St, Object.assign({
|
|
2020
2008
|
alignPoint: X
|
|
2021
2009
|
}, Q(e, ["rootClassName"]), {
|
|
2022
2010
|
mouseEnterDelay: I,
|
|
2023
2011
|
mouseLeaveDelay: B,
|
|
2024
2012
|
visible: q,
|
|
2025
|
-
builtinPlacements:
|
|
2026
|
-
arrow: !!
|
|
2027
|
-
overlayClassName:
|
|
2013
|
+
builtinPlacements: T,
|
|
2014
|
+
arrow: !!o,
|
|
2015
|
+
overlayClassName: pe,
|
|
2028
2016
|
prefixCls: y,
|
|
2029
|
-
getPopupContainer:
|
|
2017
|
+
getPopupContainer: p || _,
|
|
2030
2018
|
transitionName: D,
|
|
2031
|
-
trigger:
|
|
2019
|
+
trigger: z,
|
|
2032
2020
|
overlay: Y,
|
|
2033
2021
|
placement: M,
|
|
2034
|
-
onVisibleChange:
|
|
2035
|
-
overlayStyle: Object.assign(Object.assign(Object.assign({},
|
|
2036
|
-
zIndex:
|
|
2022
|
+
onVisibleChange: me,
|
|
2023
|
+
overlayStyle: Object.assign(Object.assign(Object.assign({}, f == null ? void 0 : f.style), u), {
|
|
2024
|
+
zIndex: ge
|
|
2037
2025
|
})
|
|
2038
2026
|
}), F);
|
|
2039
|
-
return
|
|
2040
|
-
value:
|
|
2041
|
-
},
|
|
2042
|
-
},
|
|
2043
|
-
|
|
2044
|
-
process.env.NODE_ENV !== "production" && (
|
|
2045
|
-
const
|
|
2027
|
+
return ge && (fe = /* @__PURE__ */ l.createElement(yt.Provider, {
|
|
2028
|
+
value: et
|
|
2029
|
+
}, fe)), L(fe);
|
|
2030
|
+
}, pn = mt(de, "align", void 0, "dropdown", (e) => e), gn = (e) => /* @__PURE__ */ l.createElement(pn, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
|
|
2031
|
+
de._InternalPanelDoNotUseOrYouWillBeFired = gn;
|
|
2032
|
+
process.env.NODE_ENV !== "production" && (de.displayName = "Dropdown");
|
|
2033
|
+
const ce = (e) => {
|
|
2046
2034
|
let {
|
|
2047
|
-
children:
|
|
2035
|
+
children: n
|
|
2048
2036
|
} = e;
|
|
2049
2037
|
const {
|
|
2050
2038
|
getPrefixCls: t
|
|
2051
|
-
} = l.useContext(Z),
|
|
2039
|
+
} = l.useContext(Z), o = t("breadcrumb");
|
|
2052
2040
|
return /* @__PURE__ */ l.createElement("li", {
|
|
2053
|
-
className: `${
|
|
2041
|
+
className: `${o}-separator`,
|
|
2054
2042
|
"aria-hidden": "true"
|
|
2055
|
-
},
|
|
2043
|
+
}, n === "" ? n : n || "/");
|
|
2056
2044
|
};
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
var jo = globalThis && globalThis.__rest || function(e, o) {
|
|
2045
|
+
ce.__ANT_BREADCRUMB_SEPARATOR = !0;
|
|
2046
|
+
var fn = function(e, n) {
|
|
2060
2047
|
var t = {};
|
|
2061
|
-
for (var
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
2065
|
-
o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
|
|
2048
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
2049
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
2050
|
+
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
2066
2051
|
return t;
|
|
2067
2052
|
};
|
|
2068
|
-
function
|
|
2053
|
+
function bn(e, n) {
|
|
2069
2054
|
if (e.title === void 0 || e.title === null)
|
|
2070
2055
|
return null;
|
|
2071
|
-
const t = Object.keys(
|
|
2072
|
-
return typeof e.title == "object" ? e.title : String(e.title).replace(new RegExp(`:(${t})`, "g"), (
|
|
2056
|
+
const t = Object.keys(n).join("|");
|
|
2057
|
+
return typeof e.title == "object" ? e.title : String(e.title).replace(new RegExp(`:(${t})`, "g"), (o, r) => n[r] || o);
|
|
2073
2058
|
}
|
|
2074
|
-
function
|
|
2059
|
+
function Ze(e, n, t, o) {
|
|
2075
2060
|
if (t == null)
|
|
2076
2061
|
return null;
|
|
2077
2062
|
const {
|
|
2078
2063
|
className: r,
|
|
2079
2064
|
onClick: a
|
|
2080
|
-
} =
|
|
2065
|
+
} = n, i = fn(n, ["className", "onClick"]), d = Object.assign(Object.assign({}, Le(i, {
|
|
2081
2066
|
data: !0,
|
|
2082
2067
|
aria: !0
|
|
2083
2068
|
})), {
|
|
2084
2069
|
onClick: a
|
|
2085
2070
|
});
|
|
2086
|
-
return
|
|
2071
|
+
return o !== void 0 ? /* @__PURE__ */ l.createElement("a", Object.assign({}, d, {
|
|
2087
2072
|
className: P(`${e}-link`, r),
|
|
2088
|
-
href:
|
|
2089
|
-
}), t) : /* @__PURE__ */ l.createElement("span", Object.assign({},
|
|
2073
|
+
href: o
|
|
2074
|
+
}), t) : /* @__PURE__ */ l.createElement("span", Object.assign({}, d, {
|
|
2090
2075
|
className: P(`${e}-link`, r)
|
|
2091
2076
|
}), t);
|
|
2092
2077
|
}
|
|
2093
|
-
function
|
|
2094
|
-
return (
|
|
2095
|
-
if (
|
|
2096
|
-
return o
|
|
2097
|
-
const s =
|
|
2098
|
-
return
|
|
2078
|
+
function $n(e, n) {
|
|
2079
|
+
return (o, r, a, i, d) => {
|
|
2080
|
+
if (n)
|
|
2081
|
+
return n(o, r, a, i);
|
|
2082
|
+
const s = bn(o, r);
|
|
2083
|
+
return Ze(e, o, s, d);
|
|
2099
2084
|
};
|
|
2100
2085
|
}
|
|
2101
|
-
var
|
|
2086
|
+
var Ce = function(e, n) {
|
|
2102
2087
|
var t = {};
|
|
2103
|
-
for (var
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
2107
|
-
o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
|
|
2088
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
2089
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
2090
|
+
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
2108
2091
|
return t;
|
|
2109
2092
|
};
|
|
2110
|
-
const
|
|
2093
|
+
const Je = (e) => {
|
|
2111
2094
|
const {
|
|
2112
|
-
prefixCls:
|
|
2095
|
+
prefixCls: n,
|
|
2113
2096
|
separator: t = "/",
|
|
2114
|
-
children:
|
|
2097
|
+
children: o,
|
|
2115
2098
|
menu: r,
|
|
2116
2099
|
overlay: a,
|
|
2117
2100
|
dropdownProps: i,
|
|
2118
|
-
href:
|
|
2101
|
+
href: d
|
|
2119
2102
|
} = e;
|
|
2120
|
-
process.env.NODE_ENV !== "production" &&
|
|
2121
|
-
const
|
|
2103
|
+
process.env.NODE_ENV !== "production" && se("Breadcrumb.Item").deprecated(!("overlay" in e), "overlay", "menu");
|
|
2104
|
+
const p = ((g) => {
|
|
2122
2105
|
if (r || a) {
|
|
2123
2106
|
const S = Object.assign({}, i);
|
|
2124
2107
|
if (r) {
|
|
2125
2108
|
const u = r || {}, {
|
|
2126
|
-
items:
|
|
2127
|
-
} = u,
|
|
2128
|
-
S.menu = Object.assign(Object.assign({},
|
|
2129
|
-
items:
|
|
2109
|
+
items: $
|
|
2110
|
+
} = u, c = Ce(u, ["items"]);
|
|
2111
|
+
S.menu = Object.assign(Object.assign({}, c), {
|
|
2112
|
+
items: $ == null ? void 0 : $.map((m, v) => {
|
|
2130
2113
|
var {
|
|
2131
2114
|
key: I,
|
|
2132
2115
|
title: B,
|
|
2133
2116
|
label: x,
|
|
2134
|
-
path:
|
|
2135
|
-
} = m, E =
|
|
2117
|
+
path: b
|
|
2118
|
+
} = m, E = Ce(m, ["key", "title", "label", "path"]);
|
|
2136
2119
|
let N = x ?? B;
|
|
2137
|
-
return
|
|
2138
|
-
href: `${
|
|
2120
|
+
return b && (N = /* @__PURE__ */ l.createElement("a", {
|
|
2121
|
+
href: `${d}${b}`
|
|
2139
2122
|
}, N)), Object.assign(Object.assign({}, E), {
|
|
2140
|
-
key: I ??
|
|
2123
|
+
key: I ?? v,
|
|
2141
2124
|
label: N
|
|
2142
2125
|
});
|
|
2143
2126
|
})
|
|
2144
2127
|
});
|
|
2145
|
-
} else
|
|
2146
|
-
|
|
2147
|
-
return /* @__PURE__ */ l.createElement(To, Object.assign({
|
|
2128
|
+
} else a && (S.overlay = a);
|
|
2129
|
+
return /* @__PURE__ */ l.createElement(de, Object.assign({
|
|
2148
2130
|
placement: "bottom"
|
|
2149
2131
|
}, S), /* @__PURE__ */ l.createElement("span", {
|
|
2150
|
-
className: `${
|
|
2151
|
-
},
|
|
2132
|
+
className: `${n}-overlay-link`
|
|
2133
|
+
}, g, /* @__PURE__ */ l.createElement(pt, null)));
|
|
2152
2134
|
}
|
|
2153
|
-
return
|
|
2154
|
-
})(
|
|
2155
|
-
return
|
|
2156
|
-
},
|
|
2135
|
+
return g;
|
|
2136
|
+
})(o);
|
|
2137
|
+
return p != null ? /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("li", null, p), t && /* @__PURE__ */ l.createElement(ce, null, t)) : null;
|
|
2138
|
+
}, Qe = (e) => {
|
|
2157
2139
|
const {
|
|
2158
|
-
prefixCls:
|
|
2140
|
+
prefixCls: n,
|
|
2159
2141
|
children: t,
|
|
2160
|
-
href:
|
|
2161
|
-
} = e, r =
|
|
2142
|
+
href: o
|
|
2143
|
+
} = e, r = Ce(e, ["prefixCls", "children", "href"]), {
|
|
2162
2144
|
getPrefixCls: a
|
|
2163
|
-
} = l.useContext(Z), i = a("breadcrumb",
|
|
2164
|
-
return /* @__PURE__ */ l.createElement(
|
|
2145
|
+
} = l.useContext(Z), i = a("breadcrumb", n);
|
|
2146
|
+
return /* @__PURE__ */ l.createElement(Je, Object.assign({}, r, {
|
|
2165
2147
|
prefixCls: i
|
|
2166
|
-
}),
|
|
2148
|
+
}), Ze(i, r, t, o));
|
|
2167
2149
|
};
|
|
2168
|
-
|
|
2169
|
-
const
|
|
2150
|
+
Qe.__ANT_BREADCRUMB_ITEM = !0;
|
|
2151
|
+
const hn = (e) => {
|
|
2170
2152
|
const {
|
|
2171
|
-
componentCls:
|
|
2153
|
+
componentCls: n,
|
|
2172
2154
|
iconCls: t,
|
|
2173
|
-
calc:
|
|
2155
|
+
calc: o
|
|
2174
2156
|
} = e;
|
|
2175
2157
|
return {
|
|
2176
|
-
[
|
|
2158
|
+
[n]: Object.assign(Object.assign({}, Ie(e)), {
|
|
2177
2159
|
color: e.itemColor,
|
|
2178
2160
|
fontSize: e.fontSize,
|
|
2179
2161
|
[t]: {
|
|
@@ -2189,24 +2171,24 @@ const Ho = tt, Do = (e) => {
|
|
|
2189
2171
|
a: Object.assign({
|
|
2190
2172
|
color: e.linkColor,
|
|
2191
2173
|
transition: `color ${e.motionDurationMid}`,
|
|
2192
|
-
padding: `0 ${
|
|
2174
|
+
padding: `0 ${h(e.paddingXXS)}`,
|
|
2193
2175
|
borderRadius: e.borderRadiusSM,
|
|
2194
2176
|
height: e.fontHeight,
|
|
2195
2177
|
display: "inline-block",
|
|
2196
|
-
marginInline:
|
|
2178
|
+
marginInline: o(e.marginXXS).mul(-1).equal(),
|
|
2197
2179
|
"&:hover": {
|
|
2198
2180
|
color: e.linkHoverColor,
|
|
2199
2181
|
backgroundColor: e.colorBgTextHover
|
|
2200
2182
|
}
|
|
2201
|
-
},
|
|
2183
|
+
}, he(e)),
|
|
2202
2184
|
"li:last-child": {
|
|
2203
2185
|
color: e.lastItemColor
|
|
2204
2186
|
},
|
|
2205
|
-
[`${
|
|
2187
|
+
[`${n}-separator`]: {
|
|
2206
2188
|
marginInline: e.separatorMargin,
|
|
2207
2189
|
color: e.separatorColor
|
|
2208
2190
|
},
|
|
2209
|
-
[`${
|
|
2191
|
+
[`${n}-link`]: {
|
|
2210
2192
|
[`
|
|
2211
2193
|
> ${t} + span,
|
|
2212
2194
|
> ${t} + a
|
|
@@ -2214,12 +2196,12 @@ const Ho = tt, Do = (e) => {
|
|
|
2214
2196
|
marginInlineStart: e.marginXXS
|
|
2215
2197
|
}
|
|
2216
2198
|
},
|
|
2217
|
-
[`${
|
|
2199
|
+
[`${n}-overlay-link`]: {
|
|
2218
2200
|
borderRadius: e.borderRadiusSM,
|
|
2219
2201
|
height: e.fontHeight,
|
|
2220
2202
|
display: "inline-block",
|
|
2221
|
-
padding: `0 ${
|
|
2222
|
-
marginInline:
|
|
2203
|
+
padding: `0 ${h(e.paddingXXS)}`,
|
|
2204
|
+
marginInline: o(e.marginXXS).mul(-1).equal(),
|
|
2223
2205
|
[`> ${t}`]: {
|
|
2224
2206
|
marginInlineStart: e.marginXXS,
|
|
2225
2207
|
fontSize: e.fontSizeIcon
|
|
@@ -2243,7 +2225,7 @@ const Ho = tt, Do = (e) => {
|
|
|
2243
2225
|
}
|
|
2244
2226
|
})
|
|
2245
2227
|
};
|
|
2246
|
-
},
|
|
2228
|
+
}, vn = (e) => ({
|
|
2247
2229
|
itemColor: e.colorTextDescription,
|
|
2248
2230
|
lastItemColor: e.colorText,
|
|
2249
2231
|
iconFontSize: e.fontSize,
|
|
@@ -2251,88 +2233,84 @@ const Ho = tt, Do = (e) => {
|
|
|
2251
2233
|
linkHoverColor: e.colorText,
|
|
2252
2234
|
separatorColor: e.colorTextDescription,
|
|
2253
2235
|
separatorMargin: e.marginXS
|
|
2254
|
-
}),
|
|
2255
|
-
const
|
|
2256
|
-
return
|
|
2257
|
-
},
|
|
2258
|
-
var
|
|
2236
|
+
}), Cn = te("Breadcrumb", (e) => {
|
|
2237
|
+
const n = oe(e, {});
|
|
2238
|
+
return hn(n);
|
|
2239
|
+
}, vn);
|
|
2240
|
+
var Me = function(e, n) {
|
|
2259
2241
|
var t = {};
|
|
2260
|
-
for (var
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
2264
|
-
o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
|
|
2242
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
2243
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
2244
|
+
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
2265
2245
|
return t;
|
|
2266
2246
|
};
|
|
2267
|
-
function
|
|
2247
|
+
function Sn(e) {
|
|
2268
2248
|
const {
|
|
2269
|
-
breadcrumbName:
|
|
2249
|
+
breadcrumbName: n,
|
|
2270
2250
|
children: t
|
|
2271
|
-
} = e,
|
|
2272
|
-
title:
|
|
2273
|
-
},
|
|
2251
|
+
} = e, o = Me(e, ["breadcrumbName", "children"]), r = Object.assign({
|
|
2252
|
+
title: n
|
|
2253
|
+
}, o);
|
|
2274
2254
|
return t && (r.menu = {
|
|
2275
2255
|
items: t.map((a) => {
|
|
2276
2256
|
var {
|
|
2277
2257
|
breadcrumbName: i
|
|
2278
|
-
} = a,
|
|
2279
|
-
return Object.assign(Object.assign({},
|
|
2258
|
+
} = a, d = Me(a, ["breadcrumbName"]);
|
|
2259
|
+
return Object.assign(Object.assign({}, d), {
|
|
2280
2260
|
title: i
|
|
2281
2261
|
});
|
|
2282
2262
|
})
|
|
2283
2263
|
}), r;
|
|
2284
2264
|
}
|
|
2285
|
-
function
|
|
2286
|
-
return
|
|
2265
|
+
function In(e, n) {
|
|
2266
|
+
return ot(() => e || (n ? n.map(Sn) : null), [e, n]);
|
|
2287
2267
|
}
|
|
2288
|
-
var
|
|
2268
|
+
var yn = function(e, n) {
|
|
2289
2269
|
var t = {};
|
|
2290
|
-
for (var
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
2294
|
-
o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
|
|
2270
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
2271
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
2272
|
+
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
2295
2273
|
return t;
|
|
2296
2274
|
};
|
|
2297
|
-
const
|
|
2298
|
-
if (
|
|
2299
|
-
return
|
|
2300
|
-
let t = (
|
|
2301
|
-
return Object.keys(e).forEach((
|
|
2302
|
-
t = t.replace(`:${
|
|
2275
|
+
const xn = (e, n) => {
|
|
2276
|
+
if (n === void 0)
|
|
2277
|
+
return n;
|
|
2278
|
+
let t = (n || "").replace(/^\//, "");
|
|
2279
|
+
return Object.keys(e).forEach((o) => {
|
|
2280
|
+
t = t.replace(`:${o}`, e[o]);
|
|
2303
2281
|
}), t;
|
|
2304
|
-
},
|
|
2282
|
+
}, ue = (e) => {
|
|
2305
2283
|
const {
|
|
2306
|
-
prefixCls:
|
|
2284
|
+
prefixCls: n,
|
|
2307
2285
|
separator: t = "/",
|
|
2308
|
-
style:
|
|
2286
|
+
style: o,
|
|
2309
2287
|
className: r,
|
|
2310
2288
|
rootClassName: a,
|
|
2311
2289
|
routes: i,
|
|
2312
|
-
items:
|
|
2290
|
+
items: d,
|
|
2313
2291
|
children: s,
|
|
2314
|
-
itemRender:
|
|
2315
|
-
params:
|
|
2316
|
-
} = e, S =
|
|
2292
|
+
itemRender: p,
|
|
2293
|
+
params: g = {}
|
|
2294
|
+
} = e, S = yn(e, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]), {
|
|
2317
2295
|
getPrefixCls: u,
|
|
2318
|
-
direction:
|
|
2319
|
-
breadcrumb:
|
|
2296
|
+
direction: $,
|
|
2297
|
+
breadcrumb: c
|
|
2320
2298
|
} = l.useContext(Z);
|
|
2321
2299
|
let m;
|
|
2322
|
-
const
|
|
2300
|
+
const v = u("breadcrumb", n), [I, B, x] = Cn(v), b = In(d, i);
|
|
2323
2301
|
if (process.env.NODE_ENV !== "production") {
|
|
2324
|
-
const w =
|
|
2325
|
-
if (w.deprecated(!i, "routes", "items"),
|
|
2326
|
-
const C =
|
|
2327
|
-
w.deprecated(C.length === 0, "Breadcrumb.Item and Breadcrumb.Separator", "items"), C.forEach((
|
|
2328
|
-
|
|
2302
|
+
const w = se("Breadcrumb");
|
|
2303
|
+
if (w.deprecated(!i, "routes", "items"), !b || b.length === 0) {
|
|
2304
|
+
const C = ne(s);
|
|
2305
|
+
w.deprecated(C.length === 0, "Breadcrumb.Item and Breadcrumb.Separator", "items"), C.forEach((f) => {
|
|
2306
|
+
f && process.env.NODE_ENV !== "production" && w(f.type && (f.type.__ANT_BREADCRUMB_ITEM === !0 || f.type.__ANT_BREADCRUMB_SEPARATOR === !0), "usage", "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
|
|
2329
2307
|
});
|
|
2330
2308
|
}
|
|
2331
2309
|
}
|
|
2332
|
-
const E =
|
|
2333
|
-
if (
|
|
2334
|
-
const w = [], C =
|
|
2335
|
-
m =
|
|
2310
|
+
const E = $n(v, p);
|
|
2311
|
+
if (b && b.length > 0) {
|
|
2312
|
+
const w = [], C = d || i;
|
|
2313
|
+
m = b.map((f, j) => {
|
|
2336
2314
|
const {
|
|
2337
2315
|
path: D,
|
|
2338
2316
|
key: M,
|
|
@@ -2343,21 +2321,21 @@ const ko = (e, o) => {
|
|
|
2343
2321
|
className: R,
|
|
2344
2322
|
separator: W,
|
|
2345
2323
|
dropdownProps: V
|
|
2346
|
-
} =
|
|
2324
|
+
} = f, F = xn(g, D);
|
|
2347
2325
|
F !== void 0 && w.push(F);
|
|
2348
|
-
const
|
|
2326
|
+
const z = M ?? j;
|
|
2349
2327
|
if (y === "separator")
|
|
2350
|
-
return /* @__PURE__ */ l.createElement(
|
|
2351
|
-
key:
|
|
2328
|
+
return /* @__PURE__ */ l.createElement(ce, {
|
|
2329
|
+
key: z
|
|
2352
2330
|
}, W);
|
|
2353
|
-
const X = {}, q =
|
|
2331
|
+
const X = {}, q = j === b.length - 1;
|
|
2354
2332
|
H ? X.menu = H : L && (X.overlay = L);
|
|
2355
2333
|
let {
|
|
2356
2334
|
href: G
|
|
2357
|
-
} =
|
|
2358
|
-
return w.length && F !== void 0 && (G = `#/${w.join("/")}`), /* @__PURE__ */ l.createElement(
|
|
2359
|
-
key:
|
|
2360
|
-
}, X,
|
|
2335
|
+
} = f;
|
|
2336
|
+
return w.length && F !== void 0 && (G = `#/${w.join("/")}`), /* @__PURE__ */ l.createElement(Je, Object.assign({
|
|
2337
|
+
key: z
|
|
2338
|
+
}, X, Le(f, {
|
|
2361
2339
|
data: !0,
|
|
2362
2340
|
aria: !0
|
|
2363
2341
|
}), {
|
|
@@ -2366,36 +2344,36 @@ const ko = (e, o) => {
|
|
|
2366
2344
|
href: G,
|
|
2367
2345
|
separator: q ? "" : t,
|
|
2368
2346
|
onClick: k,
|
|
2369
|
-
prefixCls:
|
|
2370
|
-
}), E(
|
|
2347
|
+
prefixCls: v
|
|
2348
|
+
}), E(f, g, C, w, G));
|
|
2371
2349
|
});
|
|
2372
2350
|
} else if (s) {
|
|
2373
|
-
const w =
|
|
2374
|
-
m =
|
|
2351
|
+
const w = ne(s).length;
|
|
2352
|
+
m = ne(s).map((C, f) => {
|
|
2375
2353
|
if (!C)
|
|
2376
2354
|
return C;
|
|
2377
|
-
const
|
|
2355
|
+
const j = f === w - 1;
|
|
2378
2356
|
return ee(C, {
|
|
2379
|
-
separator:
|
|
2357
|
+
separator: j ? "" : t,
|
|
2380
2358
|
// eslint-disable-next-line react/no-array-index-key
|
|
2381
|
-
key:
|
|
2359
|
+
key: f
|
|
2382
2360
|
});
|
|
2383
2361
|
});
|
|
2384
2362
|
}
|
|
2385
|
-
const N = P(
|
|
2386
|
-
[`${
|
|
2387
|
-
}, r, a, B, x), _ = Object.assign(Object.assign({},
|
|
2363
|
+
const N = P(v, c == null ? void 0 : c.className, {
|
|
2364
|
+
[`${v}-rtl`]: $ === "rtl"
|
|
2365
|
+
}, r, a, B, x), _ = Object.assign(Object.assign({}, c == null ? void 0 : c.style), o);
|
|
2388
2366
|
return I(/* @__PURE__ */ l.createElement("nav", Object.assign({
|
|
2389
2367
|
className: N,
|
|
2390
2368
|
style: _
|
|
2391
2369
|
}, S), /* @__PURE__ */ l.createElement("ol", null, m)));
|
|
2392
2370
|
};
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
process.env.NODE_ENV !== "production" && (
|
|
2396
|
-
const
|
|
2371
|
+
ue.Item = Qe;
|
|
2372
|
+
ue.Separator = ce;
|
|
2373
|
+
process.env.NODE_ENV !== "production" && (ue.displayName = "Breadcrumb");
|
|
2374
|
+
const wn = ({ colors: e, typography: n }, t = "wide") => `
|
|
2397
2375
|
&.ant-breadcrumb {
|
|
2398
|
-
font-size: ${n[
|
|
2376
|
+
font-size: ${n[t].body1.fontSize};
|
|
2399
2377
|
|
|
2400
2378
|
.ant-breadcrumb-link,
|
|
2401
2379
|
span[class*="ant-breadcrumb-link"] > a {
|
|
@@ -2438,20 +2416,21 @@ const Wo = ce, Xo = ({ colors: e, borderRadius: o, sizing: t, typography: n }, r
|
|
|
2438
2416
|
background: none !important;
|
|
2439
2417
|
}
|
|
2440
2418
|
}
|
|
2441
|
-
`,
|
|
2442
|
-
${({ isDisabled: e }) => e && `
|
|
2419
|
+
`, Wn = Re.div`
|
|
2420
|
+
${({ $isDisabled: e }) => e && `
|
|
2443
2421
|
cursor: not-allowed;
|
|
2444
2422
|
.ant-breadcrumb {
|
|
2445
2423
|
pointer-events: none;
|
|
2446
2424
|
opacity: 0.5;
|
|
2447
2425
|
}
|
|
2448
2426
|
`}
|
|
2449
|
-
|
|
2450
|
-
|
|
2427
|
+
opacity: ${({ $isDisabled: e }) => e ? 0.5 : 1};
|
|
2428
|
+
`, Xn = Re(ue)`
|
|
2429
|
+
${({ theme: e, breakpoint: n }) => e && wn(e, n)}
|
|
2451
2430
|
`;
|
|
2452
2431
|
export {
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2432
|
+
Xn as Breadcrumb,
|
|
2433
|
+
Wn as BreadcrumbWrapper,
|
|
2434
|
+
Xn as default,
|
|
2435
|
+
wn as getGenesisClass
|
|
2457
2436
|
};
|