@gobolt/genesis 0.0.7 → 0.0.8
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 +8 -2
- package/dist/AntdIcon-c395a1c4.js +204 -0
- package/dist/CheckOutlined-52d9ac25.js +29 -0
- package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-ddc51e7e.js} +11 -8
- package/dist/CloseOutlined-14b8bba1.js +16 -0
- package/dist/Compact-c39ed20d.js +179 -0
- package/dist/ContextIsolator-b09b2c52.js +20 -0
- package/dist/DownOutlined-64a4732a.js +206 -0
- package/dist/EllipsisOutlined-60122660.js +1115 -0
- package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-23ef9812.js} +22 -16
- package/dist/InfoCircleFilled-c5f90c20.js +16 -0
- package/dist/Overflow-a570fa69.js +361 -0
- package/dist/RightOutlined-83515eb4.js +16 -0
- package/dist/SearchOutlined-a9014e08.js +16 -0
- package/dist/{TextArea-3MOYYuAQ.js → TextArea-20825221.js} +597 -582
- package/dist/{button-BNV2qdrP.js → button-fa1c119c.js} +287 -280
- package/dist/collapse-345bc884.js +20 -0
- package/dist/compact-item-b8f85aa6.js +75 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/Badge.js +102 -0
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
- package/dist/components/Badge/__tests__/Badge.test.js +72 -0
- package/dist/components/Badge/icons/ASN.d.ts +2 -0
- package/dist/components/Badge/icons/ASN.js +23 -0
- package/dist/components/Badge/icons/Appointment.d.ts +2 -0
- package/dist/components/Badge/icons/Appointment.js +23 -0
- package/dist/components/Badge/icons/Inventory.d.ts +2 -0
- package/dist/components/Badge/icons/Inventory.js +23 -0
- package/dist/components/Badge/icons/Parcel.d.ts +2 -0
- package/dist/components/Badge/icons/Parcel.js +23 -0
- package/dist/components/Badge/icons/Product.d.ts +2 -0
- package/dist/components/Badge/icons/Product.js +23 -0
- package/dist/components/Badge/icons/Route.d.ts +2 -0
- package/dist/components/Badge/icons/Route.js +23 -0
- package/dist/components/Badge/icons/Shipment.d.ts +2 -0
- package/dist/components/Badge/icons/Shipment.js +23 -0
- package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
- package/dist/components/Badge/icons/ShoppingCart.js +23 -0
- package/dist/components/Badge/icons/System.d.ts +2 -0
- package/dist/components/Badge/icons/System.js +23 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +23 -0
- package/dist/components/Badge/styles.d.ts +3 -0
- package/dist/components/Badge/styles.js +35 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +27 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +70 -0
- package/dist/components/Breadcrumb/index.d.ts +3 -0
- package/dist/components/Breadcrumb/index.js +27 -0
- package/dist/components/Breadcrumb/styles.d.ts +23 -0
- package/dist/components/Breadcrumb/styles.js +2457 -0
- package/dist/components/Button/Button.js +42 -0
- package/dist/components/Button/__tests__/Button.test.js +61 -0
- package/dist/components/Button/index.js +22 -0
- package/dist/components/{atoms/button → Button}/styles.js +30 -19
- package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
- package/dist/components/Checkbox/Checkbox.js +70 -0
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +64 -0
- package/dist/components/Checkbox/index.js +49 -0
- package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +1 -3
- package/dist/components/{atoms/checkbox → Checkbox}/styles.js +165 -157
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +72 -0
- package/dist/components/ErrorBoundaryFallback/index.js +51 -0
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +3 -0
- package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +38 -34
- package/dist/components/{molecules/form → Form}/Form.d.ts +2 -4
- package/dist/components/Form/Form.js +49 -0
- package/dist/components/Form/__stories__/FormStory.js +130 -0
- package/dist/components/Form/index.js +48 -0
- package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
- package/dist/components/Input/Input.js +42 -0
- package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
- package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
- package/dist/components/Input/__tests__/Input.test.js +69 -0
- package/dist/components/Input/index.js +31 -0
- package/dist/components/{atoms/input → Input}/styles.d.ts +2 -3
- package/dist/components/Input/styles.js +542 -0
- package/dist/components/Message/Message.d.ts +13 -0
- package/dist/components/Message/Message.js +105 -0
- package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
- package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
- package/dist/components/Message/__tests__/Message.test.js +88 -0
- package/dist/components/Message/index.d.ts +2 -0
- package/dist/components/Message/index.js +50 -0
- package/dist/components/Message/styles.d.ts +5 -0
- package/dist/components/Message/styles.js +35 -0
- package/dist/components/Notification/Notification.d.ts +16 -0
- package/dist/components/Notification/Notification.js +1436 -0
- package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
- package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/components/Notification/__tests__/Notification.test.js +76 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Notification/index.js +61 -0
- package/dist/components/Notification/styles.d.ts +6 -0
- package/dist/components/Notification/styles.js +49 -0
- package/dist/components/Radio/Radio.d.ts +14 -0
- package/dist/components/Radio/Radio.js +114 -0
- package/dist/components/Radio/RadioGroup.d.ts +12 -0
- package/dist/components/Radio/RadioGroup.js +86 -0
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.js +85 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +58 -0
- package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioChecked.js +18 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
- package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
- package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioUnchecked.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
- package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
- package/dist/components/{atoms/select → Select}/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +48 -0
- package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
- package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/Select/__tests__/Select.test.js +101 -0
- package/dist/components/Select/index.js +30 -0
- package/dist/components/{atoms/select → Select}/styles.d.ts +4 -1
- package/dist/components/Select/styles.js +3723 -0
- package/dist/components/Toast/Toast.d.ts +14 -0
- package/dist/components/Toast/Toast.js +48 -0
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
- package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +63 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +48 -0
- package/dist/components/Toast/styles.d.ts +5 -0
- package/dist/components/Toast/styles.js +39 -0
- package/dist/components/{atoms/typography → Typography}/Typography.d.ts +2 -1
- package/dist/components/Typography/Typography.js +48 -0
- package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +60 -0
- package/dist/components/Typography/index.js +48 -0
- package/dist/components/Typography/styles.d.ts +7 -0
- package/dist/components/Typography/styles.js +55 -0
- package/dist/components/index.d.ts +18 -14
- package/dist/components/index.js +70 -14
- package/dist/constants/index.d.ts +104 -0
- package/dist/constants/index.js +41 -7
- package/dist/{context-CZsFJmh6.js → context-3b8a39af.js} +547 -536
- package/dist/genesis/GenesisThemeBreakdown.js +69 -22
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
- package/dist/genesis/GenesisThemeDemo.js +53 -4
- package/dist/genesis/styles.d.ts +2 -6
- package/dist/genesis/styles.js +1144 -2210
- package/dist/index-0a886e53.js +100 -0
- package/dist/{index-SAAXFt-P.js → index-0b9ee239.js} +347 -338
- package/dist/index-1a33c134.js +1389 -0
- package/dist/index-4003d75b.js +3748 -0
- package/dist/{index-D1v_7IIx.js → index-501fc13d.js} +369 -343
- package/dist/index-89035ea5.js +3242 -0
- package/dist/{index-BQO27mgE.js → index-8c8d2d0c.js} +123 -122
- package/dist/{index-C7kFNqp2.js → index-e2b72ca8.js} +107 -102
- package/dist/index.d.ts +1 -0
- package/dist/index.js +77 -18
- package/dist/{isVisible-CNQjrJPN.js → isVisible-729780f5.js} +110 -82
- package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-b7491176.js} +103 -56
- package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-00ba4687.js} +16 -26
- package/dist/presets-83ccb923.js +787 -0
- package/dist/providers/GenesisProvider.d.ts +5 -0
- package/dist/providers/GenesisProvider.js +59 -5
- package/dist/providers/ThemeProvider.d.ts +2 -1
- package/dist/providers/ThemeProvider.js +16 -11
- package/dist/providers/ToastProvider.d.ts +6 -0
- package/dist/providers/ToastProvider.js +49 -0
- package/dist/providers/ToastWrapper.d.ts +7 -0
- package/dist/providers/ToastWrapper.js +56 -0
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
- package/dist/providers/index.d.ts +3 -2
- package/dist/providers/index.js +51 -4
- package/dist/setup-aaca7b6f.js +21158 -0
- package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-02f500bc.js} +134 -72
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +54 -18
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +51 -15
- package/dist/styles/design-tokens/variables.d.ts +7 -7
- package/dist/styles/design-tokens/variables.js +48 -48
- package/dist/styles/global-styles.js +4 -3
- package/dist/styles/theme/genesis-theme.d.ts +3 -0
- package/dist/styles/theme/genesis-theme.js +402 -263
- package/dist/styles/theme/global-styles.js +4 -3
- package/dist/styles/theme/index.js +5 -4
- package/dist/test/setup.js +46 -2
- package/dist/useVariants-a0d64298.js +30 -0
- package/dist/utils/isAllEnglishString.js +2 -1
- package/package.json +34 -28
- package/dist/AntdIcon-Bsnbyy6g.js +0 -200
- package/dist/CheckOutlined-DAynWe12.js +0 -527
- package/dist/Compact-CJBo3f0u.js +0 -185
- package/dist/ContextIsolator-CGkdKtc3.js +0 -20
- package/dist/Form-Cylpi4M4.js +0 -1815
- package/dist/Overflow-CP1M4Z0s.js +0 -369
- package/dist/compact-item-DH13cl8A.js +0 -61
- package/dist/components/atoms/button/Button.js +0 -27
- package/dist/components/atoms/button/index.js +0 -4
- package/dist/components/atoms/checkbox/Checkbox.js +0 -13
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +0 -18
- package/dist/components/atoms/checkbox/index.js +0 -4
- package/dist/components/atoms/index.d.ts +0 -1
- package/dist/components/atoms/index.js +0 -3
- package/dist/components/atoms/input/Input.js +0 -12
- package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
- package/dist/components/atoms/input/index.js +0 -4
- package/dist/components/atoms/input/styles.js +0 -415
- package/dist/components/atoms/select/Select.js +0 -24
- package/dist/components/atoms/select/__tests__/Select.test.js +0 -10735
- package/dist/components/atoms/select/index.js +0 -4
- package/dist/components/atoms/select/styles.js +0 -3868
- package/dist/components/atoms/typography/Typography.js +0 -44
- package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
- package/dist/components/atoms/typography/index.js +0 -4
- package/dist/components/atoms/typography/styles.d.ts +0 -11
- package/dist/components/atoms/typography/styles.js +0 -28
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
- package/dist/components/molecules/error-boundary-fallback/index.js +0 -4
- package/dist/components/molecules/error-boundary-fallback/styles.d.ts +0 -1
- package/dist/components/molecules/form/Form.js +0 -7
- package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
- package/dist/components/molecules/form/index.js +0 -4
- package/dist/index-3MWkSVA1.js +0 -96
- package/dist/index-BPtFqhcp.js +0 -19110
- package/dist/index-BWys7dkb.js +0 -4462
- package/dist/index-VDH3iLaC.js +0 -884
- package/dist/setup-CMYVZCPF.js +0 -33883
- package/dist/useVariants-CEpw6Ww6.js +0 -29
- /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
- /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/Button.d.ts +0 -0
- /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
- /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
- /package/dist/components/{atoms/button → Button}/styles.d.ts +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/ErrorBoundaryFallback.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
- /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
- /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
- /package/dist/{presetColors-Cl8UP3Nw.js → presetColors-ccf8cb4c.js} +0 -0
- /package/dist/{reactNode-sKPeiqPL.js → reactNode-f4391605.js} +0 -0
package/dist/genesis/styles.js
CHANGED
|
@@ -1,63 +1,74 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { c as
|
|
6
|
-
import { o as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { u as
|
|
15
|
-
|
|
1
|
+
import { d as Yt } from "../styled-components.browser.esm-02f500bc.js";
|
|
2
|
+
import { A as wa } from "../index-501fc13d.js";
|
|
3
|
+
import * as l from "react";
|
|
4
|
+
import Ea, { createContext as Pa, useState as U, useRef as ee, useEffect as me, useMemo as Qt } from "react";
|
|
5
|
+
import { c as E, a as he, f as B, _ as le, d as vt, h as te, e as We, w as Oa } from "../presets-83ccb923.js";
|
|
6
|
+
import { o as Ve, u as Bt, t as Ta } from "../isVisible-729780f5.js";
|
|
7
|
+
import { g as ft, m as gt, p as u, C as be, v as ct, w as Dt, c as Na, b as Ia, k as Ra, A as za, t as mt, o as Zt, r as bt, O as pt, H as dt, E as Ke } from "../index-4003d75b.js";
|
|
8
|
+
import { a as Jt } from "../Compact-c39ed20d.js";
|
|
9
|
+
import { K as Ma, a as Ce, c as La, g as ja } from "../index-1a33c134.js";
|
|
10
|
+
import { C as Ba } from "../CloseOutlined-14b8bba1.js";
|
|
11
|
+
import { E as Da, M as Aa, c as Ha, a as ka } from "../EllipsisOutlined-60122660.js";
|
|
12
|
+
import { A as Ga } from "../AntdIcon-c395a1c4.js";
|
|
13
|
+
import { R as rt } from "../index-8c8d2d0c.js";
|
|
14
|
+
import { u as Wa } from "../context-3b8a39af.js";
|
|
15
|
+
import { i as At } from "../Overflow-a570fa69.js";
|
|
16
|
+
import "../CheckOutlined-52d9ac25.js";
|
|
17
|
+
import "../index-0b9ee239.js";
|
|
18
|
+
import "../ContextIsolator-b09b2c52.js";
|
|
19
|
+
import "../reactNode-f4391605.js";
|
|
20
|
+
import "../presetColors-ccf8cb4c.js";
|
|
21
|
+
import "../TextArea-20825221.js";
|
|
22
|
+
import "../CloseCircleFilled-ddc51e7e.js";
|
|
23
|
+
import "../useVariants-a0d64298.js";
|
|
24
|
+
import "../compact-item-b8f85aa6.js";
|
|
25
|
+
import "react-dom";
|
|
26
|
+
const Va = (e) => {
|
|
16
27
|
const {
|
|
17
28
|
prefixCls: t,
|
|
18
29
|
className: a,
|
|
19
30
|
style: n,
|
|
20
31
|
size: r,
|
|
21
32
|
shape: o
|
|
22
|
-
} = e,
|
|
33
|
+
} = e, s = E({
|
|
23
34
|
[`${t}-lg`]: r === "large",
|
|
24
35
|
[`${t}-sm`]: r === "small"
|
|
25
|
-
}),
|
|
36
|
+
}), i = E({
|
|
26
37
|
[`${t}-circle`]: o === "circle",
|
|
27
38
|
[`${t}-square`]: o === "square",
|
|
28
39
|
[`${t}-round`]: o === "round"
|
|
29
|
-
}), c =
|
|
40
|
+
}), c = l.useMemo(() => typeof r == "number" ? {
|
|
30
41
|
width: r,
|
|
31
42
|
height: r,
|
|
32
43
|
lineHeight: `${r}px`
|
|
33
44
|
} : {}, [r]);
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
className:
|
|
45
|
+
return /* @__PURE__ */ l.createElement("span", {
|
|
46
|
+
className: E(t, s, i, a),
|
|
36
47
|
style: Object.assign(Object.assign({}, c), n)
|
|
37
48
|
});
|
|
38
|
-
},
|
|
49
|
+
}, qe = Va, Ka = new Ma("ant-skeleton-loading", {
|
|
39
50
|
"0%": {
|
|
40
51
|
backgroundPosition: "100% 50%"
|
|
41
52
|
},
|
|
42
53
|
"100%": {
|
|
43
54
|
backgroundPosition: "0 50%"
|
|
44
55
|
}
|
|
45
|
-
}),
|
|
56
|
+
}), Fe = (e) => ({
|
|
46
57
|
height: e,
|
|
47
|
-
lineHeight:
|
|
48
|
-
}),
|
|
58
|
+
lineHeight: u(e)
|
|
59
|
+
}), Re = (e) => Object.assign({
|
|
49
60
|
width: e
|
|
50
|
-
},
|
|
61
|
+
}, Fe(e)), qa = (e) => ({
|
|
51
62
|
background: e.skeletonLoadingBackground,
|
|
52
63
|
backgroundSize: "400% 100%",
|
|
53
|
-
animationName:
|
|
64
|
+
animationName: Ka,
|
|
54
65
|
animationDuration: e.skeletonLoadingMotionDuration,
|
|
55
66
|
animationTimingFunction: "ease",
|
|
56
67
|
animationIterationCount: "infinite"
|
|
57
|
-
}),
|
|
68
|
+
}), it = (e, t) => Object.assign({
|
|
58
69
|
width: t(e).mul(5).equal(),
|
|
59
70
|
minWidth: t(e).mul(5).equal()
|
|
60
|
-
},
|
|
71
|
+
}, Fe(e)), Fa = (e) => {
|
|
61
72
|
const {
|
|
62
73
|
skeletonAvatarCls: t,
|
|
63
74
|
gradientFromColor: a,
|
|
@@ -70,36 +81,36 @@ const nn = (e) => {
|
|
|
70
81
|
display: "inline-block",
|
|
71
82
|
verticalAlign: "top",
|
|
72
83
|
background: a
|
|
73
|
-
},
|
|
84
|
+
}, Re(n)),
|
|
74
85
|
[`${t}${t}-circle`]: {
|
|
75
86
|
borderRadius: "50%"
|
|
76
87
|
},
|
|
77
|
-
[`${t}${t}-lg`]: Object.assign({},
|
|
78
|
-
[`${t}${t}-sm`]: Object.assign({},
|
|
88
|
+
[`${t}${t}-lg`]: Object.assign({}, Re(r)),
|
|
89
|
+
[`${t}${t}-sm`]: Object.assign({}, Re(o))
|
|
79
90
|
};
|
|
80
|
-
},
|
|
91
|
+
}, Xa = (e) => {
|
|
81
92
|
const {
|
|
82
93
|
controlHeight: t,
|
|
83
94
|
borderRadiusSM: a,
|
|
84
95
|
skeletonInputCls: n,
|
|
85
96
|
controlHeightLG: r,
|
|
86
97
|
controlHeightSM: o,
|
|
87
|
-
gradientFromColor:
|
|
88
|
-
calc:
|
|
98
|
+
gradientFromColor: s,
|
|
99
|
+
calc: i
|
|
89
100
|
} = e;
|
|
90
101
|
return {
|
|
91
102
|
[n]: Object.assign({
|
|
92
103
|
display: "inline-block",
|
|
93
104
|
verticalAlign: "top",
|
|
94
|
-
background:
|
|
105
|
+
background: s,
|
|
95
106
|
borderRadius: a
|
|
96
|
-
},
|
|
97
|
-
[`${n}-lg`]: Object.assign({},
|
|
98
|
-
[`${n}-sm`]: Object.assign({},
|
|
107
|
+
}, it(t, i)),
|
|
108
|
+
[`${n}-lg`]: Object.assign({}, it(r, i)),
|
|
109
|
+
[`${n}-sm`]: Object.assign({}, it(o, i))
|
|
99
110
|
};
|
|
100
|
-
},
|
|
111
|
+
}, Ht = (e) => Object.assign({
|
|
101
112
|
width: e
|
|
102
|
-
},
|
|
113
|
+
}, Fe(e)), Ua = (e) => {
|
|
103
114
|
const {
|
|
104
115
|
skeletonImageCls: t,
|
|
105
116
|
imageSizeBase: a,
|
|
@@ -115,11 +126,11 @@ const nn = (e) => {
|
|
|
115
126
|
verticalAlign: "middle",
|
|
116
127
|
background: n,
|
|
117
128
|
borderRadius: r
|
|
118
|
-
},
|
|
129
|
+
}, Ht(o(a).mul(2).equal())), {
|
|
119
130
|
[`${t}-path`]: {
|
|
120
131
|
fill: "#bfbfbf"
|
|
121
132
|
},
|
|
122
|
-
[`${t}-svg`]: Object.assign(Object.assign({},
|
|
133
|
+
[`${t}-svg`]: Object.assign(Object.assign({}, Ht(a)), {
|
|
123
134
|
maxWidth: o(a).mul(4).equal(),
|
|
124
135
|
maxHeight: o(a).mul(4).equal()
|
|
125
136
|
}),
|
|
@@ -131,7 +142,7 @@ const nn = (e) => {
|
|
|
131
142
|
borderRadius: "50%"
|
|
132
143
|
}
|
|
133
144
|
};
|
|
134
|
-
},
|
|
145
|
+
}, ot = (e, t, a) => {
|
|
135
146
|
const {
|
|
136
147
|
skeletonButtonCls: n
|
|
137
148
|
} = e;
|
|
@@ -145,54 +156,54 @@ const nn = (e) => {
|
|
|
145
156
|
borderRadius: t
|
|
146
157
|
}
|
|
147
158
|
};
|
|
148
|
-
},
|
|
159
|
+
}, lt = (e, t) => Object.assign({
|
|
149
160
|
width: t(e).mul(2).equal(),
|
|
150
161
|
minWidth: t(e).mul(2).equal()
|
|
151
|
-
},
|
|
162
|
+
}, Fe(e)), Ya = (e) => {
|
|
152
163
|
const {
|
|
153
164
|
borderRadiusSM: t,
|
|
154
165
|
skeletonButtonCls: a,
|
|
155
166
|
controlHeight: n,
|
|
156
167
|
controlHeightLG: r,
|
|
157
168
|
controlHeightSM: o,
|
|
158
|
-
gradientFromColor:
|
|
159
|
-
calc:
|
|
169
|
+
gradientFromColor: s,
|
|
170
|
+
calc: i
|
|
160
171
|
} = e;
|
|
161
172
|
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
162
173
|
[a]: Object.assign({
|
|
163
174
|
display: "inline-block",
|
|
164
175
|
verticalAlign: "top",
|
|
165
|
-
background:
|
|
176
|
+
background: s,
|
|
166
177
|
borderRadius: t,
|
|
167
|
-
width:
|
|
168
|
-
minWidth:
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
[`${a}-lg`]: Object.assign({},
|
|
172
|
-
}),
|
|
173
|
-
[`${a}-sm`]: Object.assign({},
|
|
174
|
-
}),
|
|
175
|
-
},
|
|
178
|
+
width: i(n).mul(2).equal(),
|
|
179
|
+
minWidth: i(n).mul(2).equal()
|
|
180
|
+
}, lt(n, i))
|
|
181
|
+
}, ot(e, n, a)), {
|
|
182
|
+
[`${a}-lg`]: Object.assign({}, lt(r, i))
|
|
183
|
+
}), ot(e, r, `${a}-lg`)), {
|
|
184
|
+
[`${a}-sm`]: Object.assign({}, lt(o, i))
|
|
185
|
+
}), ot(e, o, `${a}-sm`));
|
|
186
|
+
}, Qa = (e) => {
|
|
176
187
|
const {
|
|
177
188
|
componentCls: t,
|
|
178
189
|
skeletonAvatarCls: a,
|
|
179
190
|
skeletonTitleCls: n,
|
|
180
191
|
skeletonParagraphCls: r,
|
|
181
192
|
skeletonButtonCls: o,
|
|
182
|
-
skeletonInputCls:
|
|
183
|
-
skeletonImageCls:
|
|
193
|
+
skeletonInputCls: s,
|
|
194
|
+
skeletonImageCls: i,
|
|
184
195
|
controlHeight: c,
|
|
185
|
-
controlHeightLG:
|
|
186
|
-
controlHeightSM:
|
|
187
|
-
gradientFromColor:
|
|
188
|
-
padding:
|
|
189
|
-
marginSM:
|
|
190
|
-
borderRadius:
|
|
191
|
-
titleHeight:
|
|
192
|
-
blockRadius:
|
|
193
|
-
paragraphLiHeight:
|
|
194
|
-
controlHeightXS:
|
|
195
|
-
paragraphMarginTop:
|
|
196
|
+
controlHeightLG: d,
|
|
197
|
+
controlHeightSM: g,
|
|
198
|
+
gradientFromColor: f,
|
|
199
|
+
padding: b,
|
|
200
|
+
marginSM: C,
|
|
201
|
+
borderRadius: T,
|
|
202
|
+
titleHeight: p,
|
|
203
|
+
blockRadius: O,
|
|
204
|
+
paragraphLiHeight: y,
|
|
205
|
+
controlHeightXS: S,
|
|
206
|
+
paragraphMarginTop: P
|
|
196
207
|
} = e;
|
|
197
208
|
return {
|
|
198
209
|
[t]: {
|
|
@@ -200,19 +211,19 @@ const nn = (e) => {
|
|
|
200
211
|
width: "100%",
|
|
201
212
|
[`${t}-header`]: {
|
|
202
213
|
display: "table-cell",
|
|
203
|
-
paddingInlineEnd:
|
|
214
|
+
paddingInlineEnd: b,
|
|
204
215
|
verticalAlign: "top",
|
|
205
216
|
// Avatar
|
|
206
217
|
[a]: Object.assign({
|
|
207
218
|
display: "inline-block",
|
|
208
219
|
verticalAlign: "top",
|
|
209
|
-
background:
|
|
210
|
-
},
|
|
220
|
+
background: f
|
|
221
|
+
}, Re(c)),
|
|
211
222
|
[`${a}-circle`]: {
|
|
212
223
|
borderRadius: "50%"
|
|
213
224
|
},
|
|
214
|
-
[`${a}-lg`]: Object.assign({},
|
|
215
|
-
[`${a}-sm`]: Object.assign({},
|
|
225
|
+
[`${a}-lg`]: Object.assign({}, Re(d)),
|
|
226
|
+
[`${a}-sm`]: Object.assign({}, Re(g))
|
|
216
227
|
},
|
|
217
228
|
[`${t}-content`]: {
|
|
218
229
|
display: "table-cell",
|
|
@@ -221,11 +232,11 @@ const nn = (e) => {
|
|
|
221
232
|
// Title
|
|
222
233
|
[n]: {
|
|
223
234
|
width: "100%",
|
|
224
|
-
height:
|
|
225
|
-
background:
|
|
226
|
-
borderRadius:
|
|
235
|
+
height: p,
|
|
236
|
+
background: f,
|
|
237
|
+
borderRadius: O,
|
|
227
238
|
[`+ ${r}`]: {
|
|
228
|
-
marginBlockStart:
|
|
239
|
+
marginBlockStart: g
|
|
229
240
|
}
|
|
230
241
|
},
|
|
231
242
|
// paragraph
|
|
@@ -233,12 +244,12 @@ const nn = (e) => {
|
|
|
233
244
|
padding: 0,
|
|
234
245
|
"> li": {
|
|
235
246
|
width: "100%",
|
|
236
|
-
height:
|
|
247
|
+
height: y,
|
|
237
248
|
listStyle: "none",
|
|
238
|
-
background:
|
|
239
|
-
borderRadius:
|
|
249
|
+
background: f,
|
|
250
|
+
borderRadius: O,
|
|
240
251
|
"+ li": {
|
|
241
|
-
marginBlockStart:
|
|
252
|
+
marginBlockStart: S
|
|
242
253
|
}
|
|
243
254
|
}
|
|
244
255
|
},
|
|
@@ -248,16 +259,16 @@ const nn = (e) => {
|
|
|
248
259
|
},
|
|
249
260
|
[`&-round ${t}-content`]: {
|
|
250
261
|
[`${n}, ${r} > li`]: {
|
|
251
|
-
borderRadius:
|
|
262
|
+
borderRadius: T
|
|
252
263
|
}
|
|
253
264
|
}
|
|
254
265
|
},
|
|
255
266
|
[`${t}-with-avatar ${t}-content`]: {
|
|
256
267
|
// Title
|
|
257
268
|
[n]: {
|
|
258
|
-
marginBlockStart:
|
|
269
|
+
marginBlockStart: C,
|
|
259
270
|
[`+ ${r}`]: {
|
|
260
|
-
marginBlockStart:
|
|
271
|
+
marginBlockStart: P
|
|
261
272
|
}
|
|
262
273
|
}
|
|
263
274
|
},
|
|
@@ -265,14 +276,14 @@ const nn = (e) => {
|
|
|
265
276
|
[`${t}${t}-element`]: Object.assign(Object.assign(Object.assign(Object.assign({
|
|
266
277
|
display: "inline-block",
|
|
267
278
|
width: "auto"
|
|
268
|
-
},
|
|
279
|
+
}, Ya(e)), Fa(e)), Xa(e)), Ua(e)),
|
|
269
280
|
// Skeleton Block Button, Input
|
|
270
281
|
[`${t}${t}-block`]: {
|
|
271
282
|
width: "100%",
|
|
272
283
|
[o]: {
|
|
273
284
|
width: "100%"
|
|
274
285
|
},
|
|
275
|
-
[
|
|
286
|
+
[s]: {
|
|
276
287
|
width: "100%"
|
|
277
288
|
}
|
|
278
289
|
},
|
|
@@ -283,12 +294,12 @@ const nn = (e) => {
|
|
|
283
294
|
${r} > li,
|
|
284
295
|
${a},
|
|
285
296
|
${o},
|
|
286
|
-
${
|
|
287
|
-
${
|
|
288
|
-
`]: Object.assign({},
|
|
297
|
+
${s},
|
|
298
|
+
${i}
|
|
299
|
+
`]: Object.assign({}, qa(e))
|
|
289
300
|
}
|
|
290
301
|
};
|
|
291
|
-
},
|
|
302
|
+
}, Za = (e) => {
|
|
292
303
|
const {
|
|
293
304
|
colorFillContent: t,
|
|
294
305
|
colorFill: a
|
|
@@ -303,11 +314,11 @@ const nn = (e) => {
|
|
|
303
314
|
paragraphMarginTop: e.marginLG + e.marginXXS,
|
|
304
315
|
paragraphLiHeight: e.controlHeight / 2
|
|
305
316
|
};
|
|
306
|
-
},
|
|
317
|
+
}, ze = ft("Skeleton", (e) => {
|
|
307
318
|
const {
|
|
308
319
|
componentCls: t,
|
|
309
320
|
calc: a
|
|
310
|
-
} = e, n =
|
|
321
|
+
} = e, n = gt(e, {
|
|
311
322
|
skeletonAvatarCls: `${t}-avatar`,
|
|
312
323
|
skeletonTitleCls: `${t}-title`,
|
|
313
324
|
skeletonParagraphCls: `${t}-paragraph`,
|
|
@@ -320,50 +331,50 @@ const nn = (e) => {
|
|
|
320
331
|
skeletonLoadingBackground: `linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,
|
|
321
332
|
skeletonLoadingMotionDuration: "1.4s"
|
|
322
333
|
});
|
|
323
|
-
return [
|
|
324
|
-
},
|
|
334
|
+
return [Qa(n)];
|
|
335
|
+
}, Za, {
|
|
325
336
|
deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
|
|
326
|
-
}),
|
|
337
|
+
}), Ja = (e) => {
|
|
327
338
|
const {
|
|
328
339
|
prefixCls: t,
|
|
329
340
|
className: a,
|
|
330
341
|
rootClassName: n,
|
|
331
342
|
active: r,
|
|
332
343
|
shape: o = "circle",
|
|
333
|
-
size:
|
|
344
|
+
size: s = "default"
|
|
334
345
|
} = e, {
|
|
335
|
-
getPrefixCls:
|
|
336
|
-
} =
|
|
346
|
+
getPrefixCls: i
|
|
347
|
+
} = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = Ve(e, ["prefixCls", "className"]), C = E(c, `${c}-element`, {
|
|
337
348
|
[`${c}-active`]: r
|
|
338
|
-
}, a, n,
|
|
339
|
-
return
|
|
340
|
-
className:
|
|
341
|
-
}, /* @__PURE__ */
|
|
349
|
+
}, a, n, g, f);
|
|
350
|
+
return d(/* @__PURE__ */ l.createElement("div", {
|
|
351
|
+
className: C
|
|
352
|
+
}, /* @__PURE__ */ l.createElement(qe, Object.assign({
|
|
342
353
|
prefixCls: `${c}-avatar`,
|
|
343
354
|
shape: o,
|
|
344
|
-
size:
|
|
345
|
-
},
|
|
346
|
-
},
|
|
355
|
+
size: s
|
|
356
|
+
}, b))));
|
|
357
|
+
}, en = Ja, tn = (e) => {
|
|
347
358
|
const {
|
|
348
359
|
prefixCls: t,
|
|
349
360
|
className: a,
|
|
350
361
|
rootClassName: n,
|
|
351
362
|
active: r,
|
|
352
363
|
block: o = !1,
|
|
353
|
-
size:
|
|
364
|
+
size: s = "default"
|
|
354
365
|
} = e, {
|
|
355
|
-
getPrefixCls:
|
|
356
|
-
} =
|
|
366
|
+
getPrefixCls: i
|
|
367
|
+
} = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
|
|
357
368
|
[`${c}-active`]: r,
|
|
358
369
|
[`${c}-block`]: o
|
|
359
|
-
}, a, n,
|
|
360
|
-
return
|
|
361
|
-
className:
|
|
362
|
-
}, /* @__PURE__ */
|
|
370
|
+
}, a, n, g, f);
|
|
371
|
+
return d(/* @__PURE__ */ l.createElement("div", {
|
|
372
|
+
className: C
|
|
373
|
+
}, /* @__PURE__ */ l.createElement(qe, Object.assign({
|
|
363
374
|
prefixCls: `${c}-button`,
|
|
364
|
-
size:
|
|
365
|
-
},
|
|
366
|
-
},
|
|
375
|
+
size: s
|
|
376
|
+
}, b))));
|
|
377
|
+
}, an = tn, nn = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", rn = (e) => {
|
|
367
378
|
const {
|
|
368
379
|
prefixCls: t,
|
|
369
380
|
className: a,
|
|
@@ -371,63 +382,63 @@ const nn = (e) => {
|
|
|
371
382
|
style: r,
|
|
372
383
|
active: o
|
|
373
384
|
} = e, {
|
|
374
|
-
getPrefixCls:
|
|
375
|
-
} =
|
|
376
|
-
[`${
|
|
377
|
-
}, a, n,
|
|
378
|
-
return c(/* @__PURE__ */
|
|
379
|
-
className:
|
|
380
|
-
}, /* @__PURE__ */
|
|
381
|
-
className:
|
|
385
|
+
getPrefixCls: s
|
|
386
|
+
} = l.useContext(be), i = s("skeleton", t), [c, d, g] = ze(i), f = E(i, `${i}-element`, {
|
|
387
|
+
[`${i}-active`]: o
|
|
388
|
+
}, a, n, d, g);
|
|
389
|
+
return c(/* @__PURE__ */ l.createElement("div", {
|
|
390
|
+
className: f
|
|
391
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
392
|
+
className: E(`${i}-image`, a),
|
|
382
393
|
style: r
|
|
383
|
-
}, /* @__PURE__ */
|
|
394
|
+
}, /* @__PURE__ */ l.createElement("svg", {
|
|
384
395
|
viewBox: "0 0 1098 1024",
|
|
385
396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
386
|
-
className: `${
|
|
387
|
-
}, /* @__PURE__ */
|
|
388
|
-
d:
|
|
389
|
-
className: `${
|
|
397
|
+
className: `${i}-image-svg`
|
|
398
|
+
}, /* @__PURE__ */ l.createElement("title", null, "Image placeholder"), /* @__PURE__ */ l.createElement("path", {
|
|
399
|
+
d: nn,
|
|
400
|
+
className: `${i}-image-path`
|
|
390
401
|
})))));
|
|
391
|
-
},
|
|
402
|
+
}, on = rn, ln = (e) => {
|
|
392
403
|
const {
|
|
393
404
|
prefixCls: t,
|
|
394
405
|
className: a,
|
|
395
406
|
rootClassName: n,
|
|
396
407
|
active: r,
|
|
397
408
|
block: o,
|
|
398
|
-
size:
|
|
409
|
+
size: s = "default"
|
|
399
410
|
} = e, {
|
|
400
|
-
getPrefixCls:
|
|
401
|
-
} =
|
|
411
|
+
getPrefixCls: i
|
|
412
|
+
} = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
|
|
402
413
|
[`${c}-active`]: r,
|
|
403
414
|
[`${c}-block`]: o
|
|
404
|
-
}, a, n,
|
|
405
|
-
return
|
|
406
|
-
className:
|
|
407
|
-
}, /* @__PURE__ */
|
|
415
|
+
}, a, n, g, f);
|
|
416
|
+
return d(/* @__PURE__ */ l.createElement("div", {
|
|
417
|
+
className: C
|
|
418
|
+
}, /* @__PURE__ */ l.createElement(qe, Object.assign({
|
|
408
419
|
prefixCls: `${c}-input`,
|
|
409
|
-
size:
|
|
410
|
-
},
|
|
411
|
-
},
|
|
420
|
+
size: s
|
|
421
|
+
}, b))));
|
|
422
|
+
}, sn = ln, cn = (e) => {
|
|
412
423
|
const {
|
|
413
424
|
prefixCls: t,
|
|
414
425
|
className: a,
|
|
415
426
|
rootClassName: n,
|
|
416
427
|
style: r,
|
|
417
428
|
active: o,
|
|
418
|
-
children:
|
|
429
|
+
children: s
|
|
419
430
|
} = e, {
|
|
420
|
-
getPrefixCls:
|
|
421
|
-
} =
|
|
431
|
+
getPrefixCls: i
|
|
432
|
+
} = l.useContext(be), c = i("skeleton", t), [d, g, f] = ze(c), b = E(c, `${c}-element`, {
|
|
422
433
|
[`${c}-active`]: o
|
|
423
|
-
},
|
|
424
|
-
return
|
|
425
|
-
className:
|
|
426
|
-
}, /* @__PURE__ */
|
|
427
|
-
className:
|
|
434
|
+
}, g, a, n, f);
|
|
435
|
+
return d(/* @__PURE__ */ l.createElement("div", {
|
|
436
|
+
className: b
|
|
437
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
438
|
+
className: E(`${c}-image`, a),
|
|
428
439
|
style: r
|
|
429
|
-
},
|
|
430
|
-
},
|
|
440
|
+
}, s)));
|
|
441
|
+
}, dn = cn, un = (e, t) => {
|
|
431
442
|
const {
|
|
432
443
|
width: a,
|
|
433
444
|
rows: n = 2
|
|
@@ -436,26 +447,26 @@ const nn = (e) => {
|
|
|
436
447
|
return a[e];
|
|
437
448
|
if (n - 1 === e)
|
|
438
449
|
return a;
|
|
439
|
-
},
|
|
450
|
+
}, vn = (e) => {
|
|
440
451
|
const {
|
|
441
452
|
prefixCls: t,
|
|
442
453
|
className: a,
|
|
443
454
|
style: n,
|
|
444
455
|
rows: r
|
|
445
|
-
} = e, o =
|
|
456
|
+
} = e, o = ct(new Array(r)).map((s, i) => (
|
|
446
457
|
// eslint-disable-next-line react/no-array-index-key
|
|
447
|
-
/* @__PURE__ */
|
|
448
|
-
key:
|
|
458
|
+
/* @__PURE__ */ l.createElement("li", {
|
|
459
|
+
key: i,
|
|
449
460
|
style: {
|
|
450
|
-
width:
|
|
461
|
+
width: un(i, e)
|
|
451
462
|
}
|
|
452
463
|
})
|
|
453
464
|
));
|
|
454
|
-
return /* @__PURE__ */
|
|
455
|
-
className:
|
|
465
|
+
return /* @__PURE__ */ l.createElement("ul", {
|
|
466
|
+
className: E(t, a),
|
|
456
467
|
style: n
|
|
457
468
|
}, o);
|
|
458
|
-
},
|
|
469
|
+
}, fn = vn, gn = (e) => {
|
|
459
470
|
let {
|
|
460
471
|
prefixCls: t,
|
|
461
472
|
className: a,
|
|
@@ -464,18 +475,18 @@ const nn = (e) => {
|
|
|
464
475
|
} = e;
|
|
465
476
|
return (
|
|
466
477
|
// biome-ignore lint/a11y/useHeadingContent: HOC here
|
|
467
|
-
/* @__PURE__ */
|
|
468
|
-
className:
|
|
478
|
+
/* @__PURE__ */ l.createElement("h3", {
|
|
479
|
+
className: E(t, a),
|
|
469
480
|
style: Object.assign({
|
|
470
481
|
width: n
|
|
471
482
|
}, r)
|
|
472
483
|
})
|
|
473
484
|
);
|
|
474
|
-
};
|
|
475
|
-
function
|
|
485
|
+
}, mn = gn;
|
|
486
|
+
function st(e) {
|
|
476
487
|
return e && typeof e == "object" ? e : {};
|
|
477
488
|
}
|
|
478
|
-
function
|
|
489
|
+
function bn(e, t) {
|
|
479
490
|
return e && !t ? {
|
|
480
491
|
size: "large",
|
|
481
492
|
shape: "square"
|
|
@@ -484,1378 +495,289 @@ function Tr(e, t) {
|
|
|
484
495
|
shape: "circle"
|
|
485
496
|
};
|
|
486
497
|
}
|
|
487
|
-
function
|
|
498
|
+
function pn(e, t) {
|
|
488
499
|
return !e && t ? {
|
|
489
500
|
width: "38%"
|
|
490
501
|
} : e && t ? {
|
|
491
502
|
width: "50%"
|
|
492
503
|
} : {};
|
|
493
504
|
}
|
|
494
|
-
function
|
|
505
|
+
function hn(e, t) {
|
|
495
506
|
const a = {};
|
|
496
507
|
return (!e || !t) && (a.width = "61%"), !e && t ? a.rows = 3 : a.rows = 2, a;
|
|
497
508
|
}
|
|
498
|
-
const
|
|
509
|
+
const Ee = (e) => {
|
|
499
510
|
const {
|
|
500
511
|
prefixCls: t,
|
|
501
512
|
loading: a,
|
|
502
513
|
className: n,
|
|
503
514
|
rootClassName: r,
|
|
504
515
|
style: o,
|
|
505
|
-
children:
|
|
506
|
-
avatar:
|
|
516
|
+
children: s,
|
|
517
|
+
avatar: i = !1,
|
|
507
518
|
title: c = !0,
|
|
508
|
-
paragraph:
|
|
509
|
-
active:
|
|
510
|
-
round:
|
|
519
|
+
paragraph: d = !0,
|
|
520
|
+
active: g,
|
|
521
|
+
round: f
|
|
511
522
|
} = e, {
|
|
512
|
-
getPrefixCls:
|
|
513
|
-
direction:
|
|
514
|
-
skeleton:
|
|
515
|
-
} =
|
|
523
|
+
getPrefixCls: b,
|
|
524
|
+
direction: C,
|
|
525
|
+
skeleton: T
|
|
526
|
+
} = l.useContext(be), p = b("skeleton", t), [O, y, S] = ze(p);
|
|
516
527
|
if (a || !("loading" in e)) {
|
|
517
|
-
const
|
|
518
|
-
let
|
|
519
|
-
if (
|
|
520
|
-
const
|
|
521
|
-
prefixCls: `${
|
|
522
|
-
},
|
|
523
|
-
|
|
524
|
-
className: `${
|
|
525
|
-
}, /* @__PURE__ */
|
|
528
|
+
const P = !!i, z = !!c, j = !!d;
|
|
529
|
+
let k;
|
|
530
|
+
if (P) {
|
|
531
|
+
const w = Object.assign(Object.assign({
|
|
532
|
+
prefixCls: `${p}-avatar`
|
|
533
|
+
}, bn(z, j)), st(i));
|
|
534
|
+
k = /* @__PURE__ */ l.createElement("div", {
|
|
535
|
+
className: `${p}-header`
|
|
536
|
+
}, /* @__PURE__ */ l.createElement(qe, Object.assign({}, w)));
|
|
526
537
|
}
|
|
527
|
-
let
|
|
528
|
-
if (
|
|
529
|
-
let
|
|
530
|
-
if (
|
|
531
|
-
const
|
|
532
|
-
prefixCls: `${
|
|
533
|
-
},
|
|
534
|
-
|
|
538
|
+
let D;
|
|
539
|
+
if (z || j) {
|
|
540
|
+
let w;
|
|
541
|
+
if (z) {
|
|
542
|
+
const m = Object.assign(Object.assign({
|
|
543
|
+
prefixCls: `${p}-title`
|
|
544
|
+
}, pn(P, j)), st(c));
|
|
545
|
+
w = /* @__PURE__ */ l.createElement(mn, Object.assign({}, m));
|
|
535
546
|
}
|
|
536
|
-
let
|
|
537
|
-
if (
|
|
538
|
-
const
|
|
539
|
-
prefixCls: `${
|
|
540
|
-
},
|
|
541
|
-
|
|
542
|
-
}
|
|
543
|
-
M = /* @__PURE__ */ i.createElement("div", {
|
|
544
|
-
className: `${g}-content`
|
|
545
|
-
}, E, T);
|
|
546
|
-
}
|
|
547
|
-
const O = D(g, {
|
|
548
|
-
[`${g}-with-avatar`]: b,
|
|
549
|
-
[`${g}-active`]: v,
|
|
550
|
-
[`${g}-rtl`]: h === "rtl",
|
|
551
|
-
[`${g}-round`]: d
|
|
552
|
-
}, S == null ? void 0 : S.className, n, r, p, C);
|
|
553
|
-
return x(/* @__PURE__ */ i.createElement("div", {
|
|
554
|
-
className: O,
|
|
555
|
-
style: Object.assign(Object.assign({}, S == null ? void 0 : S.style), o)
|
|
556
|
-
}, P, M));
|
|
557
|
-
}
|
|
558
|
-
return l ?? null;
|
|
559
|
-
};
|
|
560
|
-
ot.Button = wr;
|
|
561
|
-
ot.Avatar = Er;
|
|
562
|
-
ot.Input = Ir;
|
|
563
|
-
ot.Image = Pr;
|
|
564
|
-
ot.Node = Rr;
|
|
565
|
-
process.env.NODE_ENV !== "production" && (ot.displayName = "Skeleton");
|
|
566
|
-
var zr = ge.ESC, Ar = ge.TAB;
|
|
567
|
-
function kr(e) {
|
|
568
|
-
var t = e.visible, a = e.triggerRef, n = e.onVisibleChange, r = e.autoFocus, o = e.overlayRef, l = i.useRef(!1), s = function() {
|
|
569
|
-
if (t) {
|
|
570
|
-
var d, f;
|
|
571
|
-
(d = a.current) === null || d === void 0 || (f = d.focus) === null || f === void 0 || f.call(d), n == null || n(!1);
|
|
572
|
-
}
|
|
573
|
-
}, c = function() {
|
|
574
|
-
var d;
|
|
575
|
-
return (d = o.current) !== null && d !== void 0 && d.focus ? (o.current.focus(), l.current = !0, !0) : !1;
|
|
576
|
-
}, u = function(d) {
|
|
577
|
-
switch (d.keyCode) {
|
|
578
|
-
case zr:
|
|
579
|
-
s();
|
|
580
|
-
break;
|
|
581
|
-
case Ar: {
|
|
582
|
-
var f = !1;
|
|
583
|
-
l.current || (f = c()), f ? d.preventDefault() : s();
|
|
584
|
-
break;
|
|
547
|
+
let N;
|
|
548
|
+
if (j) {
|
|
549
|
+
const m = Object.assign(Object.assign({
|
|
550
|
+
prefixCls: `${p}-paragraph`
|
|
551
|
+
}, hn(P, z)), st(d));
|
|
552
|
+
N = /* @__PURE__ */ l.createElement(fn, Object.assign({}, m));
|
|
585
553
|
}
|
|
554
|
+
D = /* @__PURE__ */ l.createElement("div", {
|
|
555
|
+
className: `${p}-content`
|
|
556
|
+
}, w, N);
|
|
586
557
|
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}, [t]);
|
|
595
|
-
}
|
|
596
|
-
var jr = /* @__PURE__ */ Qa(function(e, t) {
|
|
597
|
-
var a = e.overlay, n = e.arrow, r = e.prefixCls, o = Mn(function() {
|
|
598
|
-
var s;
|
|
599
|
-
return typeof a == "function" ? s = a() : s = a, s;
|
|
600
|
-
}, [a]), l = va(t, ma(o));
|
|
601
|
-
return /* @__PURE__ */ _e.createElement(_e.Fragment, null, n && /* @__PURE__ */ _e.createElement("div", {
|
|
602
|
-
className: "".concat(r, "-arrow")
|
|
603
|
-
}), /* @__PURE__ */ _e.cloneElement(o, {
|
|
604
|
-
ref: ga(o) ? l : void 0
|
|
605
|
-
}));
|
|
606
|
-
}), mt = {
|
|
607
|
-
adjustX: 1,
|
|
608
|
-
adjustY: 1
|
|
609
|
-
}, gt = [0, 0], Br = {
|
|
610
|
-
topLeft: {
|
|
611
|
-
points: ["bl", "tl"],
|
|
612
|
-
overflow: mt,
|
|
613
|
-
offset: [0, -4],
|
|
614
|
-
targetOffset: gt
|
|
615
|
-
},
|
|
616
|
-
top: {
|
|
617
|
-
points: ["bc", "tc"],
|
|
618
|
-
overflow: mt,
|
|
619
|
-
offset: [0, -4],
|
|
620
|
-
targetOffset: gt
|
|
621
|
-
},
|
|
622
|
-
topRight: {
|
|
623
|
-
points: ["br", "tr"],
|
|
624
|
-
overflow: mt,
|
|
625
|
-
offset: [0, -4],
|
|
626
|
-
targetOffset: gt
|
|
627
|
-
},
|
|
628
|
-
bottomLeft: {
|
|
629
|
-
points: ["tl", "bl"],
|
|
630
|
-
overflow: mt,
|
|
631
|
-
offset: [0, 4],
|
|
632
|
-
targetOffset: gt
|
|
633
|
-
},
|
|
634
|
-
bottom: {
|
|
635
|
-
points: ["tc", "bc"],
|
|
636
|
-
overflow: mt,
|
|
637
|
-
offset: [0, 4],
|
|
638
|
-
targetOffset: gt
|
|
639
|
-
},
|
|
640
|
-
bottomRight: {
|
|
641
|
-
points: ["tr", "br"],
|
|
642
|
-
overflow: mt,
|
|
643
|
-
offset: [0, 4],
|
|
644
|
-
targetOffset: gt
|
|
645
|
-
}
|
|
646
|
-
}, Kr = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
|
|
647
|
-
function Vr(e, t) {
|
|
648
|
-
var a, n = e.arrow, r = n === void 0 ? !1 : n, o = e.prefixCls, l = o === void 0 ? "rc-dropdown" : o, s = e.transitionName, c = e.animation, u = e.align, v = e.placement, d = v === void 0 ? "bottomLeft" : v, f = e.placements, h = f === void 0 ? Br : f, S = e.getPopupContainer, g = e.showAction, x = e.hideAction, p = e.overlayClassName, C = e.overlayStyle, b = e.visible, _ = e.trigger, R = _ === void 0 ? ["hover"] : _, P = e.autoFocus, M = e.overlay, O = e.children, E = e.onVisibleChange, T = Se(e, Kr), y = _e.useState(), $ = z(y, 2), N = $[0], I = $[1], j = "visible" in e ? b : N, G = _e.useRef(null), m = _e.useRef(null), W = _e.useRef(null);
|
|
649
|
-
_e.useImperativeHandle(t, function() {
|
|
650
|
-
return G.current;
|
|
651
|
-
});
|
|
652
|
-
var J = function(q) {
|
|
653
|
-
I(q), E == null || E(q);
|
|
654
|
-
};
|
|
655
|
-
kr({
|
|
656
|
-
visible: j,
|
|
657
|
-
triggerRef: W,
|
|
658
|
-
onVisibleChange: J,
|
|
659
|
-
autoFocus: P,
|
|
660
|
-
overlayRef: m
|
|
661
|
-
});
|
|
662
|
-
var F = function(q) {
|
|
663
|
-
var te = e.onOverlayClick;
|
|
664
|
-
I(!1), te && te(q);
|
|
665
|
-
}, ee = function() {
|
|
666
|
-
return /* @__PURE__ */ _e.createElement(jr, {
|
|
667
|
-
ref: m,
|
|
668
|
-
overlay: M,
|
|
669
|
-
prefixCls: l,
|
|
670
|
-
arrow: r
|
|
671
|
-
});
|
|
672
|
-
}, se = function() {
|
|
673
|
-
return typeof M == "function" ? ee : ee();
|
|
674
|
-
}, A = function() {
|
|
675
|
-
var q = e.minOverlayWidthMatchTrigger, te = e.alignPoint;
|
|
676
|
-
return "minOverlayWidthMatchTrigger" in e ? q : !te;
|
|
677
|
-
}, K = function() {
|
|
678
|
-
var q = e.openClassName;
|
|
679
|
-
return q !== void 0 ? q : "".concat(l, "-open");
|
|
680
|
-
}, k = /* @__PURE__ */ _e.cloneElement(O, {
|
|
681
|
-
className: D((a = O.props) === null || a === void 0 ? void 0 : a.className, j && K()),
|
|
682
|
-
ref: ga(O) ? va(W, ma(O)) : void 0
|
|
683
|
-
}), V = x;
|
|
684
|
-
return !V && R.indexOf("contextMenu") !== -1 && (V = ["click"]), /* @__PURE__ */ _e.createElement(Sa, ae({
|
|
685
|
-
builtinPlacements: h
|
|
686
|
-
}, T, {
|
|
687
|
-
prefixCls: l,
|
|
688
|
-
ref: G,
|
|
689
|
-
popupClassName: D(p, B({}, "".concat(l, "-show-arrow"), r)),
|
|
690
|
-
popupStyle: C,
|
|
691
|
-
action: R,
|
|
692
|
-
showAction: g,
|
|
693
|
-
hideAction: V,
|
|
694
|
-
popupPlacement: d,
|
|
695
|
-
popupAlign: u,
|
|
696
|
-
popupTransitionName: s,
|
|
697
|
-
popupAnimation: c,
|
|
698
|
-
popupVisible: j,
|
|
699
|
-
stretch: A() ? "minWidth" : "",
|
|
700
|
-
popup: se(),
|
|
701
|
-
onPopupVisibleChange: J,
|
|
702
|
-
onPopupClick: F,
|
|
703
|
-
getPopupContainer: S
|
|
704
|
-
}), k);
|
|
705
|
-
}
|
|
706
|
-
const Hr = /* @__PURE__ */ _e.forwardRef(Vr);
|
|
707
|
-
var Ea = /* @__PURE__ */ i.createContext(null);
|
|
708
|
-
function wa(e, t) {
|
|
709
|
-
return e === void 0 ? null : "".concat(e, "-").concat(t);
|
|
710
|
-
}
|
|
711
|
-
function _a(e) {
|
|
712
|
-
var t = i.useContext(Ea);
|
|
713
|
-
return wa(t, e);
|
|
714
|
-
}
|
|
715
|
-
var Gr = ["children", "locked"], ze = /* @__PURE__ */ i.createContext(null);
|
|
716
|
-
function Wr(e, t) {
|
|
717
|
-
var a = Y({}, e);
|
|
718
|
-
return Object.keys(t).forEach(function(n) {
|
|
719
|
-
var r = t[n];
|
|
720
|
-
r !== void 0 && (a[n] = r);
|
|
721
|
-
}), a;
|
|
722
|
-
}
|
|
723
|
-
function Dt(e) {
|
|
724
|
-
var t = e.children, a = e.locked, n = Se(e, Gr), r = i.useContext(ze), o = nr(function() {
|
|
725
|
-
return Wr(r, n);
|
|
726
|
-
}, [r, n], function(l, s) {
|
|
727
|
-
return !a && (l[0] !== s[0] || !pa(l[1], s[1], !0));
|
|
728
|
-
});
|
|
729
|
-
return /* @__PURE__ */ i.createElement(ze.Provider, {
|
|
730
|
-
value: o
|
|
731
|
-
}, t);
|
|
732
|
-
}
|
|
733
|
-
var Fr = [], Pa = /* @__PURE__ */ i.createContext(null);
|
|
734
|
-
function rn() {
|
|
735
|
-
return i.useContext(Pa);
|
|
736
|
-
}
|
|
737
|
-
var Ia = /* @__PURE__ */ i.createContext(Fr);
|
|
738
|
-
function zt(e) {
|
|
739
|
-
var t = i.useContext(Ia);
|
|
740
|
-
return i.useMemo(function() {
|
|
741
|
-
return e !== void 0 ? [].concat(Ke(t), [e]) : t;
|
|
742
|
-
}, [t, e]);
|
|
743
|
-
}
|
|
744
|
-
var Ra = /* @__PURE__ */ i.createContext(null), An = /* @__PURE__ */ i.createContext({});
|
|
745
|
-
function Zn(e) {
|
|
746
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
747
|
-
if (cr(e)) {
|
|
748
|
-
var a = e.nodeName.toLowerCase(), n = (
|
|
749
|
-
// Focusable element
|
|
750
|
-
["input", "select", "textarea", "button"].includes(a) || // Editable element
|
|
751
|
-
e.isContentEditable || // Anchor with href element
|
|
752
|
-
a === "a" && !!e.getAttribute("href")
|
|
753
|
-
), r = e.getAttribute("tabindex"), o = Number(r), l = null;
|
|
754
|
-
return r && !Number.isNaN(o) ? l = o : n && l === null && (l = 0), n && e.disabled && (l = null), l !== null && (l >= 0 || t && l < 0);
|
|
755
|
-
}
|
|
756
|
-
return !1;
|
|
757
|
-
}
|
|
758
|
-
function qr(e) {
|
|
759
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a = Ke(e.querySelectorAll("*")).filter(function(n) {
|
|
760
|
-
return Zn(n, t);
|
|
761
|
-
});
|
|
762
|
-
return Zn(e, t) && a.unshift(e), a;
|
|
763
|
-
}
|
|
764
|
-
var En = ge.LEFT, wn = ge.RIGHT, _n = ge.UP, Yt = ge.DOWN, Zt = ge.ENTER, Na = ge.ESC, Mt = ge.HOME, Ot = ge.END, Jn = [_n, Yt, En, wn];
|
|
765
|
-
function Ur(e, t, a, n) {
|
|
766
|
-
var r, o = "prev", l = "next", s = "children", c = "parent";
|
|
767
|
-
if (e === "inline" && n === Zt)
|
|
768
|
-
return {
|
|
769
|
-
inlineTrigger: !0
|
|
770
|
-
};
|
|
771
|
-
var u = B(B({}, _n, o), Yt, l), v = B(B(B(B({}, En, a ? l : o), wn, a ? o : l), Yt, s), Zt, s), d = B(B(B(B(B(B({}, _n, o), Yt, l), Zt, s), Na, c), En, a ? s : c), wn, a ? c : s), f = {
|
|
772
|
-
inline: u,
|
|
773
|
-
horizontal: v,
|
|
774
|
-
vertical: d,
|
|
775
|
-
inlineSub: u,
|
|
776
|
-
horizontalSub: d,
|
|
777
|
-
verticalSub: d
|
|
778
|
-
}, h = (r = f["".concat(e).concat(t ? "" : "Sub")]) === null || r === void 0 ? void 0 : r[n];
|
|
779
|
-
switch (h) {
|
|
780
|
-
case o:
|
|
781
|
-
return {
|
|
782
|
-
offset: -1,
|
|
783
|
-
sibling: !0
|
|
784
|
-
};
|
|
785
|
-
case l:
|
|
786
|
-
return {
|
|
787
|
-
offset: 1,
|
|
788
|
-
sibling: !0
|
|
789
|
-
};
|
|
790
|
-
case c:
|
|
791
|
-
return {
|
|
792
|
-
offset: -1,
|
|
793
|
-
sibling: !1
|
|
794
|
-
};
|
|
795
|
-
case s:
|
|
796
|
-
return {
|
|
797
|
-
offset: 1,
|
|
798
|
-
sibling: !1
|
|
799
|
-
};
|
|
800
|
-
default:
|
|
801
|
-
return null;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
function Xr(e) {
|
|
805
|
-
for (var t = e; t; ) {
|
|
806
|
-
if (t.getAttribute("data-menu-list"))
|
|
807
|
-
return t;
|
|
808
|
-
t = t.parentElement;
|
|
809
|
-
}
|
|
810
|
-
return null;
|
|
811
|
-
}
|
|
812
|
-
function Yr(e, t) {
|
|
813
|
-
for (var a = e || document.activeElement; a; ) {
|
|
814
|
-
if (t.has(a))
|
|
815
|
-
return a;
|
|
816
|
-
a = a.parentElement;
|
|
817
|
-
}
|
|
818
|
-
return null;
|
|
819
|
-
}
|
|
820
|
-
function kn(e, t) {
|
|
821
|
-
var a = qr(e, !0);
|
|
822
|
-
return a.filter(function(n) {
|
|
823
|
-
return t.has(n);
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
function Qn(e, t, a) {
|
|
827
|
-
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
|
|
828
|
-
if (!e)
|
|
829
|
-
return null;
|
|
830
|
-
var r = kn(e, t), o = r.length, l = r.findIndex(function(s) {
|
|
831
|
-
return a === s;
|
|
832
|
-
});
|
|
833
|
-
return n < 0 ? l === -1 ? l = o - 1 : l -= 1 : n > 0 && (l += 1), l = (l + o) % o, r[l];
|
|
834
|
-
}
|
|
835
|
-
var Pn = function(t, a) {
|
|
836
|
-
var n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
837
|
-
return t.forEach(function(l) {
|
|
838
|
-
var s = document.querySelector("[data-menu-id='".concat(wa(a, l), "']"));
|
|
839
|
-
s && (n.add(s), o.set(s, l), r.set(l, s));
|
|
840
|
-
}), {
|
|
841
|
-
elements: n,
|
|
842
|
-
key2element: r,
|
|
843
|
-
element2key: o
|
|
844
|
-
};
|
|
845
|
-
};
|
|
846
|
-
function Zr(e, t, a, n, r, o, l, s, c, u) {
|
|
847
|
-
var v = i.useRef(), d = i.useRef();
|
|
848
|
-
d.current = t;
|
|
849
|
-
var f = function() {
|
|
850
|
-
Qe.cancel(v.current);
|
|
851
|
-
};
|
|
852
|
-
return i.useEffect(function() {
|
|
853
|
-
return function() {
|
|
854
|
-
f();
|
|
855
|
-
};
|
|
856
|
-
}, []), function(h) {
|
|
857
|
-
var S = h.which;
|
|
858
|
-
if ([].concat(Jn, [Zt, Na, Mt, Ot]).includes(S)) {
|
|
859
|
-
var g = o(), x = Pn(g, n), p = x, C = p.elements, b = p.key2element, _ = p.element2key, R = b.get(t), P = Yr(R, C), M = _.get(P), O = Ur(e, l(M, !0).length === 1, a, S);
|
|
860
|
-
if (!O && S !== Mt && S !== Ot)
|
|
861
|
-
return;
|
|
862
|
-
(Jn.includes(S) || [Mt, Ot].includes(S)) && h.preventDefault();
|
|
863
|
-
var E = function(m) {
|
|
864
|
-
if (m) {
|
|
865
|
-
var W = m, J = m.querySelector("a");
|
|
866
|
-
J != null && J.getAttribute("href") && (W = J);
|
|
867
|
-
var F = _.get(m);
|
|
868
|
-
s(F), f(), v.current = Qe(function() {
|
|
869
|
-
d.current === F && W.focus();
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
if ([Mt, Ot].includes(S) || O.sibling || !P) {
|
|
874
|
-
var T;
|
|
875
|
-
!P || e === "inline" ? T = r.current : T = Xr(P);
|
|
876
|
-
var y, $ = kn(T, C);
|
|
877
|
-
S === Mt ? y = $[0] : S === Ot ? y = $[$.length - 1] : y = Qn(T, C, P, O.offset), E(y);
|
|
878
|
-
} else if (O.inlineTrigger)
|
|
879
|
-
c(M);
|
|
880
|
-
else if (O.offset > 0)
|
|
881
|
-
c(M, !0), f(), v.current = Qe(function() {
|
|
882
|
-
x = Pn(g, n);
|
|
883
|
-
var G = P.getAttribute("aria-controls"), m = document.getElementById(G), W = Qn(m, x.elements);
|
|
884
|
-
E(W);
|
|
885
|
-
}, 5);
|
|
886
|
-
else if (O.offset < 0) {
|
|
887
|
-
var N = l(M, !0), I = N[N.length - 2], j = b.get(I);
|
|
888
|
-
c(I, !1), E(j);
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
u == null || u(h);
|
|
892
|
-
};
|
|
893
|
-
}
|
|
894
|
-
function Jr(e) {
|
|
895
|
-
Promise.resolve().then(e);
|
|
896
|
-
}
|
|
897
|
-
var jn = "__RC_UTIL_PATH_SPLIT__", ea = function(t) {
|
|
898
|
-
return t.join(jn);
|
|
899
|
-
}, Qr = function(t) {
|
|
900
|
-
return t.split(jn);
|
|
901
|
-
}, In = "rc-menu-more";
|
|
902
|
-
function ei() {
|
|
903
|
-
var e = i.useState({}), t = z(e, 2), a = t[1], n = ve(/* @__PURE__ */ new Map()), r = ve(/* @__PURE__ */ new Map()), o = i.useState([]), l = z(o, 2), s = l[0], c = l[1], u = ve(0), v = ve(!1), d = function() {
|
|
904
|
-
v.current || a({});
|
|
905
|
-
}, f = vt(function(b, _) {
|
|
906
|
-
process.env.NODE_ENV !== "production" && rt(!n.current.has(b), "Duplicated key '".concat(b, "' used in Menu by path [").concat(_.join(" > "), "]"));
|
|
907
|
-
var R = ea(_);
|
|
908
|
-
r.current.set(R, b), n.current.set(b, R), u.current += 1;
|
|
909
|
-
var P = u.current;
|
|
910
|
-
Jr(function() {
|
|
911
|
-
P === u.current && d();
|
|
912
|
-
});
|
|
913
|
-
}, []), h = vt(function(b, _) {
|
|
914
|
-
var R = ea(_);
|
|
915
|
-
r.current.delete(R), n.current.delete(b);
|
|
916
|
-
}, []), S = vt(function(b) {
|
|
917
|
-
c(b);
|
|
918
|
-
}, []), g = vt(function(b, _) {
|
|
919
|
-
var R = n.current.get(b) || "", P = Qr(R);
|
|
920
|
-
return _ && s.includes(P[0]) && P.unshift(In), P;
|
|
921
|
-
}, [s]), x = vt(function(b, _) {
|
|
922
|
-
return b.filter(function(R) {
|
|
923
|
-
return R !== void 0;
|
|
924
|
-
}).some(function(R) {
|
|
925
|
-
var P = g(R, !0);
|
|
926
|
-
return P.includes(_);
|
|
927
|
-
});
|
|
928
|
-
}, [g]), p = function() {
|
|
929
|
-
var _ = Ke(n.current.keys());
|
|
930
|
-
return s.length && _.push(In), _;
|
|
931
|
-
}, C = vt(function(b) {
|
|
932
|
-
var _ = "".concat(n.current.get(b)).concat(jn), R = /* @__PURE__ */ new Set();
|
|
933
|
-
return Ke(r.current.keys()).forEach(function(P) {
|
|
934
|
-
P.startsWith(_) && R.add(r.current.get(P));
|
|
935
|
-
}), R;
|
|
936
|
-
}, []);
|
|
937
|
-
return i.useEffect(function() {
|
|
938
|
-
return function() {
|
|
939
|
-
v.current = !0;
|
|
940
|
-
};
|
|
941
|
-
}, []), {
|
|
942
|
-
// Register
|
|
943
|
-
registerPath: f,
|
|
944
|
-
unregisterPath: h,
|
|
945
|
-
refreshOverflowKeys: S,
|
|
946
|
-
// Util
|
|
947
|
-
isSubPathKey: x,
|
|
948
|
-
getKeyPath: g,
|
|
949
|
-
getKeys: p,
|
|
950
|
-
getSubPathKeys: C
|
|
951
|
-
};
|
|
952
|
-
}
|
|
953
|
-
function Tt(e) {
|
|
954
|
-
var t = i.useRef(e);
|
|
955
|
-
t.current = e;
|
|
956
|
-
var a = i.useCallback(function() {
|
|
957
|
-
for (var n, r = arguments.length, o = new Array(r), l = 0; l < r; l++)
|
|
958
|
-
o[l] = arguments[l];
|
|
959
|
-
return (n = t.current) === null || n === void 0 ? void 0 : n.call.apply(n, [t].concat(o));
|
|
960
|
-
}, []);
|
|
961
|
-
return e ? a : void 0;
|
|
962
|
-
}
|
|
963
|
-
var ti = Math.random().toFixed(5).toString().slice(2), ta = 0;
|
|
964
|
-
function ni(e) {
|
|
965
|
-
var t = bt(e, {
|
|
966
|
-
value: e
|
|
967
|
-
}), a = z(t, 2), n = a[0], r = a[1];
|
|
968
|
-
return i.useEffect(function() {
|
|
969
|
-
ta += 1;
|
|
970
|
-
var o = process.env.NODE_ENV === "test" ? "test" : "".concat(ti, "-").concat(ta);
|
|
971
|
-
r("rc-menu-uuid-".concat(o));
|
|
972
|
-
}, []), n;
|
|
973
|
-
}
|
|
974
|
-
function Ma(e, t, a, n) {
|
|
975
|
-
var r = i.useContext(ze), o = r.activeKey, l = r.onActive, s = r.onInactive, c = {
|
|
976
|
-
active: o === e
|
|
977
|
-
};
|
|
978
|
-
return t || (c.onMouseEnter = function(u) {
|
|
979
|
-
a == null || a({
|
|
980
|
-
key: e,
|
|
981
|
-
domEvent: u
|
|
982
|
-
}), l(e);
|
|
983
|
-
}, c.onMouseLeave = function(u) {
|
|
984
|
-
n == null || n({
|
|
985
|
-
key: e,
|
|
986
|
-
domEvent: u
|
|
987
|
-
}), s(e);
|
|
988
|
-
}), c;
|
|
989
|
-
}
|
|
990
|
-
function Oa(e) {
|
|
991
|
-
var t = i.useContext(ze), a = t.mode, n = t.rtl, r = t.inlineIndent;
|
|
992
|
-
if (a !== "inline")
|
|
993
|
-
return null;
|
|
994
|
-
var o = e;
|
|
995
|
-
return n ? {
|
|
996
|
-
paddingRight: o * r
|
|
997
|
-
} : {
|
|
998
|
-
paddingLeft: o * r
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
|
-
function Ta(e) {
|
|
1002
|
-
var t = e.icon, a = e.props, n = e.children, r;
|
|
1003
|
-
return t === null || t === !1 ? null : (typeof t == "function" ? r = /* @__PURE__ */ i.createElement(t, Y({}, a)) : typeof t != "boolean" && (r = t), r || n || null);
|
|
1004
|
-
}
|
|
1005
|
-
var ai = ["item"];
|
|
1006
|
-
function Qt(e) {
|
|
1007
|
-
var t = e.item, a = Se(e, ai);
|
|
1008
|
-
return Object.defineProperty(a, "item", {
|
|
1009
|
-
get: function() {
|
|
1010
|
-
return rt(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), t;
|
|
1011
|
-
}
|
|
1012
|
-
}), a;
|
|
1013
|
-
}
|
|
1014
|
-
var ri = ["title", "attribute", "elementRef"], ii = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], oi = ["active"], li = /* @__PURE__ */ function(e) {
|
|
1015
|
-
ar(a, e);
|
|
1016
|
-
var t = rr(a);
|
|
1017
|
-
function a() {
|
|
1018
|
-
return ir(this, a), t.apply(this, arguments);
|
|
1019
|
-
}
|
|
1020
|
-
return or(a, [{
|
|
1021
|
-
key: "render",
|
|
1022
|
-
value: function() {
|
|
1023
|
-
var r = this.props, o = r.title, l = r.attribute, s = r.elementRef, c = Se(r, ri), u = it(c, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
|
|
1024
|
-
return rt(!l, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ i.createElement(Lt.Item, ae({}, l, {
|
|
1025
|
-
title: typeof o == "string" ? o : void 0
|
|
1026
|
-
}, u, {
|
|
1027
|
-
ref: s
|
|
1028
|
-
}));
|
|
1029
|
-
}
|
|
1030
|
-
}]), a;
|
|
1031
|
-
}(i.Component), si = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1032
|
-
var a = e.style, n = e.className, r = e.eventKey, o = e.warnKey, l = e.disabled, s = e.itemIcon, c = e.children, u = e.role, v = e.onMouseEnter, d = e.onMouseLeave, f = e.onClick, h = e.onKeyDown, S = e.onFocus, g = Se(e, ii), x = _a(r), p = i.useContext(ze), C = p.prefixCls, b = p.onItemClick, _ = p.disabled, R = p.overflowDisabled, P = p.itemIcon, M = p.selectedKeys, O = p.onActive, E = i.useContext(An), T = E._internalRenderMenuItem, y = "".concat(C, "-item"), $ = i.useRef(), N = i.useRef(), I = _ || l, j = ba(t, N), G = zt(r);
|
|
1033
|
-
process.env.NODE_ENV !== "production" && o && rt(!1, "MenuItem should not leave undefined `key`.");
|
|
1034
|
-
var m = function(ie) {
|
|
1035
|
-
return {
|
|
1036
|
-
key: r,
|
|
1037
|
-
// Note: For legacy code is reversed which not like other antd component
|
|
1038
|
-
keyPath: Ke(G).reverse(),
|
|
1039
|
-
item: $.current,
|
|
1040
|
-
domEvent: ie
|
|
1041
|
-
};
|
|
1042
|
-
}, W = s || P, J = Ma(r, I, v, d), F = J.active, ee = Se(J, oi), se = M.includes(r), A = Oa(G.length), K = function(ie) {
|
|
1043
|
-
if (!I) {
|
|
1044
|
-
var de = m(ie);
|
|
1045
|
-
f == null || f(Qt(de)), b(de);
|
|
1046
|
-
}
|
|
1047
|
-
}, k = function(ie) {
|
|
1048
|
-
if (h == null || h(ie), ie.which === ge.ENTER) {
|
|
1049
|
-
var de = m(ie);
|
|
1050
|
-
f == null || f(Qt(de)), b(de);
|
|
1051
|
-
}
|
|
1052
|
-
}, V = function(ie) {
|
|
1053
|
-
O(r), S == null || S(ie);
|
|
1054
|
-
}, U = {};
|
|
1055
|
-
e.role === "option" && (U["aria-selected"] = se);
|
|
1056
|
-
var q = /* @__PURE__ */ i.createElement(li, ae({
|
|
1057
|
-
ref: $,
|
|
1058
|
-
elementRef: j,
|
|
1059
|
-
role: u === null ? "none" : u || "menuitem",
|
|
1060
|
-
tabIndex: l ? null : -1,
|
|
1061
|
-
"data-menu-id": R && x ? null : x
|
|
1062
|
-
}, it(g, ["extra"]), ee, U, {
|
|
1063
|
-
component: "li",
|
|
1064
|
-
"aria-disabled": l,
|
|
1065
|
-
style: Y(Y({}, A), a),
|
|
1066
|
-
className: D(y, B(B(B({}, "".concat(y, "-active"), F), "".concat(y, "-selected"), se), "".concat(y, "-disabled"), I), n),
|
|
1067
|
-
onClick: K,
|
|
1068
|
-
onKeyDown: k,
|
|
1069
|
-
onFocus: V
|
|
1070
|
-
}), c, /* @__PURE__ */ i.createElement(Ta, {
|
|
1071
|
-
props: Y(Y({}, e), {}, {
|
|
1072
|
-
isSelected: se
|
|
1073
|
-
}),
|
|
1074
|
-
icon: W
|
|
1075
|
-
}));
|
|
1076
|
-
return T && (q = T(q, e, {
|
|
1077
|
-
selected: se
|
|
1078
|
-
})), q;
|
|
1079
|
-
});
|
|
1080
|
-
function ci(e, t) {
|
|
1081
|
-
var a = e.eventKey, n = rn(), r = zt(a);
|
|
1082
|
-
return i.useEffect(function() {
|
|
1083
|
-
if (n)
|
|
1084
|
-
return n.registerPath(a, r), function() {
|
|
1085
|
-
n.unregisterPath(a, r);
|
|
1086
|
-
};
|
|
1087
|
-
}, [r]), n ? null : /* @__PURE__ */ i.createElement(si, ae({}, e, {
|
|
1088
|
-
ref: t
|
|
1089
|
-
}));
|
|
1090
|
-
}
|
|
1091
|
-
const on = /* @__PURE__ */ i.forwardRef(ci);
|
|
1092
|
-
var ui = ["className", "children"], di = function(t, a) {
|
|
1093
|
-
var n = t.className, r = t.children, o = Se(t, ui), l = i.useContext(ze), s = l.prefixCls, c = l.mode, u = l.rtl;
|
|
1094
|
-
return /* @__PURE__ */ i.createElement("ul", ae({
|
|
1095
|
-
className: D(s, u && "".concat(s, "-rtl"), "".concat(s, "-sub"), "".concat(s, "-").concat(c === "inline" ? "inline" : "vertical"), n),
|
|
1096
|
-
role: "menu"
|
|
1097
|
-
}, o, {
|
|
1098
|
-
"data-menu-list": !0,
|
|
1099
|
-
ref: a
|
|
1100
|
-
}), r);
|
|
1101
|
-
}, Bn = /* @__PURE__ */ i.forwardRef(di);
|
|
1102
|
-
Bn.displayName = "SubMenuList";
|
|
1103
|
-
function Kn(e, t) {
|
|
1104
|
-
return Ca(e).map(function(a, n) {
|
|
1105
|
-
if (/* @__PURE__ */ i.isValidElement(a)) {
|
|
1106
|
-
var r, o, l = a.key, s = (r = (o = a.props) === null || o === void 0 ? void 0 : o.eventKey) !== null && r !== void 0 ? r : l, c = s == null;
|
|
1107
|
-
c && (s = "tmp_key-".concat([].concat(Ke(t), [n]).join("-")));
|
|
1108
|
-
var u = {
|
|
1109
|
-
key: s,
|
|
1110
|
-
eventKey: s
|
|
1111
|
-
};
|
|
1112
|
-
return process.env.NODE_ENV !== "production" && c && (u.warnKey = !0), /* @__PURE__ */ i.cloneElement(a, u);
|
|
1113
|
-
}
|
|
1114
|
-
return a;
|
|
1115
|
-
});
|
|
1116
|
-
}
|
|
1117
|
-
var $e = {
|
|
1118
|
-
adjustX: 1,
|
|
1119
|
-
adjustY: 1
|
|
1120
|
-
}, fi = {
|
|
1121
|
-
topLeft: {
|
|
1122
|
-
points: ["bl", "tl"],
|
|
1123
|
-
overflow: $e
|
|
1124
|
-
},
|
|
1125
|
-
topRight: {
|
|
1126
|
-
points: ["br", "tr"],
|
|
1127
|
-
overflow: $e
|
|
1128
|
-
},
|
|
1129
|
-
bottomLeft: {
|
|
1130
|
-
points: ["tl", "bl"],
|
|
1131
|
-
overflow: $e
|
|
1132
|
-
},
|
|
1133
|
-
bottomRight: {
|
|
1134
|
-
points: ["tr", "br"],
|
|
1135
|
-
overflow: $e
|
|
1136
|
-
},
|
|
1137
|
-
leftTop: {
|
|
1138
|
-
points: ["tr", "tl"],
|
|
1139
|
-
overflow: $e
|
|
1140
|
-
},
|
|
1141
|
-
leftBottom: {
|
|
1142
|
-
points: ["br", "bl"],
|
|
1143
|
-
overflow: $e
|
|
1144
|
-
},
|
|
1145
|
-
rightTop: {
|
|
1146
|
-
points: ["tl", "tr"],
|
|
1147
|
-
overflow: $e
|
|
1148
|
-
},
|
|
1149
|
-
rightBottom: {
|
|
1150
|
-
points: ["bl", "br"],
|
|
1151
|
-
overflow: $e
|
|
1152
|
-
}
|
|
1153
|
-
}, vi = {
|
|
1154
|
-
topLeft: {
|
|
1155
|
-
points: ["bl", "tl"],
|
|
1156
|
-
overflow: $e
|
|
1157
|
-
},
|
|
1158
|
-
topRight: {
|
|
1159
|
-
points: ["br", "tr"],
|
|
1160
|
-
overflow: $e
|
|
1161
|
-
},
|
|
1162
|
-
bottomLeft: {
|
|
1163
|
-
points: ["tl", "bl"],
|
|
1164
|
-
overflow: $e
|
|
1165
|
-
},
|
|
1166
|
-
bottomRight: {
|
|
1167
|
-
points: ["tr", "br"],
|
|
1168
|
-
overflow: $e
|
|
1169
|
-
},
|
|
1170
|
-
rightTop: {
|
|
1171
|
-
points: ["tr", "tl"],
|
|
1172
|
-
overflow: $e
|
|
1173
|
-
},
|
|
1174
|
-
rightBottom: {
|
|
1175
|
-
points: ["br", "bl"],
|
|
1176
|
-
overflow: $e
|
|
1177
|
-
},
|
|
1178
|
-
leftTop: {
|
|
1179
|
-
points: ["tl", "tr"],
|
|
1180
|
-
overflow: $e
|
|
1181
|
-
},
|
|
1182
|
-
leftBottom: {
|
|
1183
|
-
points: ["bl", "br"],
|
|
1184
|
-
overflow: $e
|
|
1185
|
-
}
|
|
1186
|
-
};
|
|
1187
|
-
function La(e, t, a) {
|
|
1188
|
-
if (t)
|
|
1189
|
-
return t;
|
|
1190
|
-
if (a)
|
|
1191
|
-
return a[e] || a.other;
|
|
1192
|
-
}
|
|
1193
|
-
var mi = {
|
|
1194
|
-
horizontal: "bottomLeft",
|
|
1195
|
-
vertical: "rightTop",
|
|
1196
|
-
"vertical-left": "rightTop",
|
|
1197
|
-
"vertical-right": "leftTop"
|
|
1198
|
-
};
|
|
1199
|
-
function gi(e) {
|
|
1200
|
-
var t = e.prefixCls, a = e.visible, n = e.children, r = e.popup, o = e.popupStyle, l = e.popupClassName, s = e.popupOffset, c = e.disabled, u = e.mode, v = e.onVisibleChange, d = i.useContext(ze), f = d.getPopupContainer, h = d.rtl, S = d.subMenuOpenDelay, g = d.subMenuCloseDelay, x = d.builtinPlacements, p = d.triggerSubMenuAction, C = d.forceSubMenuRender, b = d.rootClassName, _ = d.motion, R = d.defaultMotions, P = i.useState(!1), M = z(P, 2), O = M[0], E = M[1], T = h ? Y(Y({}, vi), x) : Y(Y({}, fi), x), y = mi[u], $ = La(u, _, R), N = i.useRef($);
|
|
1201
|
-
u !== "inline" && (N.current = $);
|
|
1202
|
-
var I = Y(Y({}, N.current), {}, {
|
|
1203
|
-
leavedClassName: "".concat(t, "-hidden"),
|
|
1204
|
-
removeOnLeave: !1,
|
|
1205
|
-
motionAppear: !0
|
|
1206
|
-
}), j = i.useRef();
|
|
1207
|
-
return i.useEffect(function() {
|
|
1208
|
-
return j.current = Qe(function() {
|
|
1209
|
-
E(a);
|
|
1210
|
-
}), function() {
|
|
1211
|
-
Qe.cancel(j.current);
|
|
1212
|
-
};
|
|
1213
|
-
}, [a]), /* @__PURE__ */ i.createElement(Sa, {
|
|
1214
|
-
prefixCls: t,
|
|
1215
|
-
popupClassName: D("".concat(t, "-popup"), B({}, "".concat(t, "-rtl"), h), l, b),
|
|
1216
|
-
stretch: u === "horizontal" ? "minWidth" : null,
|
|
1217
|
-
getPopupContainer: f,
|
|
1218
|
-
builtinPlacements: T,
|
|
1219
|
-
popupPlacement: y,
|
|
1220
|
-
popupVisible: O,
|
|
1221
|
-
popup: r,
|
|
1222
|
-
popupStyle: o,
|
|
1223
|
-
popupAlign: s && {
|
|
1224
|
-
offset: s
|
|
1225
|
-
},
|
|
1226
|
-
action: c ? [] : [p],
|
|
1227
|
-
mouseEnterDelay: S,
|
|
1228
|
-
mouseLeaveDelay: g,
|
|
1229
|
-
onPopupVisibleChange: v,
|
|
1230
|
-
forceRender: C,
|
|
1231
|
-
popupMotion: I,
|
|
1232
|
-
fresh: !0
|
|
1233
|
-
}, n);
|
|
1234
|
-
}
|
|
1235
|
-
function pi(e) {
|
|
1236
|
-
var t = e.id, a = e.open, n = e.keyPath, r = e.children, o = "inline", l = i.useContext(ze), s = l.prefixCls, c = l.forceSubMenuRender, u = l.motion, v = l.defaultMotions, d = l.mode, f = i.useRef(!1);
|
|
1237
|
-
f.current = d === o;
|
|
1238
|
-
var h = i.useState(!f.current), S = z(h, 2), g = S[0], x = S[1], p = f.current ? a : !1;
|
|
1239
|
-
i.useEffect(function() {
|
|
1240
|
-
f.current && x(!1);
|
|
1241
|
-
}, [d]);
|
|
1242
|
-
var C = Y({}, La(o, u, v));
|
|
1243
|
-
n.length > 1 && (C.motionAppear = !1);
|
|
1244
|
-
var b = C.onVisibleChanged;
|
|
1245
|
-
return C.onVisibleChanged = function(_) {
|
|
1246
|
-
return !f.current && !_ && x(!0), b == null ? void 0 : b(_);
|
|
1247
|
-
}, g ? null : /* @__PURE__ */ i.createElement(Dt, {
|
|
1248
|
-
mode: o,
|
|
1249
|
-
locked: !f.current
|
|
1250
|
-
}, /* @__PURE__ */ i.createElement(ha, ae({
|
|
1251
|
-
visible: p
|
|
1252
|
-
}, C, {
|
|
1253
|
-
forceRender: c,
|
|
1254
|
-
removeOnLeave: !1,
|
|
1255
|
-
leavedClassName: "".concat(s, "-hidden")
|
|
1256
|
-
}), function(_) {
|
|
1257
|
-
var R = _.className, P = _.style;
|
|
1258
|
-
return /* @__PURE__ */ i.createElement(Bn, {
|
|
1259
|
-
id: t,
|
|
558
|
+
const R = E(p, {
|
|
559
|
+
[`${p}-with-avatar`]: P,
|
|
560
|
+
[`${p}-active`]: g,
|
|
561
|
+
[`${p}-rtl`]: C === "rtl",
|
|
562
|
+
[`${p}-round`]: f
|
|
563
|
+
}, T == null ? void 0 : T.className, n, r, y, S);
|
|
564
|
+
return O(/* @__PURE__ */ l.createElement("div", {
|
|
1260
565
|
className: R,
|
|
1261
|
-
style:
|
|
1262
|
-
},
|
|
1263
|
-
}));
|
|
1264
|
-
}
|
|
1265
|
-
var bi = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], hi = ["active"], yi = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1266
|
-
var a = e.style, n = e.className, r = e.title, o = e.eventKey, l = e.warnKey, s = e.disabled, c = e.internalPopupClose, u = e.children, v = e.itemIcon, d = e.expandIcon, f = e.popupClassName, h = e.popupOffset, S = e.popupStyle, g = e.onClick, x = e.onMouseEnter, p = e.onMouseLeave, C = e.onTitleClick, b = e.onTitleMouseEnter, _ = e.onTitleMouseLeave, R = Se(e, bi), P = _a(o), M = i.useContext(ze), O = M.prefixCls, E = M.mode, T = M.openKeys, y = M.disabled, $ = M.overflowDisabled, N = M.activeKey, I = M.selectedKeys, j = M.itemIcon, G = M.expandIcon, m = M.onItemClick, W = M.onOpenChange, J = M.onActive, F = i.useContext(An), ee = F._internalRenderSubMenuItem, se = i.useContext(Ra), A = se.isSubPathKey, K = zt(), k = "".concat(O, "-submenu"), V = y || s, U = i.useRef(), q = i.useRef();
|
|
1267
|
-
process.env.NODE_ENV !== "production" && l && rt(!1, "SubMenu should not leave undefined `key`.");
|
|
1268
|
-
var te = v ?? j, ie = d ?? G, de = T.includes(o), fe = !$ && de, Pe = A(I, o), H = Ma(o, V, b, _), me = H.active, De = Se(H, hi), Xe = i.useState(!1), oe = z(Xe, 2), Z = oe[0], ye = oe[1], Ie = function(ce) {
|
|
1269
|
-
V || ye(ce);
|
|
1270
|
-
}, He = function(ce) {
|
|
1271
|
-
Ie(!0), x == null || x({
|
|
1272
|
-
key: o,
|
|
1273
|
-
domEvent: ce
|
|
1274
|
-
});
|
|
1275
|
-
}, et = function(ce) {
|
|
1276
|
-
Ie(!1), p == null || p({
|
|
1277
|
-
key: o,
|
|
1278
|
-
domEvent: ce
|
|
1279
|
-
});
|
|
1280
|
-
}, Ye = i.useMemo(function() {
|
|
1281
|
-
return me || (E !== "inline" ? Z || A([N], o) : !1);
|
|
1282
|
-
}, [E, me, N, Z, o, A]), Oe = Oa(K.length), xe = function(ce) {
|
|
1283
|
-
V || (C == null || C({
|
|
1284
|
-
key: o,
|
|
1285
|
-
domEvent: ce
|
|
1286
|
-
}), E === "inline" && W(o, !de));
|
|
1287
|
-
}, Ct = Tt(function(Ee) {
|
|
1288
|
-
g == null || g(Qt(Ee)), m(Ee);
|
|
1289
|
-
}), Re = function(ce) {
|
|
1290
|
-
E !== "inline" && W(o, ce);
|
|
1291
|
-
}, Te = function() {
|
|
1292
|
-
J(o);
|
|
1293
|
-
}, Ge = P && "".concat(P, "-popup"), Le = /* @__PURE__ */ i.createElement("div", ae({
|
|
1294
|
-
role: "menuitem",
|
|
1295
|
-
style: Oe,
|
|
1296
|
-
className: "".concat(k, "-title"),
|
|
1297
|
-
tabIndex: V ? null : -1,
|
|
1298
|
-
ref: U,
|
|
1299
|
-
title: typeof r == "string" ? r : null,
|
|
1300
|
-
"data-menu-id": $ && P ? null : P,
|
|
1301
|
-
"aria-expanded": fe,
|
|
1302
|
-
"aria-haspopup": !0,
|
|
1303
|
-
"aria-controls": Ge,
|
|
1304
|
-
"aria-disabled": V,
|
|
1305
|
-
onClick: xe,
|
|
1306
|
-
onFocus: Te
|
|
1307
|
-
}, De), r, /* @__PURE__ */ i.createElement(Ta, {
|
|
1308
|
-
icon: E !== "horizontal" ? ie : void 0,
|
|
1309
|
-
props: Y(Y({}, e), {}, {
|
|
1310
|
-
isOpen: fe,
|
|
1311
|
-
// [Legacy] Not sure why need this mark
|
|
1312
|
-
isSubMenu: !0
|
|
1313
|
-
})
|
|
1314
|
-
}, /* @__PURE__ */ i.createElement("i", {
|
|
1315
|
-
className: "".concat(k, "-arrow")
|
|
1316
|
-
}))), We = i.useRef(E);
|
|
1317
|
-
if (E !== "inline" && K.length > 1 ? We.current = "vertical" : We.current = E, !$) {
|
|
1318
|
-
var Ae = We.current;
|
|
1319
|
-
Le = /* @__PURE__ */ i.createElement(gi, {
|
|
1320
|
-
mode: Ae,
|
|
1321
|
-
prefixCls: k,
|
|
1322
|
-
visible: !c && fe && E !== "inline",
|
|
1323
|
-
popupClassName: f,
|
|
1324
|
-
popupOffset: h,
|
|
1325
|
-
popupStyle: S,
|
|
1326
|
-
popup: /* @__PURE__ */ i.createElement(
|
|
1327
|
-
Dt,
|
|
1328
|
-
{
|
|
1329
|
-
mode: Ae === "horizontal" ? "vertical" : Ae
|
|
1330
|
-
},
|
|
1331
|
-
/* @__PURE__ */ i.createElement(Bn, {
|
|
1332
|
-
id: Ge,
|
|
1333
|
-
ref: q
|
|
1334
|
-
}, u)
|
|
1335
|
-
),
|
|
1336
|
-
disabled: V,
|
|
1337
|
-
onVisibleChange: Re
|
|
1338
|
-
}, Le);
|
|
566
|
+
style: Object.assign(Object.assign({}, T == null ? void 0 : T.style), o)
|
|
567
|
+
}, k, D));
|
|
1339
568
|
}
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
}, u));
|
|
1354
|
-
return ee && (ke = ee(ke, e, {
|
|
1355
|
-
selected: Pe,
|
|
1356
|
-
active: Ye,
|
|
1357
|
-
open: fe,
|
|
1358
|
-
disabled: V
|
|
1359
|
-
})), /* @__PURE__ */ i.createElement(Dt, {
|
|
1360
|
-
onItemClick: Ct,
|
|
1361
|
-
mode: E === "horizontal" ? "vertical" : E,
|
|
1362
|
-
itemIcon: te,
|
|
1363
|
-
expandIcon: ie
|
|
1364
|
-
}, ke);
|
|
1365
|
-
}), ln = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1366
|
-
var a = e.eventKey, n = e.children, r = zt(a), o = Kn(n, r), l = rn();
|
|
1367
|
-
i.useEffect(function() {
|
|
1368
|
-
if (l)
|
|
1369
|
-
return l.registerPath(a, r), function() {
|
|
1370
|
-
l.unregisterPath(a, r);
|
|
1371
|
-
};
|
|
1372
|
-
}, [r]);
|
|
1373
|
-
var s;
|
|
1374
|
-
return l ? s = o : s = /* @__PURE__ */ i.createElement(yi, ae({
|
|
1375
|
-
ref: t
|
|
1376
|
-
}, e), o), /* @__PURE__ */ i.createElement(Ia.Provider, {
|
|
1377
|
-
value: r
|
|
1378
|
-
}, s);
|
|
1379
|
-
});
|
|
1380
|
-
process.env.NODE_ENV !== "production" && (ln.displayName = "SubMenu");
|
|
1381
|
-
function Da(e) {
|
|
1382
|
-
var t = e.className, a = e.style, n = i.useContext(ze), r = n.prefixCls, o = rn();
|
|
1383
|
-
return o ? null : /* @__PURE__ */ i.createElement("li", {
|
|
1384
|
-
role: "separator",
|
|
1385
|
-
className: D("".concat(r, "-item-divider"), t),
|
|
1386
|
-
style: a
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
var Ci = ["className", "title", "eventKey", "children"], $i = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1390
|
-
var a = e.className, n = e.title;
|
|
1391
|
-
e.eventKey;
|
|
1392
|
-
var r = e.children, o = Se(e, Ci), l = i.useContext(ze), s = l.prefixCls, c = "".concat(s, "-item-group");
|
|
1393
|
-
return /* @__PURE__ */ i.createElement("li", ae({
|
|
1394
|
-
ref: t,
|
|
1395
|
-
role: "presentation"
|
|
1396
|
-
}, o, {
|
|
1397
|
-
onClick: function(v) {
|
|
1398
|
-
return v.stopPropagation();
|
|
1399
|
-
},
|
|
1400
|
-
className: D(c, a)
|
|
1401
|
-
}), /* @__PURE__ */ i.createElement("div", {
|
|
1402
|
-
role: "presentation",
|
|
1403
|
-
className: "".concat(c, "-title"),
|
|
1404
|
-
title: typeof n == "string" ? n : void 0
|
|
1405
|
-
}, n), /* @__PURE__ */ i.createElement("ul", {
|
|
1406
|
-
role: "group",
|
|
1407
|
-
className: "".concat(c, "-list")
|
|
1408
|
-
}, r));
|
|
1409
|
-
}), Vn = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1410
|
-
var a = e.eventKey, n = e.children, r = zt(a), o = Kn(n, r), l = rn();
|
|
1411
|
-
return l ? o : /* @__PURE__ */ i.createElement($i, ae({
|
|
1412
|
-
ref: t
|
|
1413
|
-
}, it(e, ["warnKey"])), o);
|
|
1414
|
-
});
|
|
1415
|
-
process.env.NODE_ENV !== "production" && (Vn.displayName = "MenuItemGroup");
|
|
1416
|
-
var Si = ["label", "children", "key", "type", "extra"];
|
|
1417
|
-
function Rn(e, t, a) {
|
|
1418
|
-
var n = t.item, r = t.group, o = t.submenu, l = t.divider;
|
|
1419
|
-
return (e || []).map(function(s, c) {
|
|
1420
|
-
if (s && en(s) === "object") {
|
|
1421
|
-
var u = s, v = u.label, d = u.children, f = u.key, h = u.type, S = u.extra, g = Se(u, Si), x = f ?? "tmp-".concat(c);
|
|
1422
|
-
return d || h === "group" ? h === "group" ? /* @__PURE__ */ i.createElement(r, ae({
|
|
1423
|
-
key: x
|
|
1424
|
-
}, g, {
|
|
1425
|
-
title: v
|
|
1426
|
-
}), Rn(d, t, a)) : /* @__PURE__ */ i.createElement(o, ae({
|
|
1427
|
-
key: x
|
|
1428
|
-
}, g, {
|
|
1429
|
-
title: v
|
|
1430
|
-
}), Rn(d, t, a)) : h === "divider" ? /* @__PURE__ */ i.createElement(l, ae({
|
|
1431
|
-
key: x
|
|
1432
|
-
}, g)) : /* @__PURE__ */ i.createElement(n, ae({
|
|
1433
|
-
key: x
|
|
1434
|
-
}, g, {
|
|
1435
|
-
extra: S
|
|
1436
|
-
}), v, (!!S || S === 0) && /* @__PURE__ */ i.createElement("span", {
|
|
1437
|
-
className: "".concat(a, "-item-extra")
|
|
1438
|
-
}, S));
|
|
1439
|
-
}
|
|
1440
|
-
return null;
|
|
1441
|
-
}).filter(function(s) {
|
|
1442
|
-
return s;
|
|
1443
|
-
});
|
|
1444
|
-
}
|
|
1445
|
-
function na(e, t, a, n, r) {
|
|
1446
|
-
var o = e, l = Y({
|
|
1447
|
-
divider: Da,
|
|
1448
|
-
item: on,
|
|
1449
|
-
group: Vn,
|
|
1450
|
-
submenu: ln
|
|
1451
|
-
}, n);
|
|
1452
|
-
return t && (o = Rn(t, l, r)), Kn(o, a);
|
|
1453
|
-
}
|
|
1454
|
-
var xi = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], at = [], Ei = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1455
|
-
var a, n = e, r = n.prefixCls, o = r === void 0 ? "rc-menu" : r, l = n.rootClassName, s = n.style, c = n.className, u = n.tabIndex, v = u === void 0 ? 0 : u, d = n.items, f = n.children, h = n.direction, S = n.id, g = n.mode, x = g === void 0 ? "vertical" : g, p = n.inlineCollapsed, C = n.disabled, b = n.disabledOverflow, _ = n.subMenuOpenDelay, R = _ === void 0 ? 0.1 : _, P = n.subMenuCloseDelay, M = P === void 0 ? 0.1 : P, O = n.forceSubMenuRender, E = n.defaultOpenKeys, T = n.openKeys, y = n.activeKey, $ = n.defaultActiveFirst, N = n.selectable, I = N === void 0 ? !0 : N, j = n.multiple, G = j === void 0 ? !1 : j, m = n.defaultSelectedKeys, W = n.selectedKeys, J = n.onSelect, F = n.onDeselect, ee = n.inlineIndent, se = ee === void 0 ? 24 : ee, A = n.motion, K = n.defaultMotions, k = n.triggerSubMenuAction, V = k === void 0 ? "hover" : k, U = n.builtinPlacements, q = n.itemIcon, te = n.expandIcon, ie = n.overflowedIndicator, de = ie === void 0 ? "..." : ie, fe = n.overflowedIndicatorPopupClassName, Pe = n.getPopupContainer, H = n.onClick, me = n.onOpenChange, De = n.onKeyDown, Xe = n.openAnimation, oe = n.openTransitionName, Z = n._internalRenderMenuItem, ye = n._internalRenderSubMenuItem, Ie = n._internalComponents, He = Se(n, xi), et = i.useMemo(function() {
|
|
1456
|
-
return [na(f, d, at, Ie, o), na(f, d, at, {}, o)];
|
|
1457
|
-
}, [f, d, Ie]), Ye = z(et, 2), Oe = Ye[0], xe = Ye[1], Ct = i.useState(!1), Re = z(Ct, 2), Te = Re[0], Ge = Re[1], Le = i.useRef(), We = ni(S), Ae = h === "rtl";
|
|
1458
|
-
process.env.NODE_ENV !== "production" && rt(!Xe && !oe, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
|
|
1459
|
-
var ke = bt(E, {
|
|
1460
|
-
value: T,
|
|
1461
|
-
postState: function(Q) {
|
|
1462
|
-
return Q || at;
|
|
1463
|
-
}
|
|
1464
|
-
}), Ee = z(ke, 2), ce = Ee[0], lt = Ee[1], $t = function(Q) {
|
|
1465
|
-
var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1466
|
-
function Ne() {
|
|
1467
|
-
lt(Q), me == null || me(Q);
|
|
1468
|
-
}
|
|
1469
|
-
le ? mr.flushSync(Ne) : Ne();
|
|
1470
|
-
}, kt = i.useState(ce), jt = z(kt, 2), un = jt[0], Bt = jt[1], St = i.useRef(!1), Kt = i.useMemo(function() {
|
|
1471
|
-
return (x === "inline" || x === "vertical") && p ? ["vertical", p] : [x, !1];
|
|
1472
|
-
}, [x, p]), Fe = z(Kt, 2), je = Fe[0], xt = Fe[1], Et = je === "inline", dn = i.useState(je), wt = z(dn, 2), pe = wt[0], Ze = wt[1], fn = i.useState(xt), tt = z(fn, 2), Vt = tt[0], Ht = tt[1];
|
|
1473
|
-
i.useEffect(function() {
|
|
1474
|
-
Ze(je), Ht(xt), St.current && (Et ? lt(un) : $t(at));
|
|
1475
|
-
}, [je, xt]);
|
|
1476
|
-
var st = i.useState(0), Gt = z(st, 2), ct = Gt[0], Wt = Gt[1], ut = ct >= Oe.length - 1 || pe !== "horizontal" || b;
|
|
1477
|
-
i.useEffect(function() {
|
|
1478
|
-
Et && Bt(ce);
|
|
1479
|
-
}, [ce]), i.useEffect(function() {
|
|
1480
|
-
return St.current = !0, function() {
|
|
1481
|
-
St.current = !1;
|
|
1482
|
-
};
|
|
1483
|
-
}, []);
|
|
1484
|
-
var qe = ei(), Ft = qe.registerPath, _t = qe.unregisterPath, nt = qe.refreshOverflowKeys, dt = qe.isSubPathKey, Pt = qe.getKeyPath, It = qe.getKeys, qt = qe.getSubPathKeys, X = i.useMemo(function() {
|
|
1485
|
-
return {
|
|
1486
|
-
registerPath: Ft,
|
|
1487
|
-
unregisterPath: _t
|
|
1488
|
-
};
|
|
1489
|
-
}, [Ft, _t]), L = i.useMemo(function() {
|
|
1490
|
-
return {
|
|
1491
|
-
isSubPathKey: dt
|
|
1492
|
-
};
|
|
1493
|
-
}, [dt]);
|
|
1494
|
-
i.useEffect(function() {
|
|
1495
|
-
nt(ut ? at : Oe.slice(ct + 1).map(function(ue) {
|
|
1496
|
-
return ue.key;
|
|
1497
|
-
}));
|
|
1498
|
-
}, [ct, ut]);
|
|
1499
|
-
var ne = bt(y || $ && ((a = Oe[0]) === null || a === void 0 ? void 0 : a.key), {
|
|
1500
|
-
value: y
|
|
1501
|
-
}), re = z(ne, 2), he = re[0], Ce = re[1], Je = Tt(function(ue) {
|
|
1502
|
-
Ce(ue);
|
|
1503
|
-
}), we = Tt(function() {
|
|
1504
|
-
Ce(void 0);
|
|
1505
|
-
});
|
|
1506
|
-
er(t, function() {
|
|
1507
|
-
return {
|
|
1508
|
-
list: Le.current,
|
|
1509
|
-
focus: function(Q) {
|
|
1510
|
-
var le, Ne = It(), Me = Pn(Ne, We), Ut = Me.elements, pn = Me.key2element, Ya = Me.element2key, qn = kn(Le.current, Ut), Un = he ?? (qn[0] ? Ya.get(qn[0]) : (le = Oe.find(function(Za) {
|
|
1511
|
-
return !Za.props.disabled;
|
|
1512
|
-
})) === null || le === void 0 ? void 0 : le.key), Nt = pn.get(Un);
|
|
1513
|
-
if (Un && Nt) {
|
|
1514
|
-
var bn;
|
|
1515
|
-
Nt == null || (bn = Nt.focus) === null || bn === void 0 || bn.call(Nt, Q);
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
};
|
|
1519
|
-
});
|
|
1520
|
-
var Rt = bt(m || [], {
|
|
1521
|
-
value: W,
|
|
1522
|
-
// Legacy convert key to array
|
|
1523
|
-
postState: function(Q) {
|
|
1524
|
-
return Array.isArray(Q) ? Q : Q == null ? at : [Q];
|
|
1525
|
-
}
|
|
1526
|
-
}), Ue = z(Rt, 2), ft = Ue[0], vn = Ue[1], mn = function(Q) {
|
|
1527
|
-
if (I) {
|
|
1528
|
-
var le = Q.key, Ne = ft.includes(le), Me;
|
|
1529
|
-
G ? Ne ? Me = ft.filter(function(pn) {
|
|
1530
|
-
return pn !== le;
|
|
1531
|
-
}) : Me = [].concat(Ke(ft), [le]) : Me = [le], vn(Me);
|
|
1532
|
-
var Ut = Y(Y({}, Q), {}, {
|
|
1533
|
-
selectedKeys: Me
|
|
1534
|
-
});
|
|
1535
|
-
Ne ? F == null || F(Ut) : J == null || J(Ut);
|
|
1536
|
-
}
|
|
1537
|
-
!G && ce.length && pe !== "inline" && $t(at);
|
|
1538
|
-
}, gn = Tt(function(ue) {
|
|
1539
|
-
H == null || H(Qt(ue)), mn(ue);
|
|
1540
|
-
}), Fn = Tt(function(ue, Q) {
|
|
1541
|
-
var le = ce.filter(function(Me) {
|
|
1542
|
-
return Me !== ue;
|
|
1543
|
-
});
|
|
1544
|
-
if (Q)
|
|
1545
|
-
le.push(ue);
|
|
1546
|
-
else if (pe !== "inline") {
|
|
1547
|
-
var Ne = qt(ue);
|
|
1548
|
-
le = le.filter(function(Me) {
|
|
1549
|
-
return !Ne.has(Me);
|
|
1550
|
-
});
|
|
1551
|
-
}
|
|
1552
|
-
pa(ce, le, !0) || $t(le, !0);
|
|
1553
|
-
}), Wa = function(Q, le) {
|
|
1554
|
-
var Ne = le ?? !ce.includes(Q);
|
|
1555
|
-
Fn(Q, Ne);
|
|
1556
|
-
}, Fa = Zr(pe, he, Ae, We, Le, It, Pt, Ce, Wa, De);
|
|
1557
|
-
i.useEffect(function() {
|
|
1558
|
-
Ge(!0);
|
|
1559
|
-
}, []);
|
|
1560
|
-
var qa = i.useMemo(function() {
|
|
1561
|
-
return {
|
|
1562
|
-
_internalRenderMenuItem: Z,
|
|
1563
|
-
_internalRenderSubMenuItem: ye
|
|
1564
|
-
};
|
|
1565
|
-
}, [Z, ye]), Ua = pe !== "horizontal" || b ? Oe : (
|
|
1566
|
-
// Need wrap for overflow dropdown that do not response for open
|
|
1567
|
-
Oe.map(function(ue, Q) {
|
|
1568
|
-
return (
|
|
1569
|
-
// Always wrap provider to avoid sub node re-mount
|
|
1570
|
-
/* @__PURE__ */ i.createElement(Dt, {
|
|
1571
|
-
key: ue.key,
|
|
1572
|
-
overflowDisabled: Q > ct
|
|
1573
|
-
}, ue)
|
|
1574
|
-
);
|
|
1575
|
-
})
|
|
1576
|
-
), Xa = /* @__PURE__ */ i.createElement(Lt, ae({
|
|
1577
|
-
id: S,
|
|
1578
|
-
ref: Le,
|
|
1579
|
-
prefixCls: "".concat(o, "-overflow"),
|
|
1580
|
-
component: "ul",
|
|
1581
|
-
itemComponent: on,
|
|
1582
|
-
className: D(o, "".concat(o, "-root"), "".concat(o, "-").concat(pe), c, B(B({}, "".concat(o, "-inline-collapsed"), Vt), "".concat(o, "-rtl"), Ae), l),
|
|
1583
|
-
dir: h,
|
|
1584
|
-
style: s,
|
|
1585
|
-
role: "menu",
|
|
1586
|
-
tabIndex: v,
|
|
1587
|
-
data: Ua,
|
|
1588
|
-
renderRawItem: function(Q) {
|
|
1589
|
-
return Q;
|
|
1590
|
-
},
|
|
1591
|
-
renderRawRest: function(Q) {
|
|
1592
|
-
var le = Q.length, Ne = le ? Oe.slice(-le) : null;
|
|
1593
|
-
return /* @__PURE__ */ i.createElement(ln, {
|
|
1594
|
-
eventKey: In,
|
|
1595
|
-
title: de,
|
|
1596
|
-
disabled: ut,
|
|
1597
|
-
internalPopupClose: le === 0,
|
|
1598
|
-
popupClassName: fe
|
|
1599
|
-
}, Ne);
|
|
1600
|
-
},
|
|
1601
|
-
maxCount: pe !== "horizontal" || b ? Lt.INVALIDATE : Lt.RESPONSIVE,
|
|
1602
|
-
ssr: "full",
|
|
1603
|
-
"data-menu-list": !0,
|
|
1604
|
-
onVisibleChange: function(Q) {
|
|
1605
|
-
Wt(Q);
|
|
1606
|
-
},
|
|
1607
|
-
onKeyDown: Fa
|
|
1608
|
-
}, He));
|
|
1609
|
-
return /* @__PURE__ */ i.createElement(An.Provider, {
|
|
1610
|
-
value: qa
|
|
1611
|
-
}, /* @__PURE__ */ i.createElement(Ea.Provider, {
|
|
1612
|
-
value: We
|
|
1613
|
-
}, /* @__PURE__ */ i.createElement(Dt, {
|
|
1614
|
-
prefixCls: o,
|
|
1615
|
-
rootClassName: l,
|
|
1616
|
-
mode: pe,
|
|
1617
|
-
openKeys: ce,
|
|
1618
|
-
rtl: Ae,
|
|
1619
|
-
disabled: C,
|
|
1620
|
-
motion: Te ? A : null,
|
|
1621
|
-
defaultMotions: Te ? K : null,
|
|
1622
|
-
activeKey: he,
|
|
1623
|
-
onActive: Je,
|
|
1624
|
-
onInactive: we,
|
|
1625
|
-
selectedKeys: ft,
|
|
1626
|
-
inlineIndent: se,
|
|
1627
|
-
subMenuOpenDelay: R,
|
|
1628
|
-
subMenuCloseDelay: M,
|
|
1629
|
-
forceSubMenuRender: O,
|
|
1630
|
-
builtinPlacements: U,
|
|
1631
|
-
triggerSubMenuAction: V,
|
|
1632
|
-
getPopupContainer: Pe,
|
|
1633
|
-
itemIcon: q,
|
|
1634
|
-
expandIcon: te,
|
|
1635
|
-
onItemClick: gn,
|
|
1636
|
-
onOpenChange: Fn
|
|
1637
|
-
}, /* @__PURE__ */ i.createElement(Ra.Provider, {
|
|
1638
|
-
value: L
|
|
1639
|
-
}, Xa), /* @__PURE__ */ i.createElement("div", {
|
|
1640
|
-
style: {
|
|
1641
|
-
display: "none"
|
|
1642
|
-
},
|
|
1643
|
-
"aria-hidden": !0
|
|
1644
|
-
}, /* @__PURE__ */ i.createElement(Pa.Provider, {
|
|
1645
|
-
value: X
|
|
1646
|
-
}, xe)))));
|
|
1647
|
-
}), At = Ei;
|
|
1648
|
-
At.Item = on;
|
|
1649
|
-
At.SubMenu = ln;
|
|
1650
|
-
At.ItemGroup = Vn;
|
|
1651
|
-
At.Divider = Da;
|
|
1652
|
-
var wi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, _i = function(t, a) {
|
|
1653
|
-
return /* @__PURE__ */ i.createElement(xa, ae({}, t, {
|
|
1654
|
-
ref: a,
|
|
1655
|
-
icon: wi
|
|
1656
|
-
}));
|
|
1657
|
-
}, za = /* @__PURE__ */ i.forwardRef(_i);
|
|
1658
|
-
process.env.NODE_ENV !== "production" && (za.displayName = "EllipsisOutlined");
|
|
1659
|
-
var Pi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, Ii = function(t, a) {
|
|
1660
|
-
return /* @__PURE__ */ i.createElement(xa, ae({}, t, {
|
|
569
|
+
return s ?? null;
|
|
570
|
+
};
|
|
571
|
+
Ee.Button = an;
|
|
572
|
+
Ee.Avatar = en;
|
|
573
|
+
Ee.Input = sn;
|
|
574
|
+
Ee.Image = on;
|
|
575
|
+
Ee.Node = dn;
|
|
576
|
+
process.env.NODE_ENV !== "production" && (Ee.displayName = "Skeleton");
|
|
577
|
+
const $n = Ee;
|
|
578
|
+
var yn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
|
|
579
|
+
const Sn = yn;
|
|
580
|
+
var Cn = function(t, a) {
|
|
581
|
+
return /* @__PURE__ */ l.createElement(Ga, he({}, t, {
|
|
1661
582
|
ref: a,
|
|
1662
|
-
icon:
|
|
583
|
+
icon: Sn
|
|
1663
584
|
}));
|
|
1664
|
-
},
|
|
1665
|
-
process.env.NODE_ENV !== "production" && (
|
|
1666
|
-
const
|
|
1667
|
-
var
|
|
1668
|
-
var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator,
|
|
1669
|
-
return typeof
|
|
1670
|
-
}, [
|
|
1671
|
-
function
|
|
1672
|
-
|
|
585
|
+
}, ea = /* @__PURE__ */ l.forwardRef(Cn);
|
|
586
|
+
process.env.NODE_ENV !== "production" && (ea.displayName = "PlusOutlined");
|
|
587
|
+
const xn = ea, Xe = /* @__PURE__ */ Pa(null);
|
|
588
|
+
var _n = function(t) {
|
|
589
|
+
var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, s = o === void 0 ? {} : o, i = s.size, c = s.align, d = c === void 0 ? "center" : c, g = U(), f = B(g, 2), b = f[0], C = f[1], T = ee(), p = Ea.useCallback(function(y) {
|
|
590
|
+
return typeof i == "function" ? i(y) : typeof i == "number" ? i : y;
|
|
591
|
+
}, [i]);
|
|
592
|
+
function O() {
|
|
593
|
+
Dt.cancel(T.current);
|
|
1673
594
|
}
|
|
1674
|
-
return
|
|
1675
|
-
var
|
|
595
|
+
return me(function() {
|
|
596
|
+
var y = {};
|
|
1676
597
|
if (a)
|
|
1677
598
|
if (n) {
|
|
1678
|
-
|
|
1679
|
-
var
|
|
1680
|
-
|
|
599
|
+
y.width = p(a.width);
|
|
600
|
+
var S = r ? "right" : "left";
|
|
601
|
+
d === "start" && (y[S] = a[S]), d === "center" && (y[S] = a[S] + a.width / 2, y.transform = r ? "translateX(50%)" : "translateX(-50%)"), d === "end" && (y[S] = a[S] + a.width, y.transform = "translateX(-100%)");
|
|
1681
602
|
} else
|
|
1682
|
-
|
|
1683
|
-
return
|
|
1684
|
-
|
|
1685
|
-
}),
|
|
1686
|
-
}, [a, n, r,
|
|
1687
|
-
style:
|
|
603
|
+
y.height = p(a.height), d === "start" && (y.top = a.top), d === "center" && (y.top = a.top + a.height / 2, y.transform = "translateY(-50%)"), d === "end" && (y.top = a.top + a.height, y.transform = "translateY(-100%)");
|
|
604
|
+
return O(), T.current = Dt(function() {
|
|
605
|
+
C(y);
|
|
606
|
+
}), O;
|
|
607
|
+
}, [a, n, r, d, p]), {
|
|
608
|
+
style: b
|
|
1688
609
|
};
|
|
1689
|
-
},
|
|
610
|
+
}, kt = {
|
|
1690
611
|
width: 0,
|
|
1691
612
|
height: 0,
|
|
1692
613
|
left: 0,
|
|
1693
614
|
top: 0
|
|
1694
615
|
};
|
|
1695
|
-
function
|
|
1696
|
-
return
|
|
1697
|
-
for (var n, r = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) ||
|
|
1698
|
-
var c = e[
|
|
1699
|
-
if (!
|
|
1700
|
-
var
|
|
1701
|
-
|
|
616
|
+
function wn(e, t, a) {
|
|
617
|
+
return Qt(function() {
|
|
618
|
+
for (var n, r = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) || kt, s = o.left + o.width, i = 0; i < e.length; i += 1) {
|
|
619
|
+
var c = e[i].key, d = t.get(c);
|
|
620
|
+
if (!d) {
|
|
621
|
+
var g;
|
|
622
|
+
d = t.get((g = e[i - 1]) === null || g === void 0 ? void 0 : g.key) || kt;
|
|
1702
623
|
}
|
|
1703
|
-
var
|
|
1704
|
-
|
|
624
|
+
var f = r.get(c) || le({}, d);
|
|
625
|
+
f.right = s - f.left - f.width, r.set(c, f);
|
|
1705
626
|
}
|
|
1706
627
|
return r;
|
|
1707
628
|
}, [e.map(function(n) {
|
|
1708
629
|
return n.key;
|
|
1709
630
|
}).join("_"), t, a]);
|
|
1710
631
|
}
|
|
1711
|
-
function
|
|
1712
|
-
var a =
|
|
1713
|
-
function
|
|
1714
|
-
var c = typeof
|
|
632
|
+
function Gt(e, t) {
|
|
633
|
+
var a = l.useRef(e), n = l.useState({}), r = B(n, 2), o = r[1];
|
|
634
|
+
function s(i) {
|
|
635
|
+
var c = typeof i == "function" ? i(a.current) : i;
|
|
1715
636
|
c !== a.current && t(c, a.current), a.current = c, o({});
|
|
1716
637
|
}
|
|
1717
|
-
return [a.current,
|
|
638
|
+
return [a.current, s];
|
|
1718
639
|
}
|
|
1719
|
-
var
|
|
1720
|
-
function
|
|
1721
|
-
var a =
|
|
1722
|
-
function
|
|
1723
|
-
var
|
|
640
|
+
var En = 0.1, Wt = 0.01, Ge = 20, Vt = Math.pow(0.995, Ge);
|
|
641
|
+
function Pn(e, t) {
|
|
642
|
+
var a = U(), n = B(a, 2), r = n[0], o = n[1], s = U(0), i = B(s, 2), c = i[0], d = i[1], g = U(0), f = B(g, 2), b = f[0], C = f[1], T = U(), p = B(T, 2), O = p[0], y = p[1], S = ee();
|
|
643
|
+
function P(w) {
|
|
644
|
+
var N = w.touches[0], m = N.screenX, h = N.screenY;
|
|
1724
645
|
o({
|
|
1725
|
-
x:
|
|
1726
|
-
y:
|
|
1727
|
-
}), window.clearInterval(
|
|
646
|
+
x: m,
|
|
647
|
+
y: h
|
|
648
|
+
}), window.clearInterval(S.current);
|
|
1728
649
|
}
|
|
1729
|
-
function
|
|
650
|
+
function z(w) {
|
|
1730
651
|
if (r) {
|
|
1731
|
-
var
|
|
652
|
+
var N = w.touches[0], m = N.screenX, h = N.screenY;
|
|
1732
653
|
o({
|
|
1733
|
-
x:
|
|
1734
|
-
y:
|
|
654
|
+
x: m,
|
|
655
|
+
y: h
|
|
1735
656
|
});
|
|
1736
|
-
var
|
|
1737
|
-
t(
|
|
1738
|
-
var
|
|
1739
|
-
|
|
1740
|
-
x:
|
|
1741
|
-
y:
|
|
657
|
+
var _ = m - r.x, x = h - r.y;
|
|
658
|
+
t(_, x);
|
|
659
|
+
var G = Date.now();
|
|
660
|
+
d(G), C(G - c), y({
|
|
661
|
+
x: _,
|
|
662
|
+
y: x
|
|
1742
663
|
});
|
|
1743
664
|
}
|
|
1744
665
|
}
|
|
1745
|
-
function
|
|
1746
|
-
if (r && (o(null),
|
|
1747
|
-
var
|
|
1748
|
-
if (Math.max(
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
666
|
+
function j() {
|
|
667
|
+
if (r && (o(null), y(null), O)) {
|
|
668
|
+
var w = O.x / b, N = O.y / b, m = Math.abs(w), h = Math.abs(N);
|
|
669
|
+
if (Math.max(m, h) < En)
|
|
670
|
+
return;
|
|
671
|
+
var _ = w, x = N;
|
|
672
|
+
S.current = window.setInterval(function() {
|
|
673
|
+
if (Math.abs(_) < Wt && Math.abs(x) < Wt) {
|
|
674
|
+
window.clearInterval(S.current);
|
|
1753
675
|
return;
|
|
1754
676
|
}
|
|
1755
|
-
|
|
1756
|
-
},
|
|
677
|
+
_ *= Vt, x *= Vt, t(_ * Ge, x * Ge);
|
|
678
|
+
}, Ge);
|
|
1757
679
|
}
|
|
1758
680
|
}
|
|
1759
|
-
var
|
|
1760
|
-
function
|
|
1761
|
-
var
|
|
1762
|
-
|
|
681
|
+
var k = ee();
|
|
682
|
+
function D(w) {
|
|
683
|
+
var N = w.deltaX, m = w.deltaY, h = 0, _ = Math.abs(N), x = Math.abs(m);
|
|
684
|
+
_ === x ? h = k.current === "x" ? N : m : _ > x ? (h = N, k.current = "x") : (h = m, k.current = "y"), t(-h, -h) && w.preventDefault();
|
|
1763
685
|
}
|
|
1764
|
-
var
|
|
1765
|
-
|
|
1766
|
-
onTouchStart:
|
|
1767
|
-
onTouchMove:
|
|
1768
|
-
onTouchEnd:
|
|
1769
|
-
onWheel:
|
|
1770
|
-
},
|
|
1771
|
-
function
|
|
1772
|
-
|
|
686
|
+
var R = ee(null);
|
|
687
|
+
R.current = {
|
|
688
|
+
onTouchStart: P,
|
|
689
|
+
onTouchMove: z,
|
|
690
|
+
onTouchEnd: j,
|
|
691
|
+
onWheel: D
|
|
692
|
+
}, l.useEffect(function() {
|
|
693
|
+
function w(_) {
|
|
694
|
+
R.current.onTouchStart(_);
|
|
1773
695
|
}
|
|
1774
|
-
function
|
|
1775
|
-
|
|
696
|
+
function N(_) {
|
|
697
|
+
R.current.onTouchMove(_);
|
|
1776
698
|
}
|
|
1777
|
-
function
|
|
1778
|
-
|
|
699
|
+
function m(_) {
|
|
700
|
+
R.current.onTouchEnd(_);
|
|
1779
701
|
}
|
|
1780
|
-
function
|
|
1781
|
-
|
|
702
|
+
function h(_) {
|
|
703
|
+
R.current.onWheel(_);
|
|
1782
704
|
}
|
|
1783
|
-
return document.addEventListener("touchmove",
|
|
705
|
+
return document.addEventListener("touchmove", N, {
|
|
1784
706
|
passive: !1
|
|
1785
|
-
}), document.addEventListener("touchend",
|
|
707
|
+
}), document.addEventListener("touchend", m, {
|
|
1786
708
|
passive: !0
|
|
1787
|
-
}), e.current.addEventListener("touchstart",
|
|
709
|
+
}), e.current.addEventListener("touchstart", w, {
|
|
1788
710
|
passive: !0
|
|
1789
|
-
}), e.current.addEventListener("wheel",
|
|
711
|
+
}), e.current.addEventListener("wheel", h, {
|
|
1790
712
|
passive: !1
|
|
1791
713
|
}), function() {
|
|
1792
|
-
document.removeEventListener("touchmove",
|
|
714
|
+
document.removeEventListener("touchmove", N), document.removeEventListener("touchend", m);
|
|
1793
715
|
};
|
|
1794
716
|
}, []);
|
|
1795
717
|
}
|
|
1796
|
-
function
|
|
1797
|
-
var t =
|
|
1798
|
-
return
|
|
1799
|
-
var
|
|
1800
|
-
(
|
|
718
|
+
function ta(e) {
|
|
719
|
+
var t = U(0), a = B(t, 2), n = a[0], r = a[1], o = ee(0), s = ee();
|
|
720
|
+
return s.current = e, Na(function() {
|
|
721
|
+
var i;
|
|
722
|
+
(i = s.current) === null || i === void 0 || i.call(s);
|
|
1801
723
|
}, [n]), function() {
|
|
1802
724
|
o.current === n && (o.current += 1, r(o.current));
|
|
1803
725
|
};
|
|
1804
726
|
}
|
|
1805
|
-
function
|
|
1806
|
-
var t =
|
|
727
|
+
function On(e) {
|
|
728
|
+
var t = ee([]), a = U({}), n = B(a, 2), r = n[1], o = ee(typeof e == "function" ? e() : e), s = ta(function() {
|
|
1807
729
|
var c = o.current;
|
|
1808
|
-
t.current.forEach(function(
|
|
1809
|
-
c =
|
|
730
|
+
t.current.forEach(function(d) {
|
|
731
|
+
c = d(c);
|
|
1810
732
|
}), t.current = [], o.current = c, r({});
|
|
1811
733
|
});
|
|
1812
|
-
function
|
|
1813
|
-
t.current.push(c),
|
|
734
|
+
function i(c) {
|
|
735
|
+
t.current.push(c), s();
|
|
1814
736
|
}
|
|
1815
|
-
return [o.current,
|
|
737
|
+
return [o.current, i];
|
|
1816
738
|
}
|
|
1817
|
-
var
|
|
739
|
+
var Kt = {
|
|
1818
740
|
width: 0,
|
|
1819
741
|
height: 0,
|
|
1820
742
|
left: 0,
|
|
1821
743
|
top: 0,
|
|
1822
744
|
right: 0
|
|
1823
745
|
};
|
|
1824
|
-
function
|
|
1825
|
-
var
|
|
1826
|
-
return ["top", "bottom"].includes(c) ? (
|
|
1827
|
-
if (!
|
|
746
|
+
function Tn(e, t, a, n, r, o, s) {
|
|
747
|
+
var i = s.tabs, c = s.tabPosition, d = s.rtl, g, f, b;
|
|
748
|
+
return ["top", "bottom"].includes(c) ? (g = "width", f = d ? "right" : "left", b = Math.abs(a)) : (g = "height", f = "top", b = -a), Qt(function() {
|
|
749
|
+
if (!i.length)
|
|
1828
750
|
return [0, 0];
|
|
1829
|
-
for (var
|
|
1830
|
-
var
|
|
1831
|
-
if (Math.floor(
|
|
1832
|
-
|
|
751
|
+
for (var C = i.length, T = C, p = 0; p < C; p += 1) {
|
|
752
|
+
var O = e.get(i[p].key) || Kt;
|
|
753
|
+
if (Math.floor(O[f] + O[g]) > Math.floor(b + t)) {
|
|
754
|
+
T = p - 1;
|
|
1833
755
|
break;
|
|
1834
756
|
}
|
|
1835
757
|
}
|
|
1836
|
-
for (var
|
|
1837
|
-
var
|
|
1838
|
-
if (
|
|
1839
|
-
|
|
758
|
+
for (var y = 0, S = C - 1; S >= 0; S -= 1) {
|
|
759
|
+
var P = e.get(i[S].key) || Kt;
|
|
760
|
+
if (P[f] < b) {
|
|
761
|
+
y = S + 1;
|
|
1840
762
|
break;
|
|
1841
763
|
}
|
|
1842
764
|
}
|
|
1843
|
-
return
|
|
1844
|
-
}, [e, t, n, r, o,
|
|
1845
|
-
return
|
|
1846
|
-
}).join("_"),
|
|
765
|
+
return y >= T ? [0, 0] : [y, T];
|
|
766
|
+
}, [e, t, n, r, o, b, c, i.map(function(C) {
|
|
767
|
+
return C.key;
|
|
768
|
+
}).join("_"), d]);
|
|
1847
769
|
}
|
|
1848
|
-
function
|
|
770
|
+
function qt(e) {
|
|
1849
771
|
var t;
|
|
1850
772
|
return e instanceof Map ? (t = {}, e.forEach(function(a, n) {
|
|
1851
773
|
t[n] = a;
|
|
1852
774
|
})) : t = e, JSON.stringify(t);
|
|
1853
775
|
}
|
|
1854
|
-
var
|
|
1855
|
-
function
|
|
1856
|
-
return String(e).replace(/"/g,
|
|
776
|
+
var Nn = "TABS_DQ";
|
|
777
|
+
function aa(e) {
|
|
778
|
+
return String(e).replace(/"/g, Nn);
|
|
1857
779
|
}
|
|
1858
|
-
function
|
|
780
|
+
function ht(e, t, a, n) {
|
|
1859
781
|
return (
|
|
1860
782
|
// Only editable tabs can be removed
|
|
1861
783
|
!(!a || // Tabs cannot be removed when disabled
|
|
@@ -1864,192 +786,192 @@ function Hn(e, t, a, n) {
|
|
|
1864
786
|
e === void 0 && (t === !1 || t === null))
|
|
1865
787
|
);
|
|
1866
788
|
}
|
|
1867
|
-
var
|
|
789
|
+
var na = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
1868
790
|
var a = e.prefixCls, n = e.editable, r = e.locale, o = e.style;
|
|
1869
|
-
return !n || n.showAdd === !1 ? null : /* @__PURE__ */
|
|
791
|
+
return !n || n.showAdd === !1 ? null : /* @__PURE__ */ l.createElement("button", {
|
|
1870
792
|
ref: t,
|
|
1871
793
|
type: "button",
|
|
1872
794
|
className: "".concat(a, "-nav-add"),
|
|
1873
795
|
style: o,
|
|
1874
796
|
"aria-label": (r == null ? void 0 : r.addAriaLabel) || "Add tab",
|
|
1875
|
-
onClick: function(
|
|
797
|
+
onClick: function(i) {
|
|
1876
798
|
n.onEdit("add", {
|
|
1877
|
-
event:
|
|
799
|
+
event: i
|
|
1878
800
|
});
|
|
1879
801
|
}
|
|
1880
802
|
}, n.addIcon || "+");
|
|
1881
|
-
}),
|
|
803
|
+
}), ut = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
1882
804
|
var a = e.position, n = e.prefixCls, r = e.extra;
|
|
1883
805
|
if (!r)
|
|
1884
806
|
return null;
|
|
1885
|
-
var o,
|
|
1886
|
-
return
|
|
807
|
+
var o, s = {};
|
|
808
|
+
return vt(r) === "object" && !/* @__PURE__ */ l.isValidElement(r) ? s = r : s.right = r, a === "right" && (o = s.right), a === "left" && (o = s.left), o ? /* @__PURE__ */ l.createElement("div", {
|
|
1887
809
|
className: "".concat(n, "-extra-content"),
|
|
1888
810
|
ref: t
|
|
1889
811
|
}, o) : null;
|
|
1890
812
|
});
|
|
1891
|
-
process.env.NODE_ENV !== "production" && (
|
|
1892
|
-
var
|
|
1893
|
-
var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale,
|
|
1894
|
-
function
|
|
1895
|
-
|
|
1896
|
-
key:
|
|
1897
|
-
event:
|
|
813
|
+
process.env.NODE_ENV !== "production" && (ut.displayName = "ExtraContent");
|
|
814
|
+
var In = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
815
|
+
var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale, s = e.mobile, i = e.more, c = i === void 0 ? {} : i, d = e.style, g = e.className, f = e.editable, b = e.tabBarGutter, C = e.rtl, T = e.removeAriaLabel, p = e.onTabClick, O = e.getPopupContainer, y = e.popupClassName, S = U(!1), P = B(S, 2), z = P[0], j = P[1], k = U(null), D = B(k, 2), R = D[0], w = D[1], N = c.icon, m = N === void 0 ? "More" : N, h = "".concat(n, "-more-popup"), _ = "".concat(a, "-dropdown"), x = R !== null ? "".concat(h, "-").concat(R) : null, G = o == null ? void 0 : o.dropdownAriaLabel;
|
|
816
|
+
function X(I, H) {
|
|
817
|
+
I.preventDefault(), I.stopPropagation(), f.onEdit("remove", {
|
|
818
|
+
key: H,
|
|
819
|
+
event: I
|
|
1898
820
|
});
|
|
1899
821
|
}
|
|
1900
|
-
var
|
|
1901
|
-
onClick: function(
|
|
1902
|
-
var
|
|
1903
|
-
|
|
822
|
+
var v = /* @__PURE__ */ l.createElement(Da, {
|
|
823
|
+
onClick: function(H) {
|
|
824
|
+
var W = H.key, Q = H.domEvent;
|
|
825
|
+
p(W, Q), j(!1);
|
|
1904
826
|
},
|
|
1905
|
-
prefixCls: "".concat(
|
|
1906
|
-
id:
|
|
827
|
+
prefixCls: "".concat(_, "-menu"),
|
|
828
|
+
id: h,
|
|
1907
829
|
tabIndex: -1,
|
|
1908
830
|
role: "listbox",
|
|
1909
|
-
"aria-activedescendant":
|
|
1910
|
-
selectedKeys: [
|
|
1911
|
-
"aria-label":
|
|
1912
|
-
}, r.map(function(
|
|
1913
|
-
var
|
|
1914
|
-
return /* @__PURE__ */
|
|
1915
|
-
key:
|
|
1916
|
-
id: "".concat(
|
|
831
|
+
"aria-activedescendant": x,
|
|
832
|
+
selectedKeys: [R],
|
|
833
|
+
"aria-label": G !== void 0 ? G : "expanded dropdown"
|
|
834
|
+
}, r.map(function(I) {
|
|
835
|
+
var H = I.closable, W = I.disabled, Q = I.closeIcon, Z = I.key, ne = I.label, ae = ht(H, Q, f, W);
|
|
836
|
+
return /* @__PURE__ */ l.createElement(Aa, {
|
|
837
|
+
key: Z,
|
|
838
|
+
id: "".concat(h, "-").concat(Z),
|
|
1917
839
|
role: "option",
|
|
1918
|
-
"aria-controls": n && "".concat(n, "-panel-").concat(
|
|
1919
|
-
disabled:
|
|
1920
|
-
}, /* @__PURE__ */
|
|
840
|
+
"aria-controls": n && "".concat(n, "-panel-").concat(Z),
|
|
841
|
+
disabled: W
|
|
842
|
+
}, /* @__PURE__ */ l.createElement("span", null, ne), ae && /* @__PURE__ */ l.createElement("button", {
|
|
1921
843
|
type: "button",
|
|
1922
|
-
"aria-label":
|
|
844
|
+
"aria-label": T || "remove",
|
|
1923
845
|
tabIndex: 0,
|
|
1924
|
-
className: "".concat(
|
|
1925
|
-
onClick: function(
|
|
1926
|
-
|
|
846
|
+
className: "".concat(_, "-menu-item-remove"),
|
|
847
|
+
onClick: function(fe) {
|
|
848
|
+
fe.stopPropagation(), X(fe, Z);
|
|
1927
849
|
}
|
|
1928
|
-
},
|
|
850
|
+
}, Q || f.removeIcon || "×"));
|
|
1929
851
|
}));
|
|
1930
|
-
function
|
|
1931
|
-
for (var
|
|
1932
|
-
return !
|
|
1933
|
-
}),
|
|
1934
|
-
return
|
|
1935
|
-
}) || 0,
|
|
1936
|
-
|
|
1937
|
-
var
|
|
1938
|
-
if (!
|
|
1939
|
-
|
|
852
|
+
function Y(I) {
|
|
853
|
+
for (var H = r.filter(function(ae) {
|
|
854
|
+
return !ae.disabled;
|
|
855
|
+
}), W = H.findIndex(function(ae) {
|
|
856
|
+
return ae.key === R;
|
|
857
|
+
}) || 0, Q = H.length, Z = 0; Z < Q; Z += 1) {
|
|
858
|
+
W = (W + I + Q) % Q;
|
|
859
|
+
var ne = H[W];
|
|
860
|
+
if (!ne.disabled) {
|
|
861
|
+
w(ne.key);
|
|
1940
862
|
return;
|
|
1941
863
|
}
|
|
1942
864
|
}
|
|
1943
865
|
}
|
|
1944
|
-
function
|
|
1945
|
-
var
|
|
1946
|
-
if (!
|
|
1947
|
-
[
|
|
866
|
+
function se(I) {
|
|
867
|
+
var H = I.which;
|
|
868
|
+
if (!z) {
|
|
869
|
+
[Ce.DOWN, Ce.SPACE, Ce.ENTER].includes(H) && (j(!0), I.preventDefault());
|
|
1948
870
|
return;
|
|
1949
871
|
}
|
|
1950
|
-
switch (
|
|
1951
|
-
case
|
|
1952
|
-
|
|
872
|
+
switch (H) {
|
|
873
|
+
case Ce.UP:
|
|
874
|
+
Y(-1), I.preventDefault();
|
|
1953
875
|
break;
|
|
1954
|
-
case
|
|
1955
|
-
|
|
876
|
+
case Ce.DOWN:
|
|
877
|
+
Y(1), I.preventDefault();
|
|
1956
878
|
break;
|
|
1957
|
-
case
|
|
1958
|
-
|
|
879
|
+
case Ce.ESC:
|
|
880
|
+
j(!1);
|
|
1959
881
|
break;
|
|
1960
|
-
case
|
|
1961
|
-
case
|
|
1962
|
-
|
|
882
|
+
case Ce.SPACE:
|
|
883
|
+
case Ce.ENTER:
|
|
884
|
+
R !== null && p(R, I);
|
|
1963
885
|
break;
|
|
1964
886
|
}
|
|
1965
887
|
}
|
|
1966
|
-
|
|
1967
|
-
var
|
|
1968
|
-
|
|
1969
|
-
}, [
|
|
1970
|
-
|
|
1971
|
-
}, [
|
|
1972
|
-
var
|
|
1973
|
-
r.length || (
|
|
1974
|
-
var
|
|
1975
|
-
prefixCls:
|
|
1976
|
-
overlay:
|
|
1977
|
-
visible: r.length ?
|
|
1978
|
-
onVisibleChange:
|
|
1979
|
-
overlayClassName:
|
|
888
|
+
me(function() {
|
|
889
|
+
var I = document.getElementById(x);
|
|
890
|
+
I && I.scrollIntoView && I.scrollIntoView(!1);
|
|
891
|
+
}, [R]), me(function() {
|
|
892
|
+
z || w(null);
|
|
893
|
+
}, [z]);
|
|
894
|
+
var q = te({}, C ? "marginRight" : "marginLeft", b);
|
|
895
|
+
r.length || (q.visibility = "hidden", q.order = 1);
|
|
896
|
+
var J = E(te({}, "".concat(_, "-rtl"), C)), ce = s ? null : /* @__PURE__ */ l.createElement(Ha, he({
|
|
897
|
+
prefixCls: _,
|
|
898
|
+
overlay: v,
|
|
899
|
+
visible: r.length ? z : !1,
|
|
900
|
+
onVisibleChange: j,
|
|
901
|
+
overlayClassName: E(J, y),
|
|
1980
902
|
mouseEnterDelay: 0.1,
|
|
1981
903
|
mouseLeaveDelay: 0.1,
|
|
1982
|
-
getPopupContainer:
|
|
1983
|
-
}, c), /* @__PURE__ */
|
|
904
|
+
getPopupContainer: O
|
|
905
|
+
}, c), /* @__PURE__ */ l.createElement("button", {
|
|
1984
906
|
type: "button",
|
|
1985
907
|
className: "".concat(a, "-nav-more"),
|
|
1986
|
-
style:
|
|
908
|
+
style: q,
|
|
1987
909
|
tabIndex: -1,
|
|
1988
910
|
"aria-hidden": "true",
|
|
1989
911
|
"aria-haspopup": "listbox",
|
|
1990
|
-
"aria-controls":
|
|
912
|
+
"aria-controls": h,
|
|
1991
913
|
id: "".concat(n, "-more"),
|
|
1992
|
-
"aria-expanded":
|
|
1993
|
-
onKeyDown:
|
|
1994
|
-
},
|
|
1995
|
-
return /* @__PURE__ */
|
|
1996
|
-
className:
|
|
1997
|
-
style:
|
|
914
|
+
"aria-expanded": z,
|
|
915
|
+
onKeyDown: se
|
|
916
|
+
}, m));
|
|
917
|
+
return /* @__PURE__ */ l.createElement("div", {
|
|
918
|
+
className: E("".concat(a, "-nav-operations"), g),
|
|
919
|
+
style: d,
|
|
1998
920
|
ref: t
|
|
1999
|
-
},
|
|
921
|
+
}, ce, /* @__PURE__ */ l.createElement(na, {
|
|
2000
922
|
prefixCls: a,
|
|
2001
923
|
locale: o,
|
|
2002
|
-
editable:
|
|
924
|
+
editable: f
|
|
2003
925
|
}));
|
|
2004
926
|
});
|
|
2005
|
-
const
|
|
927
|
+
const Rn = /* @__PURE__ */ l.memo(In, function(e, t) {
|
|
2006
928
|
return (
|
|
2007
929
|
// https://github.com/ant-design/ant-design/issues/32544
|
|
2008
930
|
// We'd better remove syntactic sugar in `rc-menu` since this has perf issue
|
|
2009
931
|
t.tabMoving
|
|
2010
932
|
);
|
|
2011
933
|
});
|
|
2012
|
-
var
|
|
2013
|
-
var a = t.prefixCls, n = t.id, r = t.active, o = t.focus,
|
|
2014
|
-
function
|
|
2015
|
-
|
|
934
|
+
var zn = function(t) {
|
|
935
|
+
var a = t.prefixCls, n = t.id, r = t.active, o = t.focus, s = t.tab, i = s.key, c = s.label, d = s.disabled, g = s.closeIcon, f = s.icon, b = t.closable, C = t.renderWrapper, T = t.removeAriaLabel, p = t.editable, O = t.onClick, y = t.onFocus, S = t.onBlur, P = t.onKeyDown, z = t.onMouseDown, j = t.onMouseUp, k = t.style, D = t.tabCount, R = t.currentPosition, w = "".concat(a, "-tab"), N = ht(b, g, p, d);
|
|
936
|
+
function m(X) {
|
|
937
|
+
d || O(X);
|
|
2016
938
|
}
|
|
2017
|
-
function
|
|
2018
|
-
|
|
2019
|
-
key:
|
|
2020
|
-
event:
|
|
939
|
+
function h(X) {
|
|
940
|
+
X.preventDefault(), X.stopPropagation(), p.onEdit("remove", {
|
|
941
|
+
key: i,
|
|
942
|
+
event: X
|
|
2021
943
|
});
|
|
2022
944
|
}
|
|
2023
|
-
var
|
|
2024
|
-
return
|
|
2025
|
-
}, [c,
|
|
2026
|
-
|
|
2027
|
-
o &&
|
|
945
|
+
var _ = l.useMemo(function() {
|
|
946
|
+
return f && typeof c == "string" ? /* @__PURE__ */ l.createElement("span", null, c) : c;
|
|
947
|
+
}, [c, f]), x = l.useRef(null);
|
|
948
|
+
l.useEffect(function() {
|
|
949
|
+
o && x.current && x.current.focus();
|
|
2028
950
|
}, [o]);
|
|
2029
|
-
var
|
|
2030
|
-
key:
|
|
2031
|
-
"data-node-key":
|
|
2032
|
-
className:
|
|
2033
|
-
style:
|
|
2034
|
-
onClick:
|
|
2035
|
-
}, /* @__PURE__ */
|
|
2036
|
-
ref:
|
|
951
|
+
var G = /* @__PURE__ */ l.createElement("div", {
|
|
952
|
+
key: i,
|
|
953
|
+
"data-node-key": aa(i),
|
|
954
|
+
className: E(w, te(te(te(te({}, "".concat(w, "-with-remove"), N), "".concat(w, "-active"), r), "".concat(w, "-disabled"), d), "".concat(w, "-focus"), o)),
|
|
955
|
+
style: k,
|
|
956
|
+
onClick: m
|
|
957
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
958
|
+
ref: x,
|
|
2037
959
|
role: "tab",
|
|
2038
960
|
"aria-selected": r,
|
|
2039
|
-
id: n && "".concat(n, "-tab-").concat(
|
|
2040
|
-
className: "".concat(
|
|
2041
|
-
"aria-controls": n && "".concat(n, "-panel-").concat(
|
|
2042
|
-
"aria-disabled":
|
|
2043
|
-
tabIndex:
|
|
2044
|
-
onClick: function(
|
|
2045
|
-
|
|
961
|
+
id: n && "".concat(n, "-tab-").concat(i),
|
|
962
|
+
className: "".concat(w, "-btn"),
|
|
963
|
+
"aria-controls": n && "".concat(n, "-panel-").concat(i),
|
|
964
|
+
"aria-disabled": d,
|
|
965
|
+
tabIndex: d ? null : r ? 0 : -1,
|
|
966
|
+
onClick: function(v) {
|
|
967
|
+
v.stopPropagation(), m(v);
|
|
2046
968
|
},
|
|
2047
|
-
onKeyDown:
|
|
2048
|
-
onMouseDown:
|
|
2049
|
-
onMouseUp:
|
|
2050
|
-
onFocus:
|
|
2051
|
-
onBlur:
|
|
2052
|
-
}, o && /* @__PURE__ */
|
|
969
|
+
onKeyDown: P,
|
|
970
|
+
onMouseDown: z,
|
|
971
|
+
onMouseUp: j,
|
|
972
|
+
onFocus: y,
|
|
973
|
+
onBlur: S
|
|
974
|
+
}, o && /* @__PURE__ */ l.createElement("div", {
|
|
2053
975
|
"aria-live": "polite",
|
|
2054
976
|
style: {
|
|
2055
977
|
width: 0,
|
|
@@ -2058,341 +980,341 @@ var ki = function(t) {
|
|
|
2058
980
|
overflow: "hidden",
|
|
2059
981
|
opacity: 0
|
|
2060
982
|
}
|
|
2061
|
-
}, "Tab ".concat(
|
|
2062
|
-
className: "".concat(
|
|
2063
|
-
},
|
|
983
|
+
}, "Tab ".concat(R, " of ").concat(D)), f && /* @__PURE__ */ l.createElement("span", {
|
|
984
|
+
className: "".concat(w, "-icon")
|
|
985
|
+
}, f), c && _), N && /* @__PURE__ */ l.createElement("button", {
|
|
2064
986
|
type: "button",
|
|
2065
|
-
"aria-label":
|
|
987
|
+
"aria-label": T || "remove",
|
|
2066
988
|
tabIndex: r ? 0 : -1,
|
|
2067
|
-
className: "".concat(
|
|
2068
|
-
onClick: function(
|
|
2069
|
-
|
|
989
|
+
className: "".concat(w, "-remove"),
|
|
990
|
+
onClick: function(v) {
|
|
991
|
+
v.stopPropagation(), h(v);
|
|
2070
992
|
}
|
|
2071
|
-
},
|
|
2072
|
-
return
|
|
2073
|
-
},
|
|
2074
|
-
var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop,
|
|
2075
|
-
return Math.abs(c - n) < 1 ? [c,
|
|
2076
|
-
},
|
|
2077
|
-
var a = t.current || {}, n = a.offsetWidth, r = n === void 0 ? 0 : n, o = a.offsetHeight,
|
|
993
|
+
}, g || p.removeIcon || "×"));
|
|
994
|
+
return C ? C(G) : G;
|
|
995
|
+
}, Mn = function(t, a) {
|
|
996
|
+
var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, s = t.offsetLeft, i = t.getBoundingClientRect(), c = i.width, d = i.height, g = i.left, f = i.top;
|
|
997
|
+
return Math.abs(c - n) < 1 ? [c, d, g - a.left, f - a.top] : [n, r, s, o];
|
|
998
|
+
}, Ie = function(t) {
|
|
999
|
+
var a = t.current || {}, n = a.offsetWidth, r = n === void 0 ? 0 : n, o = a.offsetHeight, s = o === void 0 ? 0 : o;
|
|
2078
1000
|
if (t.current) {
|
|
2079
|
-
var
|
|
1001
|
+
var i = t.current.getBoundingClientRect(), c = i.width, d = i.height;
|
|
2080
1002
|
if (Math.abs(c - r) < 1)
|
|
2081
|
-
return [c,
|
|
1003
|
+
return [c, d];
|
|
2082
1004
|
}
|
|
2083
|
-
return [r,
|
|
2084
|
-
},
|
|
1005
|
+
return [r, s];
|
|
1006
|
+
}, ke = function(t, a) {
|
|
2085
1007
|
return t[a ? 0 : 1];
|
|
2086
|
-
},
|
|
2087
|
-
var a = e.className, n = e.style, r = e.id, o = e.animated,
|
|
2088
|
-
|
|
2089
|
-
direction:
|
|
1008
|
+
}, Ft = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
1009
|
+
var a = e.className, n = e.style, r = e.id, o = e.animated, s = e.activeKey, i = e.rtl, c = e.extra, d = e.editable, g = e.locale, f = e.tabPosition, b = e.tabBarGutter, C = e.children, T = e.onTabClick, p = e.onTabScroll, O = e.indicator, y = l.useContext(Xe), S = y.prefixCls, P = y.tabs, z = ee(null), j = ee(null), k = ee(null), D = ee(null), R = ee(null), w = ee(null), N = ee(null), m = f === "top" || f === "bottom", h = Gt(0, function(M, $) {
|
|
1010
|
+
m && p && p({
|
|
1011
|
+
direction: M > $ ? "left" : "right"
|
|
2090
1012
|
});
|
|
2091
|
-
}),
|
|
2092
|
-
!
|
|
2093
|
-
direction:
|
|
1013
|
+
}), _ = B(h, 2), x = _[0], G = _[1], X = Gt(0, function(M, $) {
|
|
1014
|
+
!m && p && p({
|
|
1015
|
+
direction: M > $ ? "top" : "bottom"
|
|
2094
1016
|
});
|
|
2095
|
-
}),
|
|
2096
|
-
|
|
2097
|
-
function
|
|
2098
|
-
return
|
|
1017
|
+
}), v = B(X, 2), Y = v[0], se = v[1], q = U([0, 0]), J = B(q, 2), ce = J[0], I = J[1], H = U([0, 0]), W = B(H, 2), Q = W[0], Z = W[1], ne = U([0, 0]), ae = B(ne, 2), $e = ae[0], fe = ae[1], re = U([0, 0]), ye = B(re, 2), L = ye[0], de = ye[1], xe = On(/* @__PURE__ */ new Map()), Be = B(xe, 2), F = Be[0], V = Be[1], ue = wn(P, F, Q[0]), _e = ke(ce, m), Me = ke(Q, m), Ye = ke($e, m), St = ke(L, m), Ct = Math.floor(_e) < Math.floor(Me + Ye), ge = Ct ? _e - St : _e - Ye, sa = "".concat(S, "-nav-operations-hidden"), Se = 0, we = 0;
|
|
1018
|
+
m && i ? (Se = 0, we = Math.max(0, Me - ge)) : (Se = Math.min(0, ge - Me), we = 0);
|
|
1019
|
+
function Qe(M) {
|
|
1020
|
+
return M < Se ? Se : M > we ? we : M;
|
|
2099
1021
|
}
|
|
2100
|
-
var
|
|
2101
|
-
function
|
|
2102
|
-
|
|
1022
|
+
var Ze = ee(null), ca = U(), xt = B(ca, 2), De = xt[0], _t = xt[1];
|
|
1023
|
+
function Je() {
|
|
1024
|
+
_t(Date.now());
|
|
2103
1025
|
}
|
|
2104
|
-
function
|
|
2105
|
-
|
|
1026
|
+
function et() {
|
|
1027
|
+
Ze.current && clearTimeout(Ze.current);
|
|
2106
1028
|
}
|
|
2107
|
-
|
|
2108
|
-
function
|
|
2109
|
-
|
|
2110
|
-
var
|
|
2111
|
-
return
|
|
1029
|
+
Pn(D, function(M, $) {
|
|
1030
|
+
function A(K, ve) {
|
|
1031
|
+
K(function(ie) {
|
|
1032
|
+
var Te = Qe(ie + ve);
|
|
1033
|
+
return Te;
|
|
2112
1034
|
});
|
|
2113
1035
|
}
|
|
2114
|
-
return
|
|
2115
|
-
}),
|
|
2116
|
-
return
|
|
2117
|
-
|
|
2118
|
-
}, 100)),
|
|
2119
|
-
}, [
|
|
2120
|
-
var
|
|
2121
|
-
|
|
1036
|
+
return Ct ? (m ? A(G, M) : A(se, $), et(), Je(), !0) : !1;
|
|
1037
|
+
}), me(function() {
|
|
1038
|
+
return et(), De && (Ze.current = setTimeout(function() {
|
|
1039
|
+
_t(0);
|
|
1040
|
+
}, 100)), et;
|
|
1041
|
+
}, [De]);
|
|
1042
|
+
var da = Tn(
|
|
1043
|
+
ue,
|
|
2122
1044
|
// Container
|
|
2123
|
-
|
|
1045
|
+
ge,
|
|
2124
1046
|
// Transform
|
|
2125
|
-
|
|
1047
|
+
m ? x : Y,
|
|
2126
1048
|
// Tabs
|
|
2127
|
-
|
|
1049
|
+
Me,
|
|
2128
1050
|
// Add
|
|
2129
|
-
et,
|
|
2130
|
-
// Operation
|
|
2131
1051
|
Ye,
|
|
2132
|
-
|
|
2133
|
-
|
|
1052
|
+
// Operation
|
|
1053
|
+
St,
|
|
1054
|
+
le(le({}, e), {}, {
|
|
1055
|
+
tabs: P
|
|
2134
1056
|
})
|
|
2135
|
-
),
|
|
2136
|
-
var
|
|
1057
|
+
), wt = B(da, 2), ua = wt[0], va = wt[1], Et = Ia(function() {
|
|
1058
|
+
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : s, $ = ue.get(M) || {
|
|
2137
1059
|
width: 0,
|
|
2138
1060
|
height: 0,
|
|
2139
1061
|
left: 0,
|
|
2140
1062
|
right: 0,
|
|
2141
1063
|
top: 0
|
|
2142
1064
|
};
|
|
2143
|
-
if (
|
|
2144
|
-
var
|
|
2145
|
-
|
|
1065
|
+
if (m) {
|
|
1066
|
+
var A = x;
|
|
1067
|
+
i ? $.right < x ? A = $.right : $.right + $.width > x + ge && (A = $.right + $.width - ge) : $.left < -x ? A = -$.left : $.left + $.width > -x + ge && (A = -($.left + $.width - ge)), se(0), G(Qe(A));
|
|
2146
1068
|
} else {
|
|
2147
|
-
var
|
|
2148
|
-
|
|
1069
|
+
var K = Y;
|
|
1070
|
+
$.top < -Y ? K = -$.top : $.top + $.height > -Y + ge && (K = -($.top + $.height - ge)), G(0), se(Qe(K));
|
|
2149
1071
|
}
|
|
2150
|
-
}),
|
|
2151
|
-
return !
|
|
2152
|
-
}).map(function(
|
|
2153
|
-
return
|
|
2154
|
-
}),
|
|
2155
|
-
var
|
|
2156
|
-
|
|
2157
|
-
},
|
|
2158
|
-
var
|
|
2159
|
-
switch (
|
|
1072
|
+
}), fa = U(), Pt = B(fa, 2), Pe = Pt[0], Le = Pt[1], ga = U(!1), Ot = B(ga, 2), ma = Ot[0], Tt = Ot[1], pe = P.filter(function(M) {
|
|
1073
|
+
return !M.disabled;
|
|
1074
|
+
}).map(function(M) {
|
|
1075
|
+
return M.key;
|
|
1076
|
+
}), Oe = function($) {
|
|
1077
|
+
var A = pe.indexOf(Pe || s), K = pe.length, ve = (A + $ + K) % K, ie = pe[ve];
|
|
1078
|
+
Le(ie);
|
|
1079
|
+
}, ba = function($) {
|
|
1080
|
+
var A = $.code, K = i && m, ve = pe[0], ie = pe[pe.length - 1];
|
|
1081
|
+
switch (A) {
|
|
2160
1082
|
case "ArrowLeft": {
|
|
2161
|
-
|
|
1083
|
+
m && Oe(K ? 1 : -1);
|
|
2162
1084
|
break;
|
|
2163
1085
|
}
|
|
2164
1086
|
case "ArrowRight": {
|
|
2165
|
-
|
|
1087
|
+
m && Oe(K ? -1 : 1);
|
|
2166
1088
|
break;
|
|
2167
1089
|
}
|
|
2168
1090
|
case "ArrowUp": {
|
|
2169
|
-
|
|
1091
|
+
$.preventDefault(), m || Oe(-1);
|
|
2170
1092
|
break;
|
|
2171
1093
|
}
|
|
2172
1094
|
case "ArrowDown": {
|
|
2173
|
-
|
|
1095
|
+
$.preventDefault(), m || Oe(1);
|
|
2174
1096
|
break;
|
|
2175
1097
|
}
|
|
2176
1098
|
case "Home": {
|
|
2177
|
-
|
|
1099
|
+
$.preventDefault(), Le(ve);
|
|
2178
1100
|
break;
|
|
2179
1101
|
}
|
|
2180
1102
|
case "End": {
|
|
2181
|
-
|
|
1103
|
+
$.preventDefault(), Le(ie);
|
|
2182
1104
|
break;
|
|
2183
1105
|
}
|
|
2184
1106
|
case "Enter":
|
|
2185
1107
|
case "Space": {
|
|
2186
|
-
|
|
1108
|
+
$.preventDefault(), T(Pe, $);
|
|
2187
1109
|
break;
|
|
2188
1110
|
}
|
|
2189
1111
|
case "Backspace":
|
|
2190
1112
|
case "Delete": {
|
|
2191
|
-
var
|
|
2192
|
-
return
|
|
2193
|
-
}),
|
|
2194
|
-
|
|
2195
|
-
key:
|
|
2196
|
-
event:
|
|
2197
|
-
}),
|
|
1113
|
+
var Te = pe.indexOf(Pe), oe = P.find(function(Ne) {
|
|
1114
|
+
return Ne.key === Pe;
|
|
1115
|
+
}), nt = ht(oe == null ? void 0 : oe.closable, oe == null ? void 0 : oe.closeIcon, d, oe == null ? void 0 : oe.disabled);
|
|
1116
|
+
nt && ($.preventDefault(), $.stopPropagation(), d.onEdit("remove", {
|
|
1117
|
+
key: Pe,
|
|
1118
|
+
event: $
|
|
1119
|
+
}), Te === pe.length - 1 ? Oe(-1) : Oe(1));
|
|
2198
1120
|
break;
|
|
2199
1121
|
}
|
|
2200
1122
|
}
|
|
2201
|
-
},
|
|
2202
|
-
|
|
2203
|
-
var
|
|
2204
|
-
var
|
|
2205
|
-
return /* @__PURE__ */
|
|
1123
|
+
}, Ae = {};
|
|
1124
|
+
m ? Ae[i ? "marginRight" : "marginLeft"] = b : Ae.marginTop = b;
|
|
1125
|
+
var Nt = P.map(function(M, $) {
|
|
1126
|
+
var A = M.key;
|
|
1127
|
+
return /* @__PURE__ */ l.createElement(zn, {
|
|
2206
1128
|
id: r,
|
|
2207
|
-
prefixCls:
|
|
2208
|
-
key:
|
|
2209
|
-
tab:
|
|
2210
|
-
style:
|
|
2211
|
-
closable:
|
|
2212
|
-
editable:
|
|
2213
|
-
active:
|
|
2214
|
-
focus:
|
|
2215
|
-
renderWrapper:
|
|
2216
|
-
removeAriaLabel:
|
|
1129
|
+
prefixCls: S,
|
|
1130
|
+
key: A,
|
|
1131
|
+
tab: M,
|
|
1132
|
+
style: $ === 0 ? void 0 : Ae,
|
|
1133
|
+
closable: M.closable,
|
|
1134
|
+
editable: d,
|
|
1135
|
+
active: A === s,
|
|
1136
|
+
focus: A === Pe,
|
|
1137
|
+
renderWrapper: C,
|
|
1138
|
+
removeAriaLabel: g == null ? void 0 : g.removeAriaLabel,
|
|
2217
1139
|
tabCount: pe.length,
|
|
2218
|
-
currentPosition:
|
|
2219
|
-
onClick: function(
|
|
2220
|
-
|
|
1140
|
+
currentPosition: $ + 1,
|
|
1141
|
+
onClick: function(ve) {
|
|
1142
|
+
T(A, ve);
|
|
2221
1143
|
},
|
|
2222
|
-
onKeyDown:
|
|
1144
|
+
onKeyDown: ba,
|
|
2223
1145
|
onFocus: function() {
|
|
2224
|
-
|
|
1146
|
+
ma || Le(A), Et(A), Je(), D.current && (i || (D.current.scrollLeft = 0), D.current.scrollTop = 0);
|
|
2225
1147
|
},
|
|
2226
1148
|
onBlur: function() {
|
|
2227
|
-
|
|
1149
|
+
Le(void 0);
|
|
2228
1150
|
},
|
|
2229
1151
|
onMouseDown: function() {
|
|
2230
|
-
|
|
1152
|
+
Tt(!0);
|
|
2231
1153
|
},
|
|
2232
1154
|
onMouseUp: function() {
|
|
2233
|
-
|
|
1155
|
+
Tt(!1);
|
|
2234
1156
|
}
|
|
2235
1157
|
});
|
|
2236
|
-
}),
|
|
2237
|
-
return
|
|
2238
|
-
var
|
|
2239
|
-
return
|
|
2240
|
-
var
|
|
2241
|
-
if (
|
|
2242
|
-
var
|
|
2243
|
-
|
|
2244
|
-
width:
|
|
2245
|
-
height:
|
|
2246
|
-
left:
|
|
2247
|
-
top:
|
|
1158
|
+
}), It = function() {
|
|
1159
|
+
return V(function() {
|
|
1160
|
+
var $, A = /* @__PURE__ */ new Map(), K = ($ = R.current) === null || $ === void 0 ? void 0 : $.getBoundingClientRect();
|
|
1161
|
+
return P.forEach(function(ve) {
|
|
1162
|
+
var ie, Te = ve.key, oe = (ie = R.current) === null || ie === void 0 ? void 0 : ie.querySelector('[data-node-key="'.concat(aa(Te), '"]'));
|
|
1163
|
+
if (oe) {
|
|
1164
|
+
var nt = Mn(oe, K), Ne = B(nt, 4), Sa = Ne[0], Ca = Ne[1], xa = Ne[2], _a = Ne[3];
|
|
1165
|
+
A.set(Te, {
|
|
1166
|
+
width: Sa,
|
|
1167
|
+
height: Ca,
|
|
1168
|
+
left: xa,
|
|
1169
|
+
top: _a
|
|
2248
1170
|
});
|
|
2249
1171
|
}
|
|
2250
|
-
}),
|
|
1172
|
+
}), A;
|
|
2251
1173
|
});
|
|
2252
1174
|
};
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
}, [
|
|
2256
|
-
return
|
|
1175
|
+
me(function() {
|
|
1176
|
+
It();
|
|
1177
|
+
}, [P.map(function(M) {
|
|
1178
|
+
return M.key;
|
|
2257
1179
|
}).join("_")]);
|
|
2258
|
-
var
|
|
2259
|
-
var
|
|
2260
|
-
|
|
2261
|
-
var
|
|
2262
|
-
|
|
2263
|
-
var
|
|
2264
|
-
|
|
2265
|
-
var
|
|
2266
|
-
|
|
2267
|
-
}),
|
|
2268
|
-
activeTabOffset:
|
|
2269
|
-
horizontal:
|
|
2270
|
-
indicator:
|
|
2271
|
-
rtl:
|
|
2272
|
-
}),
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
}, [
|
|
2276
|
-
|
|
2277
|
-
}, [
|
|
2278
|
-
var
|
|
2279
|
-
return
|
|
2280
|
-
onResize:
|
|
2281
|
-
}, /* @__PURE__ */
|
|
2282
|
-
ref:
|
|
1180
|
+
var He = ta(function() {
|
|
1181
|
+
var M = Ie(z), $ = Ie(j), A = Ie(k);
|
|
1182
|
+
I([M[0] - $[0] - A[0], M[1] - $[1] - A[1]]);
|
|
1183
|
+
var K = Ie(N);
|
|
1184
|
+
fe(K);
|
|
1185
|
+
var ve = Ie(w);
|
|
1186
|
+
de(ve);
|
|
1187
|
+
var ie = Ie(R);
|
|
1188
|
+
Z([ie[0] - K[0], ie[1] - K[1]]), It();
|
|
1189
|
+
}), pa = P.slice(0, ua), ha = P.slice(va + 1), Rt = [].concat(ct(pa), ct(ha)), zt = ue.get(s), $a = _n({
|
|
1190
|
+
activeTabOffset: zt,
|
|
1191
|
+
horizontal: m,
|
|
1192
|
+
indicator: O,
|
|
1193
|
+
rtl: i
|
|
1194
|
+
}), ya = $a.style;
|
|
1195
|
+
me(function() {
|
|
1196
|
+
Et();
|
|
1197
|
+
}, [s, Se, we, qt(zt), qt(ue), m]), me(function() {
|
|
1198
|
+
He();
|
|
1199
|
+
}, [i]);
|
|
1200
|
+
var Mt = !!Rt.length, je = "".concat(S, "-nav-wrap"), tt, at, Lt, jt;
|
|
1201
|
+
return m ? i ? (at = x > 0, tt = x !== we) : (tt = x < 0, at = x !== Se) : (Lt = Y < 0, jt = Y !== Se), /* @__PURE__ */ l.createElement(rt, {
|
|
1202
|
+
onResize: He
|
|
1203
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
1204
|
+
ref: Ra(t, z),
|
|
2283
1205
|
role: "tablist",
|
|
2284
|
-
"aria-orientation":
|
|
2285
|
-
className:
|
|
1206
|
+
"aria-orientation": m ? "horizontal" : "vertical",
|
|
1207
|
+
className: E("".concat(S, "-nav"), a),
|
|
2286
1208
|
style: n,
|
|
2287
1209
|
onKeyDown: function() {
|
|
2288
|
-
|
|
1210
|
+
Je();
|
|
2289
1211
|
}
|
|
2290
|
-
}, /* @__PURE__ */
|
|
2291
|
-
ref:
|
|
1212
|
+
}, /* @__PURE__ */ l.createElement(ut, {
|
|
1213
|
+
ref: j,
|
|
2292
1214
|
position: "left",
|
|
2293
1215
|
extra: c,
|
|
2294
|
-
prefixCls:
|
|
2295
|
-
}), /* @__PURE__ */
|
|
2296
|
-
onResize:
|
|
2297
|
-
}, /* @__PURE__ */
|
|
2298
|
-
className:
|
|
2299
|
-
ref:
|
|
2300
|
-
}, /* @__PURE__ */
|
|
2301
|
-
onResize:
|
|
2302
|
-
}, /* @__PURE__ */
|
|
2303
|
-
ref:
|
|
2304
|
-
className: "".concat(
|
|
1216
|
+
prefixCls: S
|
|
1217
|
+
}), /* @__PURE__ */ l.createElement(rt, {
|
|
1218
|
+
onResize: He
|
|
1219
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
1220
|
+
className: E(je, te(te(te(te({}, "".concat(je, "-ping-left"), tt), "".concat(je, "-ping-right"), at), "".concat(je, "-ping-top"), Lt), "".concat(je, "-ping-bottom"), jt)),
|
|
1221
|
+
ref: D
|
|
1222
|
+
}, /* @__PURE__ */ l.createElement(rt, {
|
|
1223
|
+
onResize: He
|
|
1224
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
1225
|
+
ref: R,
|
|
1226
|
+
className: "".concat(S, "-nav-list"),
|
|
2305
1227
|
style: {
|
|
2306
|
-
transform: "translate(".concat(
|
|
2307
|
-
transition:
|
|
1228
|
+
transform: "translate(".concat(x, "px, ").concat(Y, "px)"),
|
|
1229
|
+
transition: De ? "none" : void 0
|
|
2308
1230
|
}
|
|
2309
|
-
},
|
|
2310
|
-
ref:
|
|
2311
|
-
prefixCls:
|
|
2312
|
-
locale:
|
|
2313
|
-
editable:
|
|
2314
|
-
style:
|
|
2315
|
-
visibility:
|
|
1231
|
+
}, Nt, /* @__PURE__ */ l.createElement(na, {
|
|
1232
|
+
ref: N,
|
|
1233
|
+
prefixCls: S,
|
|
1234
|
+
locale: g,
|
|
1235
|
+
editable: d,
|
|
1236
|
+
style: le(le({}, Nt.length === 0 ? void 0 : Ae), {}, {
|
|
1237
|
+
visibility: Mt ? "hidden" : null
|
|
2316
1238
|
})
|
|
2317
|
-
}), /* @__PURE__ */
|
|
2318
|
-
className:
|
|
2319
|
-
style:
|
|
2320
|
-
}))))), /* @__PURE__ */
|
|
2321
|
-
removeAriaLabel:
|
|
2322
|
-
ref:
|
|
2323
|
-
prefixCls:
|
|
2324
|
-
tabs:
|
|
2325
|
-
className: !
|
|
2326
|
-
tabMoving: !!
|
|
2327
|
-
})), /* @__PURE__ */
|
|
2328
|
-
ref:
|
|
1239
|
+
}), /* @__PURE__ */ l.createElement("div", {
|
|
1240
|
+
className: E("".concat(S, "-ink-bar"), te({}, "".concat(S, "-ink-bar-animated"), o.inkBar)),
|
|
1241
|
+
style: ya
|
|
1242
|
+
}))))), /* @__PURE__ */ l.createElement(Rn, he({}, e, {
|
|
1243
|
+
removeAriaLabel: g == null ? void 0 : g.removeAriaLabel,
|
|
1244
|
+
ref: w,
|
|
1245
|
+
prefixCls: S,
|
|
1246
|
+
tabs: Rt,
|
|
1247
|
+
className: !Mt && sa,
|
|
1248
|
+
tabMoving: !!De
|
|
1249
|
+
})), /* @__PURE__ */ l.createElement(ut, {
|
|
1250
|
+
ref: k,
|
|
2329
1251
|
position: "right",
|
|
2330
1252
|
extra: c,
|
|
2331
|
-
prefixCls:
|
|
1253
|
+
prefixCls: S
|
|
2332
1254
|
})));
|
|
2333
|
-
}),
|
|
2334
|
-
var a = e.prefixCls, n = e.className, r = e.style, o = e.id,
|
|
2335
|
-
return /* @__PURE__ */
|
|
2336
|
-
id: o && "".concat(o, "-panel-").concat(
|
|
1255
|
+
}), $t = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
1256
|
+
var a = e.prefixCls, n = e.className, r = e.style, o = e.id, s = e.active, i = e.tabKey, c = e.children;
|
|
1257
|
+
return /* @__PURE__ */ l.createElement("div", {
|
|
1258
|
+
id: o && "".concat(o, "-panel-").concat(i),
|
|
2337
1259
|
role: "tabpanel",
|
|
2338
|
-
tabIndex:
|
|
2339
|
-
"aria-labelledby": o && "".concat(o, "-tab-").concat(
|
|
2340
|
-
"aria-hidden": !
|
|
1260
|
+
tabIndex: s ? 0 : -1,
|
|
1261
|
+
"aria-labelledby": o && "".concat(o, "-tab-").concat(i),
|
|
1262
|
+
"aria-hidden": !s,
|
|
2341
1263
|
style: r,
|
|
2342
|
-
className:
|
|
1264
|
+
className: E(a, s && "".concat(a, "-active"), n),
|
|
2343
1265
|
ref: t
|
|
2344
1266
|
}, c);
|
|
2345
1267
|
});
|
|
2346
|
-
process.env.NODE_ENV !== "production" && (
|
|
2347
|
-
var
|
|
2348
|
-
var a = t.renderTabBar, n =
|
|
1268
|
+
process.env.NODE_ENV !== "production" && ($t.displayName = "TabPane");
|
|
1269
|
+
var Ln = ["renderTabBar"], jn = ["label", "key"], ra = function(t) {
|
|
1270
|
+
var a = t.renderTabBar, n = We(t, Ln), r = l.useContext(Xe), o = r.tabs;
|
|
2349
1271
|
if (a) {
|
|
2350
|
-
var
|
|
1272
|
+
var s = le(le({}, n), {}, {
|
|
2351
1273
|
// Legacy support. We do not use this actually
|
|
2352
|
-
panes: o.map(function(
|
|
2353
|
-
var c =
|
|
2354
|
-
return /* @__PURE__ */
|
|
1274
|
+
panes: o.map(function(i) {
|
|
1275
|
+
var c = i.label, d = i.key, g = We(i, jn);
|
|
1276
|
+
return /* @__PURE__ */ l.createElement($t, he({
|
|
2355
1277
|
tab: c,
|
|
2356
|
-
key:
|
|
2357
|
-
tabKey:
|
|
2358
|
-
},
|
|
1278
|
+
key: d,
|
|
1279
|
+
tabKey: d
|
|
1280
|
+
}, g));
|
|
2359
1281
|
})
|
|
2360
1282
|
});
|
|
2361
|
-
return a(
|
|
1283
|
+
return a(s, Ft);
|
|
2362
1284
|
}
|
|
2363
|
-
return /* @__PURE__ */
|
|
1285
|
+
return /* @__PURE__ */ l.createElement(Ft, n);
|
|
2364
1286
|
};
|
|
2365
|
-
process.env.NODE_ENV !== "production" && (
|
|
2366
|
-
var
|
|
2367
|
-
var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition,
|
|
2368
|
-
return /* @__PURE__ */
|
|
2369
|
-
className:
|
|
2370
|
-
}, /* @__PURE__ */
|
|
2371
|
-
className:
|
|
2372
|
-
},
|
|
2373
|
-
var
|
|
2374
|
-
return /* @__PURE__ */
|
|
2375
|
-
key:
|
|
2376
|
-
visible:
|
|
2377
|
-
forceRender:
|
|
2378
|
-
removeOnLeave: !!(
|
|
2379
|
-
leavedClassName: "".concat(
|
|
2380
|
-
}, r.tabPaneMotion), function(
|
|
2381
|
-
var
|
|
2382
|
-
return /* @__PURE__ */
|
|
2383
|
-
prefixCls:
|
|
1287
|
+
process.env.NODE_ENV !== "production" && (ra.displayName = "TabNavListWrapper");
|
|
1288
|
+
var Bn = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], Dn = function(t) {
|
|
1289
|
+
var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition, s = t.destroyInactiveTabPane, i = l.useContext(Xe), c = i.prefixCls, d = i.tabs, g = r.tabPane, f = "".concat(c, "-tabpane");
|
|
1290
|
+
return /* @__PURE__ */ l.createElement("div", {
|
|
1291
|
+
className: E("".concat(c, "-content-holder"))
|
|
1292
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
1293
|
+
className: E("".concat(c, "-content"), "".concat(c, "-content-").concat(o), te({}, "".concat(c, "-content-animated"), g))
|
|
1294
|
+
}, d.map(function(b) {
|
|
1295
|
+
var C = b.key, T = b.forceRender, p = b.style, O = b.className, y = b.destroyInactiveTabPane, S = We(b, Bn), P = C === n;
|
|
1296
|
+
return /* @__PURE__ */ l.createElement(za, he({
|
|
1297
|
+
key: C,
|
|
1298
|
+
visible: P,
|
|
1299
|
+
forceRender: T,
|
|
1300
|
+
removeOnLeave: !!(s || y),
|
|
1301
|
+
leavedClassName: "".concat(f, "-hidden")
|
|
1302
|
+
}, r.tabPaneMotion), function(z, j) {
|
|
1303
|
+
var k = z.style, D = z.className;
|
|
1304
|
+
return /* @__PURE__ */ l.createElement($t, he({}, S, {
|
|
1305
|
+
prefixCls: f,
|
|
2384
1306
|
id: a,
|
|
2385
|
-
tabKey:
|
|
2386
|
-
animated:
|
|
2387
|
-
active:
|
|
2388
|
-
style:
|
|
2389
|
-
className:
|
|
2390
|
-
ref:
|
|
1307
|
+
tabKey: C,
|
|
1308
|
+
animated: g,
|
|
1309
|
+
active: P,
|
|
1310
|
+
style: le(le({}, p), k),
|
|
1311
|
+
className: E(O, D),
|
|
1312
|
+
ref: j
|
|
2391
1313
|
}));
|
|
2392
1314
|
});
|
|
2393
1315
|
})));
|
|
2394
1316
|
};
|
|
2395
|
-
function
|
|
1317
|
+
function An() {
|
|
2396
1318
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
2397
1319
|
inkBar: !0,
|
|
2398
1320
|
tabPane: !1
|
|
@@ -2403,98 +1325,98 @@ function Gi() {
|
|
|
2403
1325
|
} : e === !0 ? t = {
|
|
2404
1326
|
inkBar: !0,
|
|
2405
1327
|
tabPane: !1
|
|
2406
|
-
} : t =
|
|
1328
|
+
} : t = le({
|
|
2407
1329
|
inkBar: !0
|
|
2408
|
-
},
|
|
1330
|
+
}, vt(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && Oa(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
|
|
2409
1331
|
}
|
|
2410
|
-
var
|
|
2411
|
-
var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className,
|
|
2412
|
-
return (
|
|
2413
|
-
return
|
|
1332
|
+
var Hn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Xt = 0, ia = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
1333
|
+
var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className, s = e.items, i = e.direction, c = e.activeKey, d = e.defaultActiveKey, g = e.editable, f = e.animated, b = e.tabPosition, C = b === void 0 ? "top" : b, T = e.tabBarGutter, p = e.tabBarStyle, O = e.tabBarExtraContent, y = e.locale, S = e.more, P = e.destroyInactiveTabPane, z = e.renderTabBar, j = e.onChange, k = e.onTabClick, D = e.onTabScroll, R = e.getPopupContainer, w = e.popupClassName, N = e.indicator, m = We(e, Hn), h = l.useMemo(function() {
|
|
1334
|
+
return (s || []).filter(function(L) {
|
|
1335
|
+
return L && vt(L) === "object" && "key" in L;
|
|
2414
1336
|
});
|
|
2415
|
-
}, [
|
|
2416
|
-
|
|
2417
|
-
|
|
1337
|
+
}, [s]), _ = i === "rtl", x = An(f), G = U(!1), X = B(G, 2), v = X[0], Y = X[1];
|
|
1338
|
+
me(function() {
|
|
1339
|
+
Y(La());
|
|
2418
1340
|
}, []);
|
|
2419
|
-
var
|
|
2420
|
-
var
|
|
2421
|
-
return (
|
|
1341
|
+
var se = Bt(function() {
|
|
1342
|
+
var L;
|
|
1343
|
+
return (L = h[0]) === null || L === void 0 ? void 0 : L.key;
|
|
2422
1344
|
}, {
|
|
2423
1345
|
value: c,
|
|
2424
|
-
defaultValue:
|
|
2425
|
-
}),
|
|
2426
|
-
return
|
|
2427
|
-
return
|
|
1346
|
+
defaultValue: d
|
|
1347
|
+
}), q = B(se, 2), J = q[0], ce = q[1], I = U(function() {
|
|
1348
|
+
return h.findIndex(function(L) {
|
|
1349
|
+
return L.key === J;
|
|
2428
1350
|
});
|
|
2429
|
-
}),
|
|
2430
|
-
|
|
2431
|
-
var
|
|
2432
|
-
return
|
|
1351
|
+
}), H = B(I, 2), W = H[0], Q = H[1];
|
|
1352
|
+
me(function() {
|
|
1353
|
+
var L = h.findIndex(function(xe) {
|
|
1354
|
+
return xe.key === J;
|
|
2433
1355
|
});
|
|
2434
|
-
if (
|
|
2435
|
-
var
|
|
2436
|
-
|
|
1356
|
+
if (L === -1) {
|
|
1357
|
+
var de;
|
|
1358
|
+
L = Math.max(0, Math.min(W, h.length - 1)), ce((de = h[L]) === null || de === void 0 ? void 0 : de.key);
|
|
2437
1359
|
}
|
|
2438
|
-
|
|
2439
|
-
}, [
|
|
2440
|
-
return
|
|
2441
|
-
}).join("_"),
|
|
2442
|
-
var
|
|
1360
|
+
Q(L);
|
|
1361
|
+
}, [h.map(function(L) {
|
|
1362
|
+
return L.key;
|
|
1363
|
+
}).join("_"), J, W]);
|
|
1364
|
+
var Z = Bt(null, {
|
|
2443
1365
|
value: a
|
|
2444
|
-
}),
|
|
2445
|
-
|
|
2446
|
-
a || (
|
|
1366
|
+
}), ne = B(Z, 2), ae = ne[0], $e = ne[1];
|
|
1367
|
+
me(function() {
|
|
1368
|
+
a || ($e("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Xt)), Xt += 1);
|
|
2447
1369
|
}, []);
|
|
2448
|
-
function
|
|
2449
|
-
|
|
2450
|
-
var
|
|
2451
|
-
|
|
1370
|
+
function fe(L, de) {
|
|
1371
|
+
k == null || k(L, de);
|
|
1372
|
+
var xe = L !== J;
|
|
1373
|
+
ce(L), xe && (j == null || j(L));
|
|
2452
1374
|
}
|
|
2453
|
-
var
|
|
2454
|
-
id:
|
|
2455
|
-
activeKey:
|
|
2456
|
-
animated:
|
|
2457
|
-
tabPosition:
|
|
2458
|
-
rtl:
|
|
2459
|
-
mobile:
|
|
2460
|
-
},
|
|
2461
|
-
editable:
|
|
2462
|
-
locale:
|
|
2463
|
-
more:
|
|
2464
|
-
tabBarGutter:
|
|
2465
|
-
onTabClick:
|
|
2466
|
-
onTabScroll:
|
|
2467
|
-
extra:
|
|
2468
|
-
style:
|
|
1375
|
+
var re = {
|
|
1376
|
+
id: ae,
|
|
1377
|
+
activeKey: J,
|
|
1378
|
+
animated: x,
|
|
1379
|
+
tabPosition: C,
|
|
1380
|
+
rtl: _,
|
|
1381
|
+
mobile: v
|
|
1382
|
+
}, ye = le(le({}, re), {}, {
|
|
1383
|
+
editable: g,
|
|
1384
|
+
locale: y,
|
|
1385
|
+
more: S,
|
|
1386
|
+
tabBarGutter: T,
|
|
1387
|
+
onTabClick: fe,
|
|
1388
|
+
onTabScroll: D,
|
|
1389
|
+
extra: O,
|
|
1390
|
+
style: p,
|
|
2469
1391
|
panes: null,
|
|
2470
|
-
getPopupContainer:
|
|
2471
|
-
popupClassName:
|
|
2472
|
-
indicator:
|
|
1392
|
+
getPopupContainer: R,
|
|
1393
|
+
popupClassName: w,
|
|
1394
|
+
indicator: N
|
|
2473
1395
|
});
|
|
2474
|
-
return /* @__PURE__ */
|
|
1396
|
+
return /* @__PURE__ */ l.createElement(Xe.Provider, {
|
|
2475
1397
|
value: {
|
|
2476
|
-
tabs:
|
|
1398
|
+
tabs: h,
|
|
2477
1399
|
prefixCls: r
|
|
2478
1400
|
}
|
|
2479
|
-
}, /* @__PURE__ */
|
|
1401
|
+
}, /* @__PURE__ */ l.createElement("div", he({
|
|
2480
1402
|
ref: t,
|
|
2481
1403
|
id: a,
|
|
2482
|
-
className:
|
|
2483
|
-
},
|
|
2484
|
-
renderTabBar:
|
|
2485
|
-
})), /* @__PURE__ */
|
|
2486
|
-
destroyInactiveTabPane:
|
|
2487
|
-
},
|
|
2488
|
-
animated:
|
|
1404
|
+
className: E(r, "".concat(r, "-").concat(C), te(te(te({}, "".concat(r, "-mobile"), v), "".concat(r, "-editable"), g), "".concat(r, "-rtl"), _), o)
|
|
1405
|
+
}, m), /* @__PURE__ */ l.createElement(ra, he({}, ye, {
|
|
1406
|
+
renderTabBar: z
|
|
1407
|
+
})), /* @__PURE__ */ l.createElement(Dn, he({
|
|
1408
|
+
destroyInactiveTabPane: P
|
|
1409
|
+
}, re, {
|
|
1410
|
+
animated: x
|
|
2489
1411
|
}))));
|
|
2490
1412
|
});
|
|
2491
|
-
process.env.NODE_ENV !== "production" && (
|
|
2492
|
-
const
|
|
1413
|
+
process.env.NODE_ENV !== "production" && (ia.displayName = "Tabs");
|
|
1414
|
+
const kn = {
|
|
2493
1415
|
motionAppear: !1,
|
|
2494
1416
|
motionEnter: !0,
|
|
2495
1417
|
motionLeave: !0
|
|
2496
1418
|
};
|
|
2497
|
-
function
|
|
1419
|
+
function Gn(e) {
|
|
2498
1420
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2499
1421
|
inkBar: !0,
|
|
2500
1422
|
tabPane: !1
|
|
@@ -2507,42 +1429,44 @@ function qi(e) {
|
|
|
2507
1429
|
tabPane: !0
|
|
2508
1430
|
} : a = Object.assign({
|
|
2509
1431
|
inkBar: !0
|
|
2510
|
-
}, typeof t == "object" ? t : {}), a.tabPane && (a.tabPaneMotion = Object.assign(Object.assign({},
|
|
2511
|
-
motionName:
|
|
1432
|
+
}, typeof t == "object" ? t : {}), a.tabPane && (a.tabPaneMotion = Object.assign(Object.assign({}, kn), {
|
|
1433
|
+
motionName: ja(e, "switch")
|
|
2512
1434
|
})), a;
|
|
2513
1435
|
}
|
|
2514
|
-
var
|
|
1436
|
+
var Wn = globalThis && globalThis.__rest || function(e, t) {
|
|
2515
1437
|
var a = {};
|
|
2516
|
-
for (var n in e)
|
|
2517
|
-
|
|
2518
|
-
|
|
1438
|
+
for (var n in e)
|
|
1439
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
1440
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1441
|
+
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1442
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
|
|
2519
1443
|
return a;
|
|
2520
1444
|
};
|
|
2521
|
-
function
|
|
1445
|
+
function Vn(e) {
|
|
2522
1446
|
return e.filter((t) => t);
|
|
2523
1447
|
}
|
|
2524
|
-
function
|
|
2525
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1448
|
+
function Kn(e, t) {
|
|
1449
|
+
if (process.env.NODE_ENV !== "production" && mt("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
|
|
2526
1450
|
return e;
|
|
2527
|
-
const a =
|
|
2528
|
-
if (/* @__PURE__ */
|
|
1451
|
+
const a = Ta(t).map((n) => {
|
|
1452
|
+
if (/* @__PURE__ */ l.isValidElement(n)) {
|
|
2529
1453
|
const {
|
|
2530
1454
|
key: r,
|
|
2531
1455
|
props: o
|
|
2532
|
-
} = n,
|
|
2533
|
-
tab:
|
|
2534
|
-
} =
|
|
1456
|
+
} = n, s = o || {}, {
|
|
1457
|
+
tab: i
|
|
1458
|
+
} = s, c = Wn(s, ["tab"]);
|
|
2535
1459
|
return Object.assign(Object.assign({
|
|
2536
1460
|
key: String(r)
|
|
2537
1461
|
}, c), {
|
|
2538
|
-
label:
|
|
1462
|
+
label: i
|
|
2539
1463
|
});
|
|
2540
1464
|
}
|
|
2541
1465
|
return null;
|
|
2542
1466
|
});
|
|
2543
|
-
return
|
|
1467
|
+
return Vn(a);
|
|
2544
1468
|
}
|
|
2545
|
-
const
|
|
1469
|
+
const qn = (e) => {
|
|
2546
1470
|
const {
|
|
2547
1471
|
componentCls: t,
|
|
2548
1472
|
motionDurationSlow: a
|
|
@@ -2577,16 +1501,16 @@ const Zi = (e) => {
|
|
|
2577
1501
|
}
|
|
2578
1502
|
},
|
|
2579
1503
|
// Follow code may reuse in other components
|
|
2580
|
-
[
|
|
1504
|
+
[At(e, "slide-up"), At(e, "slide-down")]
|
|
2581
1505
|
];
|
|
2582
|
-
},
|
|
1506
|
+
}, Fn = qn, Xn = (e) => {
|
|
2583
1507
|
const {
|
|
2584
1508
|
componentCls: t,
|
|
2585
1509
|
tabsCardPadding: a,
|
|
2586
1510
|
cardBg: n,
|
|
2587
1511
|
cardGutter: r,
|
|
2588
1512
|
colorBorderSecondary: o,
|
|
2589
|
-
itemSelectedColor:
|
|
1513
|
+
itemSelectedColor: s
|
|
2590
1514
|
} = e;
|
|
2591
1515
|
return {
|
|
2592
1516
|
[`${t}-card`]: {
|
|
@@ -2595,14 +1519,14 @@ const Zi = (e) => {
|
|
|
2595
1519
|
margin: 0,
|
|
2596
1520
|
padding: a,
|
|
2597
1521
|
background: n,
|
|
2598
|
-
border: `${
|
|
1522
|
+
border: `${u(e.lineWidth)} ${e.lineType} ${o}`,
|
|
2599
1523
|
transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`
|
|
2600
1524
|
},
|
|
2601
1525
|
[`${t}-tab-active`]: {
|
|
2602
|
-
color:
|
|
1526
|
+
color: s,
|
|
2603
1527
|
background: e.colorBgContainer
|
|
2604
1528
|
},
|
|
2605
|
-
[`${t}-tab-focus`]: Object.assign({},
|
|
1529
|
+
[`${t}-tab-focus`]: Object.assign({}, Zt(e, -3)),
|
|
2606
1530
|
[`${t}-ink-bar`]: {
|
|
2607
1531
|
visibility: "hidden"
|
|
2608
1532
|
},
|
|
@@ -2616,7 +1540,7 @@ const Zi = (e) => {
|
|
|
2616
1540
|
[`${t}-tab + ${t}-tab`]: {
|
|
2617
1541
|
marginLeft: {
|
|
2618
1542
|
_skip_check_: !0,
|
|
2619
|
-
value:
|
|
1543
|
+
value: u(r)
|
|
2620
1544
|
}
|
|
2621
1545
|
}
|
|
2622
1546
|
}
|
|
@@ -2624,7 +1548,7 @@ const Zi = (e) => {
|
|
|
2624
1548
|
[`&${t}-top`]: {
|
|
2625
1549
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
2626
1550
|
[`${t}-tab`]: {
|
|
2627
|
-
borderRadius: `${
|
|
1551
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
|
|
2628
1552
|
},
|
|
2629
1553
|
[`${t}-tab-active`]: {
|
|
2630
1554
|
borderBottomColor: e.colorBgContainer
|
|
@@ -2634,7 +1558,7 @@ const Zi = (e) => {
|
|
|
2634
1558
|
[`&${t}-bottom`]: {
|
|
2635
1559
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
2636
1560
|
[`${t}-tab`]: {
|
|
2637
|
-
borderRadius: `0 0 ${
|
|
1561
|
+
borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
|
|
2638
1562
|
},
|
|
2639
1563
|
[`${t}-tab-active`]: {
|
|
2640
1564
|
borderTopColor: e.colorBgContainer
|
|
@@ -2645,7 +1569,7 @@ const Zi = (e) => {
|
|
|
2645
1569
|
[`&${t}-left, &${t}-right`]: {
|
|
2646
1570
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
2647
1571
|
[`${t}-tab + ${t}-tab`]: {
|
|
2648
|
-
marginTop:
|
|
1572
|
+
marginTop: u(r)
|
|
2649
1573
|
}
|
|
2650
1574
|
}
|
|
2651
1575
|
},
|
|
@@ -2654,7 +1578,7 @@ const Zi = (e) => {
|
|
|
2654
1578
|
[`${t}-tab`]: {
|
|
2655
1579
|
borderRadius: {
|
|
2656
1580
|
_skip_check_: !0,
|
|
2657
|
-
value: `${
|
|
1581
|
+
value: `${u(e.borderRadiusLG)} 0 0 ${u(e.borderRadiusLG)}`
|
|
2658
1582
|
}
|
|
2659
1583
|
},
|
|
2660
1584
|
[`${t}-tab-active`]: {
|
|
@@ -2670,7 +1594,7 @@ const Zi = (e) => {
|
|
|
2670
1594
|
[`${t}-tab`]: {
|
|
2671
1595
|
borderRadius: {
|
|
2672
1596
|
_skip_check_: !0,
|
|
2673
|
-
value: `0 ${
|
|
1597
|
+
value: `0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0`
|
|
2674
1598
|
}
|
|
2675
1599
|
},
|
|
2676
1600
|
[`${t}-tab-active`]: {
|
|
@@ -2683,14 +1607,14 @@ const Zi = (e) => {
|
|
|
2683
1607
|
}
|
|
2684
1608
|
}
|
|
2685
1609
|
};
|
|
2686
|
-
},
|
|
1610
|
+
}, Un = (e) => {
|
|
2687
1611
|
const {
|
|
2688
1612
|
componentCls: t,
|
|
2689
1613
|
itemHoverColor: a,
|
|
2690
1614
|
dropdownEdgeChildVerticalPadding: n
|
|
2691
1615
|
} = e;
|
|
2692
1616
|
return {
|
|
2693
|
-
[`${t}-dropdown`]: Object.assign(Object.assign({},
|
|
1617
|
+
[`${t}-dropdown`]: Object.assign(Object.assign({}, bt(e)), {
|
|
2694
1618
|
position: "absolute",
|
|
2695
1619
|
top: -9999,
|
|
2696
1620
|
left: {
|
|
@@ -2705,7 +1629,7 @@ const Zi = (e) => {
|
|
|
2705
1629
|
[`${t}-dropdown-menu`]: {
|
|
2706
1630
|
maxHeight: e.tabsDropdownHeight,
|
|
2707
1631
|
margin: 0,
|
|
2708
|
-
padding: `${
|
|
1632
|
+
padding: `${u(n)} 0`,
|
|
2709
1633
|
overflowX: "hidden",
|
|
2710
1634
|
overflowY: "auto",
|
|
2711
1635
|
textAlign: {
|
|
@@ -2718,12 +1642,12 @@ const Zi = (e) => {
|
|
|
2718
1642
|
borderRadius: e.borderRadiusLG,
|
|
2719
1643
|
outline: "none",
|
|
2720
1644
|
boxShadow: e.boxShadowSecondary,
|
|
2721
|
-
"&-item": Object.assign(Object.assign({},
|
|
1645
|
+
"&-item": Object.assign(Object.assign({}, pt), {
|
|
2722
1646
|
display: "flex",
|
|
2723
1647
|
alignItems: "center",
|
|
2724
1648
|
minWidth: e.tabsDropdownWidth,
|
|
2725
1649
|
margin: 0,
|
|
2726
|
-
padding: `${
|
|
1650
|
+
padding: `${u(e.paddingXXS)} ${u(e.paddingSM)}`,
|
|
2727
1651
|
color: e.colorText,
|
|
2728
1652
|
fontWeight: "normal",
|
|
2729
1653
|
fontSize: e.fontSize,
|
|
@@ -2763,15 +1687,15 @@ const Zi = (e) => {
|
|
|
2763
1687
|
}
|
|
2764
1688
|
})
|
|
2765
1689
|
};
|
|
2766
|
-
},
|
|
1690
|
+
}, Yn = (e) => {
|
|
2767
1691
|
const {
|
|
2768
1692
|
componentCls: t,
|
|
2769
1693
|
margin: a,
|
|
2770
1694
|
colorBorderSecondary: n,
|
|
2771
1695
|
horizontalMargin: r,
|
|
2772
1696
|
verticalItemPadding: o,
|
|
2773
|
-
verticalItemMargin:
|
|
2774
|
-
calc:
|
|
1697
|
+
verticalItemMargin: s,
|
|
1698
|
+
calc: i
|
|
2775
1699
|
} = e;
|
|
2776
1700
|
return {
|
|
2777
1701
|
// ========================== Top & Bottom ==========================
|
|
@@ -2789,7 +1713,7 @@ const Zi = (e) => {
|
|
|
2789
1713
|
_skip_check_: !0,
|
|
2790
1714
|
value: 0
|
|
2791
1715
|
},
|
|
2792
|
-
borderBottom: `${
|
|
1716
|
+
borderBottom: `${u(e.lineWidth)} ${e.lineType} ${n}`,
|
|
2793
1717
|
content: "''"
|
|
2794
1718
|
},
|
|
2795
1719
|
[`${t}-ink-bar`]: {
|
|
@@ -2859,14 +1783,14 @@ const Zi = (e) => {
|
|
|
2859
1783
|
[`${t}-left, ${t}-right`]: {
|
|
2860
1784
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
2861
1785
|
flexDirection: "column",
|
|
2862
|
-
minWidth:
|
|
1786
|
+
minWidth: i(e.controlHeight).mul(1.25).equal(),
|
|
2863
1787
|
// >>>>>>>>>>> Tab
|
|
2864
1788
|
[`${t}-tab`]: {
|
|
2865
1789
|
padding: o,
|
|
2866
1790
|
textAlign: "center"
|
|
2867
1791
|
},
|
|
2868
1792
|
[`${t}-tab + ${t}-tab`]: {
|
|
2869
|
-
margin:
|
|
1793
|
+
margin: s
|
|
2870
1794
|
},
|
|
2871
1795
|
// >>>>>>>>>>> Nav
|
|
2872
1796
|
[`${t}-nav-wrap`]: {
|
|
@@ -2923,11 +1847,11 @@ const Zi = (e) => {
|
|
|
2923
1847
|
[`> ${t}-content-holder, > div > ${t}-content-holder`]: {
|
|
2924
1848
|
marginLeft: {
|
|
2925
1849
|
_skip_check_: !0,
|
|
2926
|
-
value:
|
|
1850
|
+
value: u(i(e.lineWidth).mul(-1).equal())
|
|
2927
1851
|
},
|
|
2928
1852
|
borderLeft: {
|
|
2929
1853
|
_skip_check_: !0,
|
|
2930
|
-
value: `${
|
|
1854
|
+
value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
|
|
2931
1855
|
},
|
|
2932
1856
|
[`> ${t}-content > ${t}-tabpane`]: {
|
|
2933
1857
|
paddingLeft: {
|
|
@@ -2951,11 +1875,11 @@ const Zi = (e) => {
|
|
|
2951
1875
|
order: 0,
|
|
2952
1876
|
marginRight: {
|
|
2953
1877
|
_skip_check_: !0,
|
|
2954
|
-
value:
|
|
1878
|
+
value: i(e.lineWidth).mul(-1).equal()
|
|
2955
1879
|
},
|
|
2956
1880
|
borderRight: {
|
|
2957
1881
|
_skip_check_: !0,
|
|
2958
|
-
value: `${
|
|
1882
|
+
value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
|
|
2959
1883
|
},
|
|
2960
1884
|
[`> ${t}-content > ${t}-tabpane`]: {
|
|
2961
1885
|
paddingRight: {
|
|
@@ -2966,7 +1890,7 @@ const Zi = (e) => {
|
|
|
2966
1890
|
}
|
|
2967
1891
|
}
|
|
2968
1892
|
};
|
|
2969
|
-
},
|
|
1893
|
+
}, Qn = (e) => {
|
|
2970
1894
|
const {
|
|
2971
1895
|
componentCls: t,
|
|
2972
1896
|
cardPaddingSM: a,
|
|
@@ -3002,19 +1926,19 @@ const Zi = (e) => {
|
|
|
3002
1926
|
},
|
|
3003
1927
|
[`&${t}-bottom`]: {
|
|
3004
1928
|
[`> ${t}-nav ${t}-tab`]: {
|
|
3005
|
-
borderRadius: `0 0 ${
|
|
1929
|
+
borderRadius: `0 0 ${u(e.borderRadius)} ${u(e.borderRadius)}`
|
|
3006
1930
|
}
|
|
3007
1931
|
},
|
|
3008
1932
|
[`&${t}-top`]: {
|
|
3009
1933
|
[`> ${t}-nav ${t}-tab`]: {
|
|
3010
|
-
borderRadius: `${
|
|
1934
|
+
borderRadius: `${u(e.borderRadius)} ${u(e.borderRadius)} 0 0`
|
|
3011
1935
|
}
|
|
3012
1936
|
},
|
|
3013
1937
|
[`&${t}-right`]: {
|
|
3014
1938
|
[`> ${t}-nav ${t}-tab`]: {
|
|
3015
1939
|
borderRadius: {
|
|
3016
1940
|
_skip_check_: !0,
|
|
3017
|
-
value: `0 ${
|
|
1941
|
+
value: `0 ${u(e.borderRadius)} ${u(e.borderRadius)} 0`
|
|
3018
1942
|
}
|
|
3019
1943
|
}
|
|
3020
1944
|
},
|
|
@@ -3022,7 +1946,7 @@ const Zi = (e) => {
|
|
|
3022
1946
|
[`> ${t}-nav ${t}-tab`]: {
|
|
3023
1947
|
borderRadius: {
|
|
3024
1948
|
_skip_check_: !0,
|
|
3025
|
-
value: `${
|
|
1949
|
+
value: `${u(e.borderRadius)} 0 0 ${u(e.borderRadius)}`
|
|
3026
1950
|
}
|
|
3027
1951
|
}
|
|
3028
1952
|
}
|
|
@@ -3036,25 +1960,25 @@ const Zi = (e) => {
|
|
|
3036
1960
|
}
|
|
3037
1961
|
}
|
|
3038
1962
|
};
|
|
3039
|
-
},
|
|
1963
|
+
}, Zn = (e) => {
|
|
3040
1964
|
const {
|
|
3041
1965
|
componentCls: t,
|
|
3042
1966
|
itemActiveColor: a,
|
|
3043
1967
|
itemHoverColor: n,
|
|
3044
1968
|
iconCls: r,
|
|
3045
1969
|
tabsHorizontalItemMargin: o,
|
|
3046
|
-
horizontalItemPadding:
|
|
3047
|
-
itemSelectedColor:
|
|
1970
|
+
horizontalItemPadding: s,
|
|
1971
|
+
itemSelectedColor: i,
|
|
3048
1972
|
itemColor: c
|
|
3049
|
-
} = e,
|
|
1973
|
+
} = e, d = `${t}-tab`;
|
|
3050
1974
|
return {
|
|
3051
|
-
[
|
|
1975
|
+
[d]: {
|
|
3052
1976
|
position: "relative",
|
|
3053
1977
|
WebkitTouchCallout: "none",
|
|
3054
1978
|
WebkitTapHighlightColor: "transparent",
|
|
3055
1979
|
display: "inline-flex",
|
|
3056
1980
|
alignItems: "center",
|
|
3057
|
-
padding:
|
|
1981
|
+
padding: s,
|
|
3058
1982
|
fontSize: e.titleFontSize,
|
|
3059
1983
|
background: "transparent",
|
|
3060
1984
|
border: 0,
|
|
@@ -3069,7 +1993,7 @@ const Zi = (e) => {
|
|
|
3069
1993
|
"&-btn": {
|
|
3070
1994
|
outline: "none",
|
|
3071
1995
|
transition: `all ${e.motionDurationSlow}`,
|
|
3072
|
-
[`${
|
|
1996
|
+
[`${d}-icon:not(:last-child)`]: {
|
|
3073
1997
|
marginInlineEnd: e.marginSM
|
|
3074
1998
|
}
|
|
3075
1999
|
},
|
|
@@ -3093,25 +2017,25 @@ const Zi = (e) => {
|
|
|
3093
2017
|
"&:hover": {
|
|
3094
2018
|
color: e.colorTextHeading
|
|
3095
2019
|
}
|
|
3096
|
-
},
|
|
2020
|
+
}, dt(e)),
|
|
3097
2021
|
"&:hover": {
|
|
3098
2022
|
color: n
|
|
3099
2023
|
},
|
|
3100
|
-
[`&${
|
|
3101
|
-
color:
|
|
2024
|
+
[`&${d}-active ${d}-btn`]: {
|
|
2025
|
+
color: i,
|
|
3102
2026
|
textShadow: e.tabsActiveTextShadow
|
|
3103
2027
|
},
|
|
3104
|
-
[`&${
|
|
3105
|
-
[`&${
|
|
2028
|
+
[`&${d}-focus ${d}-btn`]: Object.assign({}, Zt(e)),
|
|
2029
|
+
[`&${d}-disabled`]: {
|
|
3106
2030
|
color: e.colorTextDisabled,
|
|
3107
2031
|
cursor: "not-allowed"
|
|
3108
2032
|
},
|
|
3109
|
-
[`&${
|
|
2033
|
+
[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]: {
|
|
3110
2034
|
"&:focus, &:active": {
|
|
3111
2035
|
color: e.colorTextDisabled
|
|
3112
2036
|
}
|
|
3113
2037
|
},
|
|
3114
|
-
[`& ${
|
|
2038
|
+
[`& ${d}-remove ${r}`]: {
|
|
3115
2039
|
margin: 0
|
|
3116
2040
|
},
|
|
3117
2041
|
[`${r}:not(:last-child)`]: {
|
|
@@ -3121,14 +2045,14 @@ const Zi = (e) => {
|
|
|
3121
2045
|
}
|
|
3122
2046
|
}
|
|
3123
2047
|
},
|
|
3124
|
-
[`${
|
|
2048
|
+
[`${d} + ${d}`]: {
|
|
3125
2049
|
margin: {
|
|
3126
2050
|
_skip_check_: !0,
|
|
3127
2051
|
value: o
|
|
3128
2052
|
}
|
|
3129
2053
|
}
|
|
3130
2054
|
};
|
|
3131
|
-
},
|
|
2055
|
+
}, Jn = (e) => {
|
|
3132
2056
|
const {
|
|
3133
2057
|
componentCls: t,
|
|
3134
2058
|
tabsHorizontalItemMarginRTL: a,
|
|
@@ -3158,17 +2082,17 @@ const Zi = (e) => {
|
|
|
3158
2082
|
},
|
|
3159
2083
|
marginLeft: {
|
|
3160
2084
|
_skip_check_: !0,
|
|
3161
|
-
value:
|
|
2085
|
+
value: u(e.marginSM)
|
|
3162
2086
|
}
|
|
3163
2087
|
},
|
|
3164
2088
|
[`${t}-tab-remove`]: {
|
|
3165
2089
|
marginRight: {
|
|
3166
2090
|
_skip_check_: !0,
|
|
3167
|
-
value:
|
|
2091
|
+
value: u(e.marginXS)
|
|
3168
2092
|
},
|
|
3169
2093
|
marginLeft: {
|
|
3170
2094
|
_skip_check_: !0,
|
|
3171
|
-
value:
|
|
2095
|
+
value: u(o(e.marginXXS).mul(-1).equal())
|
|
3172
2096
|
},
|
|
3173
2097
|
[n]: {
|
|
3174
2098
|
margin: 0
|
|
@@ -3220,18 +2144,18 @@ const Zi = (e) => {
|
|
|
3220
2144
|
}
|
|
3221
2145
|
}
|
|
3222
2146
|
};
|
|
3223
|
-
},
|
|
2147
|
+
}, er = (e) => {
|
|
3224
2148
|
const {
|
|
3225
2149
|
componentCls: t,
|
|
3226
2150
|
tabsCardPadding: a,
|
|
3227
2151
|
cardHeight: n,
|
|
3228
2152
|
cardGutter: r,
|
|
3229
2153
|
itemHoverColor: o,
|
|
3230
|
-
itemActiveColor:
|
|
3231
|
-
colorBorderSecondary:
|
|
2154
|
+
itemActiveColor: s,
|
|
2155
|
+
colorBorderSecondary: i
|
|
3232
2156
|
} = e;
|
|
3233
2157
|
return {
|
|
3234
|
-
[t]: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
2158
|
+
[t]: Object.assign(Object.assign(Object.assign(Object.assign({}, bt(e)), {
|
|
3235
2159
|
display: "flex",
|
|
3236
2160
|
// ========================== Navigation ==========================
|
|
3237
2161
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
@@ -3301,10 +2225,10 @@ const Zi = (e) => {
|
|
|
3301
2225
|
_skip_check_: !0,
|
|
3302
2226
|
value: r
|
|
3303
2227
|
},
|
|
3304
|
-
padding:
|
|
2228
|
+
padding: u(e.paddingXS),
|
|
3305
2229
|
background: "transparent",
|
|
3306
|
-
border: `${
|
|
3307
|
-
borderRadius: `${
|
|
2230
|
+
border: `${u(e.lineWidth)} ${e.lineType} ${i}`,
|
|
2231
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`,
|
|
3308
2232
|
outline: "none",
|
|
3309
2233
|
cursor: "pointer",
|
|
3310
2234
|
color: e.colorText,
|
|
@@ -3313,9 +2237,9 @@ const Zi = (e) => {
|
|
|
3313
2237
|
color: o
|
|
3314
2238
|
},
|
|
3315
2239
|
"&:active, &:focus:not(:focus-visible)": {
|
|
3316
|
-
color:
|
|
2240
|
+
color: s
|
|
3317
2241
|
}
|
|
3318
|
-
},
|
|
2242
|
+
}, dt(e, -3))
|
|
3319
2243
|
},
|
|
3320
2244
|
[`${t}-extra-content`]: {
|
|
3321
2245
|
flex: "none"
|
|
@@ -3326,7 +2250,7 @@ const Zi = (e) => {
|
|
|
3326
2250
|
background: e.inkBarColor,
|
|
3327
2251
|
pointerEvents: "none"
|
|
3328
2252
|
}
|
|
3329
|
-
}),
|
|
2253
|
+
}), Zn(e)), {
|
|
3330
2254
|
// =========================== TabPanes ===========================
|
|
3331
2255
|
[`${t}-content`]: {
|
|
3332
2256
|
position: "relative",
|
|
@@ -3337,7 +2261,7 @@ const Zi = (e) => {
|
|
|
3337
2261
|
minWidth: 0,
|
|
3338
2262
|
minHeight: 0
|
|
3339
2263
|
},
|
|
3340
|
-
[`${t}-tabpane`]: Object.assign(Object.assign({},
|
|
2264
|
+
[`${t}-tabpane`]: Object.assign(Object.assign({}, dt(e)), {
|
|
3341
2265
|
"&-hidden": {
|
|
3342
2266
|
display: "none"
|
|
3343
2267
|
}
|
|
@@ -3353,7 +2277,7 @@ const Zi = (e) => {
|
|
|
3353
2277
|
}
|
|
3354
2278
|
}
|
|
3355
2279
|
};
|
|
3356
|
-
},
|
|
2280
|
+
}, tr = (e) => {
|
|
3357
2281
|
const t = e.controlHeightLG;
|
|
3358
2282
|
return {
|
|
3359
2283
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
@@ -3384,125 +2308,131 @@ const Zi = (e) => {
|
|
|
3384
2308
|
itemActiveColor: e.colorPrimaryActive,
|
|
3385
2309
|
cardGutter: e.marginXXS / 2
|
|
3386
2310
|
};
|
|
3387
|
-
},
|
|
3388
|
-
const t =
|
|
2311
|
+
}, ar = ft("Tabs", (e) => {
|
|
2312
|
+
const t = gt(e, {
|
|
3389
2313
|
// `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
|
|
3390
2314
|
tabsCardPadding: e.cardPadding,
|
|
3391
2315
|
dropdownEdgeChildVerticalPadding: e.paddingXXS,
|
|
3392
2316
|
tabsActiveTextShadow: "0 0 0.25px currentcolor",
|
|
3393
2317
|
tabsDropdownHeight: 200,
|
|
3394
2318
|
tabsDropdownWidth: 120,
|
|
3395
|
-
tabsHorizontalItemMargin: `0 0 0 ${
|
|
3396
|
-
tabsHorizontalItemMarginRTL: `0 0 0 ${
|
|
2319
|
+
tabsHorizontalItemMargin: `0 0 0 ${u(e.horizontalItemGutter)}`,
|
|
2320
|
+
tabsHorizontalItemMarginRTL: `0 0 0 ${u(e.horizontalItemGutter)}`
|
|
3397
2321
|
});
|
|
3398
|
-
return [
|
|
3399
|
-
},
|
|
3400
|
-
process.env.NODE_ENV !== "production" && (
|
|
3401
|
-
|
|
2322
|
+
return [Qn(t), Jn(t), Yn(t), Un(t), Xn(t), er(t), Fn(t)];
|
|
2323
|
+
}, tr), oa = () => null;
|
|
2324
|
+
process.env.NODE_ENV !== "production" && (oa.displayName = "DeprecatedTabPane");
|
|
2325
|
+
const nr = oa;
|
|
2326
|
+
var rr = globalThis && globalThis.__rest || function(e, t) {
|
|
3402
2327
|
var a = {};
|
|
3403
|
-
for (var n in e)
|
|
3404
|
-
|
|
3405
|
-
|
|
2328
|
+
for (var n in e)
|
|
2329
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
2330
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2331
|
+
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
2332
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
|
|
3406
2333
|
return a;
|
|
3407
2334
|
};
|
|
3408
|
-
const
|
|
3409
|
-
var t, a, n, r, o,
|
|
2335
|
+
const yt = (e) => {
|
|
2336
|
+
var t, a, n, r, o, s, i, c, d, g, f;
|
|
3410
2337
|
const {
|
|
3411
|
-
type:
|
|
3412
|
-
className:
|
|
3413
|
-
rootClassName:
|
|
3414
|
-
size:
|
|
3415
|
-
onEdit:
|
|
3416
|
-
hideAdd:
|
|
3417
|
-
centered:
|
|
3418
|
-
addIcon:
|
|
3419
|
-
removeIcon:
|
|
3420
|
-
moreIcon:
|
|
3421
|
-
more:
|
|
3422
|
-
popupClassName:
|
|
3423
|
-
children:
|
|
3424
|
-
items:
|
|
3425
|
-
animated:
|
|
3426
|
-
style:
|
|
3427
|
-
indicatorSize:
|
|
3428
|
-
indicator:
|
|
3429
|
-
} = e,
|
|
3430
|
-
prefixCls:
|
|
3431
|
-
} =
|
|
3432
|
-
direction:
|
|
3433
|
-
tabs:
|
|
3434
|
-
getPrefixCls:
|
|
3435
|
-
getPopupContainer:
|
|
3436
|
-
} =
|
|
3437
|
-
let
|
|
3438
|
-
|
|
3439
|
-
onEdit: (
|
|
2338
|
+
type: b,
|
|
2339
|
+
className: C,
|
|
2340
|
+
rootClassName: T,
|
|
2341
|
+
size: p,
|
|
2342
|
+
onEdit: O,
|
|
2343
|
+
hideAdd: y,
|
|
2344
|
+
centered: S,
|
|
2345
|
+
addIcon: P,
|
|
2346
|
+
removeIcon: z,
|
|
2347
|
+
moreIcon: j,
|
|
2348
|
+
more: k,
|
|
2349
|
+
popupClassName: D,
|
|
2350
|
+
children: R,
|
|
2351
|
+
items: w,
|
|
2352
|
+
animated: N,
|
|
2353
|
+
style: m,
|
|
2354
|
+
indicatorSize: h,
|
|
2355
|
+
indicator: _
|
|
2356
|
+
} = e, x = rr(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
|
|
2357
|
+
prefixCls: G
|
|
2358
|
+
} = x, {
|
|
2359
|
+
direction: X,
|
|
2360
|
+
tabs: v,
|
|
2361
|
+
getPrefixCls: Y,
|
|
2362
|
+
getPopupContainer: se
|
|
2363
|
+
} = l.useContext(be), q = Y("tabs", G), J = Wa(q), [ce, I, H] = ar(q, J);
|
|
2364
|
+
let W;
|
|
2365
|
+
b === "editable-card" && (W = {
|
|
2366
|
+
onEdit: (re, ye) => {
|
|
3440
2367
|
let {
|
|
3441
|
-
key:
|
|
3442
|
-
event:
|
|
3443
|
-
} =
|
|
3444
|
-
|
|
2368
|
+
key: L,
|
|
2369
|
+
event: de
|
|
2370
|
+
} = ye;
|
|
2371
|
+
O == null || O(re === "add" ? de : L, re);
|
|
3445
2372
|
},
|
|
3446
|
-
removeIcon: (t =
|
|
3447
|
-
addIcon: (
|
|
3448
|
-
showAdd:
|
|
2373
|
+
removeIcon: (t = z ?? (v == null ? void 0 : v.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ l.createElement(Ba, null),
|
|
2374
|
+
addIcon: (P ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ l.createElement(xn, null),
|
|
2375
|
+
showAdd: y !== !0
|
|
3449
2376
|
});
|
|
3450
|
-
const
|
|
2377
|
+
const Q = Y();
|
|
3451
2378
|
if (process.env.NODE_ENV !== "production") {
|
|
3452
|
-
const
|
|
3453
|
-
process.env.NODE_ENV !== "production" &&
|
|
2379
|
+
const re = mt("Tabs");
|
|
2380
|
+
process.env.NODE_ENV !== "production" && re(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && re(!(h || v != null && v.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
|
|
3454
2381
|
}
|
|
3455
|
-
const
|
|
3456
|
-
align: (a =
|
|
3457
|
-
size: (
|
|
2382
|
+
const Z = Jt(p), ne = Kn(w, R), ae = Gn(q, N), $e = Object.assign(Object.assign({}, v == null ? void 0 : v.style), m), fe = {
|
|
2383
|
+
align: (a = _ == null ? void 0 : _.align) !== null && a !== void 0 ? a : (n = v == null ? void 0 : v.indicator) === null || n === void 0 ? void 0 : n.align,
|
|
2384
|
+
size: (i = (o = (r = _ == null ? void 0 : _.size) !== null && r !== void 0 ? r : h) !== null && o !== void 0 ? o : (s = v == null ? void 0 : v.indicator) === null || s === void 0 ? void 0 : s.size) !== null && i !== void 0 ? i : v == null ? void 0 : v.indicatorSize
|
|
3458
2385
|
};
|
|
3459
|
-
return
|
|
3460
|
-
direction:
|
|
3461
|
-
getPopupContainer:
|
|
3462
|
-
},
|
|
3463
|
-
items:
|
|
3464
|
-
className:
|
|
3465
|
-
[`${
|
|
3466
|
-
[`${
|
|
3467
|
-
[`${
|
|
3468
|
-
[`${
|
|
3469
|
-
},
|
|
3470
|
-
popupClassName: D
|
|
3471
|
-
style:
|
|
3472
|
-
editable:
|
|
2386
|
+
return ce(/* @__PURE__ */ l.createElement(ia, Object.assign({
|
|
2387
|
+
direction: X,
|
|
2388
|
+
getPopupContainer: se
|
|
2389
|
+
}, x, {
|
|
2390
|
+
items: ne,
|
|
2391
|
+
className: E({
|
|
2392
|
+
[`${q}-${Z}`]: Z,
|
|
2393
|
+
[`${q}-card`]: ["card", "editable-card"].includes(b),
|
|
2394
|
+
[`${q}-editable-card`]: b === "editable-card",
|
|
2395
|
+
[`${q}-centered`]: S
|
|
2396
|
+
}, v == null ? void 0 : v.className, C, T, I, H, J),
|
|
2397
|
+
popupClassName: E(D, I, H, J),
|
|
2398
|
+
style: $e,
|
|
2399
|
+
editable: W,
|
|
3473
2400
|
more: Object.assign({
|
|
3474
|
-
icon: (
|
|
3475
|
-
transitionName: `${
|
|
3476
|
-
},
|
|
3477
|
-
prefixCls:
|
|
3478
|
-
animated:
|
|
3479
|
-
indicator:
|
|
2401
|
+
icon: (f = (g = (d = (c = v == null ? void 0 : v.more) === null || c === void 0 ? void 0 : c.icon) !== null && d !== void 0 ? d : v == null ? void 0 : v.moreIcon) !== null && g !== void 0 ? g : j) !== null && f !== void 0 ? f : /* @__PURE__ */ l.createElement(ka, null),
|
|
2402
|
+
transitionName: `${Q}-slide-up`
|
|
2403
|
+
}, k),
|
|
2404
|
+
prefixCls: q,
|
|
2405
|
+
animated: ae,
|
|
2406
|
+
indicator: fe
|
|
3480
2407
|
})));
|
|
3481
2408
|
};
|
|
3482
|
-
|
|
3483
|
-
process.env.NODE_ENV !== "production" && (
|
|
3484
|
-
|
|
2409
|
+
yt.TabPane = nr;
|
|
2410
|
+
process.env.NODE_ENV !== "production" && (yt.displayName = "Tabs");
|
|
2411
|
+
const ir = yt;
|
|
2412
|
+
var or = globalThis && globalThis.__rest || function(e, t) {
|
|
3485
2413
|
var a = {};
|
|
3486
|
-
for (var n in e)
|
|
3487
|
-
|
|
3488
|
-
|
|
2414
|
+
for (var n in e)
|
|
2415
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
2416
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2417
|
+
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
2418
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
|
|
3489
2419
|
return a;
|
|
3490
2420
|
};
|
|
3491
|
-
const
|
|
2421
|
+
const lr = (e) => {
|
|
3492
2422
|
var {
|
|
3493
2423
|
prefixCls: t,
|
|
3494
2424
|
className: a,
|
|
3495
2425
|
hoverable: n = !0
|
|
3496
|
-
} = e, r =
|
|
2426
|
+
} = e, r = or(e, ["prefixCls", "className", "hoverable"]);
|
|
3497
2427
|
const {
|
|
3498
2428
|
getPrefixCls: o
|
|
3499
|
-
} =
|
|
3500
|
-
[`${
|
|
2429
|
+
} = l.useContext(be), s = o("card", t), i = E(`${s}-grid`, a, {
|
|
2430
|
+
[`${s}-grid-hoverable`]: n
|
|
3501
2431
|
});
|
|
3502
|
-
return /* @__PURE__ */
|
|
3503
|
-
className:
|
|
2432
|
+
return /* @__PURE__ */ l.createElement("div", Object.assign({}, r, {
|
|
2433
|
+
className: i
|
|
3504
2434
|
}));
|
|
3505
|
-
},
|
|
2435
|
+
}, la = lr, sr = (e) => {
|
|
3506
2436
|
const {
|
|
3507
2437
|
antCls: t,
|
|
3508
2438
|
componentCls: a,
|
|
@@ -3516,14 +2446,14 @@ const Ga = (e) => {
|
|
|
3516
2446
|
flexDirection: "column",
|
|
3517
2447
|
minHeight: n,
|
|
3518
2448
|
marginBottom: -1,
|
|
3519
|
-
padding: `0 ${
|
|
2449
|
+
padding: `0 ${u(r)}`,
|
|
3520
2450
|
color: e.colorTextHeading,
|
|
3521
2451
|
fontWeight: e.fontWeightStrong,
|
|
3522
2452
|
fontSize: e.headerFontSize,
|
|
3523
2453
|
background: e.headerBg,
|
|
3524
|
-
borderBottom: `${
|
|
3525
|
-
borderRadius: `${
|
|
3526
|
-
},
|
|
2454
|
+
borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
|
|
2455
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
|
|
2456
|
+
}, Ke()), {
|
|
3527
2457
|
"&-wrapper": {
|
|
3528
2458
|
width: "100%",
|
|
3529
2459
|
display: "flex",
|
|
@@ -3532,7 +2462,7 @@ const Ga = (e) => {
|
|
|
3532
2462
|
"&-title": Object.assign(Object.assign({
|
|
3533
2463
|
display: "inline-block",
|
|
3534
2464
|
flex: 1
|
|
3535
|
-
},
|
|
2465
|
+
}, pt), {
|
|
3536
2466
|
[`
|
|
3537
2467
|
> ${a}-typography,
|
|
3538
2468
|
> ${a}-typography-edit-content
|
|
@@ -3549,11 +2479,11 @@ const Ga = (e) => {
|
|
|
3549
2479
|
fontWeight: "normal",
|
|
3550
2480
|
fontSize: e.fontSize,
|
|
3551
2481
|
"&-bar": {
|
|
3552
|
-
borderBottom: `${
|
|
2482
|
+
borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
|
|
3553
2483
|
}
|
|
3554
2484
|
}
|
|
3555
2485
|
});
|
|
3556
|
-
},
|
|
2486
|
+
}, cr = (e) => {
|
|
3557
2487
|
const {
|
|
3558
2488
|
cardPaddingBase: t,
|
|
3559
2489
|
colorBorderSecondary: a,
|
|
@@ -3566,11 +2496,11 @@ const Ga = (e) => {
|
|
|
3566
2496
|
border: 0,
|
|
3567
2497
|
borderRadius: 0,
|
|
3568
2498
|
boxShadow: `
|
|
3569
|
-
${
|
|
3570
|
-
0 ${
|
|
3571
|
-
${
|
|
3572
|
-
${
|
|
3573
|
-
0 ${
|
|
2499
|
+
${u(r)} 0 0 0 ${a},
|
|
2500
|
+
0 ${u(r)} 0 0 ${a},
|
|
2501
|
+
${u(r)} ${u(r)} 0 0 ${a},
|
|
2502
|
+
${u(r)} 0 0 0 ${a} inset,
|
|
2503
|
+
0 ${u(r)} 0 0 ${a} inset;
|
|
3574
2504
|
`,
|
|
3575
2505
|
transition: `all ${e.motionDurationMid}`,
|
|
3576
2506
|
"&-hoverable:hover": {
|
|
@@ -3579,24 +2509,24 @@ const Ga = (e) => {
|
|
|
3579
2509
|
boxShadow: n
|
|
3580
2510
|
}
|
|
3581
2511
|
};
|
|
3582
|
-
},
|
|
2512
|
+
}, dr = (e) => {
|
|
3583
2513
|
const {
|
|
3584
2514
|
componentCls: t,
|
|
3585
2515
|
iconCls: a,
|
|
3586
2516
|
actionsLiMargin: n,
|
|
3587
2517
|
cardActionsIconSize: r,
|
|
3588
2518
|
colorBorderSecondary: o,
|
|
3589
|
-
actionsBg:
|
|
2519
|
+
actionsBg: s
|
|
3590
2520
|
} = e;
|
|
3591
2521
|
return Object.assign(Object.assign({
|
|
3592
2522
|
margin: 0,
|
|
3593
2523
|
padding: 0,
|
|
3594
2524
|
listStyle: "none",
|
|
3595
|
-
background:
|
|
3596
|
-
borderTop: `${
|
|
2525
|
+
background: s,
|
|
2526
|
+
borderTop: `${u(e.lineWidth)} ${e.lineType} ${o}`,
|
|
3597
2527
|
display: "flex",
|
|
3598
|
-
borderRadius: `0 0 ${
|
|
3599
|
-
},
|
|
2528
|
+
borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
|
|
2529
|
+
}, Ke()), {
|
|
3600
2530
|
"& > li": {
|
|
3601
2531
|
margin: n,
|
|
3602
2532
|
color: e.colorTextDescription,
|
|
@@ -3616,7 +2546,7 @@ const Ga = (e) => {
|
|
|
3616
2546
|
display: "inline-block",
|
|
3617
2547
|
width: "100%",
|
|
3618
2548
|
color: e.colorTextDescription,
|
|
3619
|
-
lineHeight:
|
|
2549
|
+
lineHeight: u(e.fontHeight),
|
|
3620
2550
|
transition: `color ${e.motionDurationMid}`,
|
|
3621
2551
|
"&:hover": {
|
|
3622
2552
|
color: e.colorPrimary
|
|
@@ -3624,18 +2554,18 @@ const Ga = (e) => {
|
|
|
3624
2554
|
},
|
|
3625
2555
|
[`> ${a}`]: {
|
|
3626
2556
|
fontSize: r,
|
|
3627
|
-
lineHeight:
|
|
2557
|
+
lineHeight: u(e.calc(r).mul(e.lineHeight).equal())
|
|
3628
2558
|
}
|
|
3629
2559
|
},
|
|
3630
2560
|
"&:not(:last-child)": {
|
|
3631
|
-
borderInlineEnd: `${
|
|
2561
|
+
borderInlineEnd: `${u(e.lineWidth)} ${e.lineType} ${o}`
|
|
3632
2562
|
}
|
|
3633
2563
|
}
|
|
3634
2564
|
});
|
|
3635
|
-
},
|
|
3636
|
-
margin: `${
|
|
2565
|
+
}, ur = (e) => Object.assign(Object.assign({
|
|
2566
|
+
margin: `${u(e.calc(e.marginXXS).mul(-1).equal())} 0`,
|
|
3637
2567
|
display: "flex"
|
|
3638
|
-
},
|
|
2568
|
+
}, Ke()), {
|
|
3639
2569
|
"&-avatar": {
|
|
3640
2570
|
paddingInlineEnd: e.padding
|
|
3641
2571
|
},
|
|
@@ -3650,11 +2580,11 @@ const Ga = (e) => {
|
|
|
3650
2580
|
color: e.colorTextHeading,
|
|
3651
2581
|
fontWeight: e.fontWeightStrong,
|
|
3652
2582
|
fontSize: e.fontSizeLG
|
|
3653
|
-
},
|
|
2583
|
+
}, pt),
|
|
3654
2584
|
"&-description": {
|
|
3655
2585
|
color: e.colorTextDescription
|
|
3656
2586
|
}
|
|
3657
|
-
}),
|
|
2587
|
+
}), vr = (e) => {
|
|
3658
2588
|
const {
|
|
3659
2589
|
componentCls: t,
|
|
3660
2590
|
colorFillAlter: a,
|
|
@@ -3663,17 +2593,17 @@ const Ga = (e) => {
|
|
|
3663
2593
|
} = e;
|
|
3664
2594
|
return {
|
|
3665
2595
|
[`${t}-head`]: {
|
|
3666
|
-
padding: `0 ${
|
|
2596
|
+
padding: `0 ${u(n)}`,
|
|
3667
2597
|
background: a,
|
|
3668
2598
|
"&-title": {
|
|
3669
2599
|
fontSize: e.fontSize
|
|
3670
2600
|
}
|
|
3671
2601
|
},
|
|
3672
2602
|
[`${t}-body`]: {
|
|
3673
|
-
padding: `${
|
|
2603
|
+
padding: `${u(e.padding)} ${u(r)}`
|
|
3674
2604
|
}
|
|
3675
2605
|
};
|
|
3676
|
-
},
|
|
2606
|
+
}, fr = (e) => {
|
|
3677
2607
|
const {
|
|
3678
2608
|
componentCls: t
|
|
3679
2609
|
} = e;
|
|
@@ -3683,49 +2613,49 @@ const Ga = (e) => {
|
|
|
3683
2613
|
userSelect: "none"
|
|
3684
2614
|
}
|
|
3685
2615
|
};
|
|
3686
|
-
},
|
|
2616
|
+
}, gr = (e) => {
|
|
3687
2617
|
const {
|
|
3688
2618
|
componentCls: t,
|
|
3689
2619
|
cardShadow: a,
|
|
3690
2620
|
cardHeadPadding: n,
|
|
3691
2621
|
colorBorderSecondary: r,
|
|
3692
2622
|
boxShadowTertiary: o,
|
|
3693
|
-
bodyPadding:
|
|
3694
|
-
extraColor:
|
|
2623
|
+
bodyPadding: s,
|
|
2624
|
+
extraColor: i
|
|
3695
2625
|
} = e;
|
|
3696
2626
|
return {
|
|
3697
|
-
[t]: Object.assign(Object.assign({},
|
|
2627
|
+
[t]: Object.assign(Object.assign({}, bt(e)), {
|
|
3698
2628
|
position: "relative",
|
|
3699
2629
|
background: e.colorBgContainer,
|
|
3700
2630
|
borderRadius: e.borderRadiusLG,
|
|
3701
2631
|
[`&:not(${t}-bordered)`]: {
|
|
3702
2632
|
boxShadow: o
|
|
3703
2633
|
},
|
|
3704
|
-
[`${t}-head`]:
|
|
2634
|
+
[`${t}-head`]: sr(e),
|
|
3705
2635
|
[`${t}-extra`]: {
|
|
3706
2636
|
// https://stackoverflow.com/a/22429853/3040605
|
|
3707
2637
|
marginInlineStart: "auto",
|
|
3708
|
-
color:
|
|
2638
|
+
color: i,
|
|
3709
2639
|
fontWeight: "normal",
|
|
3710
2640
|
fontSize: e.fontSize
|
|
3711
2641
|
},
|
|
3712
2642
|
[`${t}-body`]: Object.assign({
|
|
3713
|
-
padding:
|
|
3714
|
-
borderRadius: `0 0 ${
|
|
3715
|
-
},
|
|
3716
|
-
[`${t}-grid`]:
|
|
2643
|
+
padding: s,
|
|
2644
|
+
borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
|
|
2645
|
+
}, Ke()),
|
|
2646
|
+
[`${t}-grid`]: cr(e),
|
|
3717
2647
|
[`${t}-cover`]: {
|
|
3718
2648
|
"> *": {
|
|
3719
2649
|
display: "block",
|
|
3720
2650
|
width: "100%",
|
|
3721
|
-
borderRadius: `${
|
|
2651
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
|
|
3722
2652
|
}
|
|
3723
2653
|
},
|
|
3724
|
-
[`${t}-actions`]:
|
|
3725
|
-
[`${t}-meta`]:
|
|
2654
|
+
[`${t}-actions`]: dr(e),
|
|
2655
|
+
[`${t}-meta`]: ur(e)
|
|
3726
2656
|
}),
|
|
3727
2657
|
[`${t}-bordered`]: {
|
|
3728
|
-
border: `${
|
|
2658
|
+
border: `${u(e.lineWidth)} ${e.lineType} ${r}`,
|
|
3729
2659
|
[`${t}-cover`]: {
|
|
3730
2660
|
marginTop: -1,
|
|
3731
2661
|
marginInlineStart: -1,
|
|
@@ -3741,7 +2671,7 @@ const Ga = (e) => {
|
|
|
3741
2671
|
}
|
|
3742
2672
|
},
|
|
3743
2673
|
[`${t}-contain-grid`]: {
|
|
3744
|
-
borderRadius: `${
|
|
2674
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0 `,
|
|
3745
2675
|
[`${t}-body`]: {
|
|
3746
2676
|
display: "flex",
|
|
3747
2677
|
flexWrap: "wrap"
|
|
@@ -3760,13 +2690,13 @@ const Ga = (e) => {
|
|
|
3760
2690
|
}
|
|
3761
2691
|
}
|
|
3762
2692
|
},
|
|
3763
|
-
[`${t}-type-inner`]:
|
|
3764
|
-
[`${t}-loading`]:
|
|
2693
|
+
[`${t}-type-inner`]: vr(e),
|
|
2694
|
+
[`${t}-loading`]: fr(e),
|
|
3765
2695
|
[`${t}-rtl`]: {
|
|
3766
2696
|
direction: "rtl"
|
|
3767
2697
|
}
|
|
3768
2698
|
};
|
|
3769
|
-
},
|
|
2699
|
+
}, mr = (e) => {
|
|
3770
2700
|
const {
|
|
3771
2701
|
componentCls: t,
|
|
3772
2702
|
bodyPaddingSM: a,
|
|
@@ -3778,7 +2708,7 @@ const Ga = (e) => {
|
|
|
3778
2708
|
[`${t}-small`]: {
|
|
3779
2709
|
[`> ${t}-head`]: {
|
|
3780
2710
|
minHeight: r,
|
|
3781
|
-
padding: `0 ${
|
|
2711
|
+
padding: `0 ${u(n)}`,
|
|
3782
2712
|
fontSize: o,
|
|
3783
2713
|
[`> ${t}-head-wrapper`]: {
|
|
3784
2714
|
[`> ${t}-extra`]: {
|
|
@@ -3800,7 +2730,7 @@ const Ga = (e) => {
|
|
|
3800
2730
|
}
|
|
3801
2731
|
}
|
|
3802
2732
|
};
|
|
3803
|
-
},
|
|
2733
|
+
}, br = (e) => {
|
|
3804
2734
|
var t, a;
|
|
3805
2735
|
return {
|
|
3806
2736
|
headerBg: "transparent",
|
|
@@ -3818,8 +2748,8 @@ const Ga = (e) => {
|
|
|
3818
2748
|
bodyPadding: (t = e.bodyPadding) !== null && t !== void 0 ? t : e.paddingLG,
|
|
3819
2749
|
headerPadding: (a = e.headerPadding) !== null && a !== void 0 ? a : e.paddingLG
|
|
3820
2750
|
};
|
|
3821
|
-
},
|
|
3822
|
-
const t =
|
|
2751
|
+
}, pr = ft("Card", (e) => {
|
|
2752
|
+
const t = gt(e, {
|
|
3823
2753
|
cardShadow: e.boxShadowCard,
|
|
3824
2754
|
cardHeadPadding: e.padding,
|
|
3825
2755
|
cardPaddingBase: e.paddingLG,
|
|
@@ -3827,188 +2757,192 @@ const Ga = (e) => {
|
|
|
3827
2757
|
});
|
|
3828
2758
|
return [
|
|
3829
2759
|
// Style
|
|
3830
|
-
|
|
2760
|
+
gr(t),
|
|
3831
2761
|
// Size
|
|
3832
|
-
|
|
2762
|
+
mr(t)
|
|
3833
2763
|
];
|
|
3834
|
-
},
|
|
3835
|
-
var
|
|
2764
|
+
}, br);
|
|
2765
|
+
var Ut = globalThis && globalThis.__rest || function(e, t) {
|
|
3836
2766
|
var a = {};
|
|
3837
|
-
for (var n in e)
|
|
3838
|
-
|
|
3839
|
-
|
|
2767
|
+
for (var n in e)
|
|
2768
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
2769
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2770
|
+
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
2771
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
|
|
3840
2772
|
return a;
|
|
3841
2773
|
};
|
|
3842
|
-
const
|
|
2774
|
+
const hr = (e) => {
|
|
3843
2775
|
const {
|
|
3844
2776
|
actionClasses: t,
|
|
3845
2777
|
actions: a = [],
|
|
3846
2778
|
actionStyle: n
|
|
3847
2779
|
} = e;
|
|
3848
|
-
return /* @__PURE__ */
|
|
2780
|
+
return /* @__PURE__ */ l.createElement("ul", {
|
|
3849
2781
|
className: t,
|
|
3850
2782
|
style: n
|
|
3851
2783
|
}, a.map((r, o) => {
|
|
3852
|
-
const
|
|
3853
|
-
return /* @__PURE__ */
|
|
2784
|
+
const s = `action-${o}`;
|
|
2785
|
+
return /* @__PURE__ */ l.createElement("li", {
|
|
3854
2786
|
style: {
|
|
3855
2787
|
width: `${100 / a.length}%`
|
|
3856
2788
|
},
|
|
3857
|
-
key:
|
|
3858
|
-
}, /* @__PURE__ */
|
|
2789
|
+
key: s
|
|
2790
|
+
}, /* @__PURE__ */ l.createElement("span", null, r));
|
|
3859
2791
|
}));
|
|
3860
|
-
}, $
|
|
2792
|
+
}, $r = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
3861
2793
|
const {
|
|
3862
2794
|
prefixCls: a,
|
|
3863
2795
|
className: n,
|
|
3864
2796
|
rootClassName: r,
|
|
3865
2797
|
style: o,
|
|
3866
|
-
extra:
|
|
3867
|
-
headStyle:
|
|
2798
|
+
extra: s,
|
|
2799
|
+
headStyle: i = {},
|
|
3868
2800
|
bodyStyle: c = {},
|
|
3869
|
-
title:
|
|
3870
|
-
loading:
|
|
3871
|
-
bordered:
|
|
3872
|
-
size:
|
|
3873
|
-
type:
|
|
3874
|
-
cover:
|
|
3875
|
-
actions:
|
|
3876
|
-
tabList:
|
|
3877
|
-
children:
|
|
3878
|
-
activeTabKey:
|
|
3879
|
-
defaultActiveTabKey:
|
|
3880
|
-
tabBarExtraContent:
|
|
3881
|
-
hoverable:
|
|
3882
|
-
tabProps:
|
|
3883
|
-
classNames:
|
|
3884
|
-
styles:
|
|
3885
|
-
} = e,
|
|
3886
|
-
getPrefixCls:
|
|
3887
|
-
direction:
|
|
3888
|
-
card:
|
|
3889
|
-
} =
|
|
2801
|
+
title: d,
|
|
2802
|
+
loading: g,
|
|
2803
|
+
bordered: f = !0,
|
|
2804
|
+
size: b,
|
|
2805
|
+
type: C,
|
|
2806
|
+
cover: T,
|
|
2807
|
+
actions: p,
|
|
2808
|
+
tabList: O,
|
|
2809
|
+
children: y,
|
|
2810
|
+
activeTabKey: S,
|
|
2811
|
+
defaultActiveTabKey: P,
|
|
2812
|
+
tabBarExtraContent: z,
|
|
2813
|
+
hoverable: j,
|
|
2814
|
+
tabProps: k = {},
|
|
2815
|
+
classNames: D,
|
|
2816
|
+
styles: R
|
|
2817
|
+
} = e, w = Ut(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
|
|
2818
|
+
getPrefixCls: N,
|
|
2819
|
+
direction: m,
|
|
2820
|
+
card: h
|
|
2821
|
+
} = l.useContext(be);
|
|
3890
2822
|
if (process.env.NODE_ENV !== "production") {
|
|
3891
|
-
const
|
|
3892
|
-
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"]].forEach((
|
|
3893
|
-
let [
|
|
3894
|
-
|
|
2823
|
+
const F = mt("Card");
|
|
2824
|
+
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"]].forEach((V) => {
|
|
2825
|
+
let [ue, _e] = V;
|
|
2826
|
+
F.deprecated(!(ue in e), ue, _e);
|
|
3895
2827
|
});
|
|
3896
2828
|
}
|
|
3897
|
-
const
|
|
3898
|
-
var
|
|
3899
|
-
(
|
|
3900
|
-
},
|
|
3901
|
-
var
|
|
3902
|
-
return
|
|
3903
|
-
},
|
|
3904
|
-
var
|
|
3905
|
-
return Object.assign(Object.assign({}, (
|
|
3906
|
-
},
|
|
3907
|
-
let
|
|
3908
|
-
return
|
|
3909
|
-
(
|
|
3910
|
-
}),
|
|
3911
|
-
}, [
|
|
2829
|
+
const _ = (F) => {
|
|
2830
|
+
var V;
|
|
2831
|
+
(V = e.onTabChange) === null || V === void 0 || V.call(e, F);
|
|
2832
|
+
}, x = (F) => {
|
|
2833
|
+
var V;
|
|
2834
|
+
return E((V = h == null ? void 0 : h.classNames) === null || V === void 0 ? void 0 : V[F], D == null ? void 0 : D[F]);
|
|
2835
|
+
}, G = (F) => {
|
|
2836
|
+
var V;
|
|
2837
|
+
return Object.assign(Object.assign({}, (V = h == null ? void 0 : h.styles) === null || V === void 0 ? void 0 : V[F]), R == null ? void 0 : R[F]);
|
|
2838
|
+
}, X = l.useMemo(() => {
|
|
2839
|
+
let F = !1;
|
|
2840
|
+
return l.Children.forEach(y, (V) => {
|
|
2841
|
+
(V == null ? void 0 : V.type) === la && (F = !0);
|
|
2842
|
+
}), F;
|
|
2843
|
+
}, [y]), v = N("card", a), [Y, se, q] = pr(v), J = /* @__PURE__ */ l.createElement($n, {
|
|
3912
2844
|
loading: !0,
|
|
3913
2845
|
active: !0,
|
|
3914
2846
|
paragraph: {
|
|
3915
2847
|
rows: 4
|
|
3916
2848
|
},
|
|
3917
2849
|
title: !1
|
|
3918
|
-
},
|
|
3919
|
-
[
|
|
3920
|
-
tabBarExtraContent:
|
|
2850
|
+
}, y), ce = S !== void 0, I = Object.assign(Object.assign({}, k), {
|
|
2851
|
+
[ce ? "activeKey" : "defaultActiveKey"]: ce ? S : P,
|
|
2852
|
+
tabBarExtraContent: z
|
|
3921
2853
|
});
|
|
3922
|
-
let
|
|
3923
|
-
const
|
|
3924
|
-
size:
|
|
3925
|
-
},
|
|
3926
|
-
className: `${
|
|
3927
|
-
onChange:
|
|
3928
|
-
items:
|
|
2854
|
+
let H;
|
|
2855
|
+
const W = Jt(b), Q = !W || W === "default" ? "large" : W, Z = O ? /* @__PURE__ */ l.createElement(ir, Object.assign({
|
|
2856
|
+
size: Q
|
|
2857
|
+
}, I, {
|
|
2858
|
+
className: `${v}-head-tabs`,
|
|
2859
|
+
onChange: _,
|
|
2860
|
+
items: O.map((F) => {
|
|
3929
2861
|
var {
|
|
3930
|
-
tab:
|
|
3931
|
-
} =
|
|
2862
|
+
tab: V
|
|
2863
|
+
} = F, ue = Ut(F, ["tab"]);
|
|
3932
2864
|
return Object.assign({
|
|
3933
|
-
label:
|
|
3934
|
-
},
|
|
2865
|
+
label: V
|
|
2866
|
+
}, ue);
|
|
3935
2867
|
})
|
|
3936
2868
|
})) : null;
|
|
3937
|
-
if (
|
|
3938
|
-
const
|
|
3939
|
-
|
|
3940
|
-
className:
|
|
3941
|
-
style:
|
|
3942
|
-
}, /* @__PURE__ */
|
|
3943
|
-
className: `${
|
|
3944
|
-
},
|
|
3945
|
-
className:
|
|
3946
|
-
style:
|
|
3947
|
-
},
|
|
3948
|
-
className:
|
|
3949
|
-
style:
|
|
3950
|
-
},
|
|
2869
|
+
if (d || s || Z) {
|
|
2870
|
+
const F = E(`${v}-head`, x("header")), V = E(`${v}-head-title`, x("title")), ue = E(`${v}-extra`, x("extra")), _e = Object.assign(Object.assign({}, i), G("header"));
|
|
2871
|
+
H = /* @__PURE__ */ l.createElement("div", {
|
|
2872
|
+
className: F,
|
|
2873
|
+
style: _e
|
|
2874
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
2875
|
+
className: `${v}-head-wrapper`
|
|
2876
|
+
}, d && /* @__PURE__ */ l.createElement("div", {
|
|
2877
|
+
className: V,
|
|
2878
|
+
style: G("title")
|
|
2879
|
+
}, d), s && /* @__PURE__ */ l.createElement("div", {
|
|
2880
|
+
className: ue,
|
|
2881
|
+
style: G("extra")
|
|
2882
|
+
}, s)), Z);
|
|
3951
2883
|
}
|
|
3952
|
-
const
|
|
3953
|
-
className:
|
|
3954
|
-
style:
|
|
3955
|
-
},
|
|
3956
|
-
className:
|
|
3957
|
-
style:
|
|
3958
|
-
},
|
|
3959
|
-
actionClasses:
|
|
3960
|
-
actionStyle:
|
|
3961
|
-
actions:
|
|
3962
|
-
}) : null,
|
|
3963
|
-
[`${
|
|
3964
|
-
[`${
|
|
3965
|
-
[`${
|
|
3966
|
-
[`${
|
|
3967
|
-
[`${
|
|
3968
|
-
[`${
|
|
3969
|
-
[`${
|
|
3970
|
-
[`${
|
|
3971
|
-
}, n, r,
|
|
3972
|
-
return
|
|
2884
|
+
const ne = E(`${v}-cover`, x("cover")), ae = T ? /* @__PURE__ */ l.createElement("div", {
|
|
2885
|
+
className: ne,
|
|
2886
|
+
style: G("cover")
|
|
2887
|
+
}, T) : null, $e = E(`${v}-body`, x("body")), fe = Object.assign(Object.assign({}, c), G("body")), re = /* @__PURE__ */ l.createElement("div", {
|
|
2888
|
+
className: $e,
|
|
2889
|
+
style: fe
|
|
2890
|
+
}, g ? J : y), ye = E(`${v}-actions`, x("actions")), L = p != null && p.length ? /* @__PURE__ */ l.createElement(hr, {
|
|
2891
|
+
actionClasses: ye,
|
|
2892
|
+
actionStyle: G("actions"),
|
|
2893
|
+
actions: p
|
|
2894
|
+
}) : null, de = Ve(w, ["onTabChange"]), xe = E(v, h == null ? void 0 : h.className, {
|
|
2895
|
+
[`${v}-loading`]: g,
|
|
2896
|
+
[`${v}-bordered`]: f,
|
|
2897
|
+
[`${v}-hoverable`]: j,
|
|
2898
|
+
[`${v}-contain-grid`]: X,
|
|
2899
|
+
[`${v}-contain-tabs`]: O == null ? void 0 : O.length,
|
|
2900
|
+
[`${v}-${W}`]: W,
|
|
2901
|
+
[`${v}-type-${C}`]: !!C,
|
|
2902
|
+
[`${v}-rtl`]: m === "rtl"
|
|
2903
|
+
}, n, r, se, q), Be = Object.assign(Object.assign({}, h == null ? void 0 : h.style), o);
|
|
2904
|
+
return Y(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
3973
2905
|
ref: t
|
|
3974
|
-
},
|
|
3975
|
-
className:
|
|
3976
|
-
style:
|
|
3977
|
-
}),
|
|
3978
|
-
});
|
|
3979
|
-
var
|
|
2906
|
+
}, de, {
|
|
2907
|
+
className: xe,
|
|
2908
|
+
style: Be
|
|
2909
|
+
}), H, ae, re, L));
|
|
2910
|
+
}), yr = $r;
|
|
2911
|
+
var Sr = globalThis && globalThis.__rest || function(e, t) {
|
|
3980
2912
|
var a = {};
|
|
3981
|
-
for (var n in e)
|
|
3982
|
-
|
|
3983
|
-
|
|
2913
|
+
for (var n in e)
|
|
2914
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
2915
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2916
|
+
for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
2917
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
|
|
3984
2918
|
return a;
|
|
3985
2919
|
};
|
|
3986
|
-
const
|
|
2920
|
+
const Cr = (e) => {
|
|
3987
2921
|
const {
|
|
3988
2922
|
prefixCls: t,
|
|
3989
2923
|
className: a,
|
|
3990
2924
|
avatar: n,
|
|
3991
2925
|
title: r,
|
|
3992
2926
|
description: o
|
|
3993
|
-
} = e,
|
|
3994
|
-
getPrefixCls:
|
|
3995
|
-
} =
|
|
2927
|
+
} = e, s = Sr(e, ["prefixCls", "className", "avatar", "title", "description"]), {
|
|
2928
|
+
getPrefixCls: i
|
|
2929
|
+
} = l.useContext(be), c = i("card", t), d = E(`${c}-meta`, a), g = n ? /* @__PURE__ */ l.createElement("div", {
|
|
3996
2930
|
className: `${c}-meta-avatar`
|
|
3997
|
-
}, n) : null,
|
|
2931
|
+
}, n) : null, f = r ? /* @__PURE__ */ l.createElement("div", {
|
|
3998
2932
|
className: `${c}-meta-title`
|
|
3999
|
-
}, r) : null,
|
|
2933
|
+
}, r) : null, b = o ? /* @__PURE__ */ l.createElement("div", {
|
|
4000
2934
|
className: `${c}-meta-description`
|
|
4001
|
-
}, o) : null,
|
|
2935
|
+
}, o) : null, C = f || b ? /* @__PURE__ */ l.createElement("div", {
|
|
4002
2936
|
className: `${c}-meta-detail`
|
|
4003
|
-
},
|
|
4004
|
-
return /* @__PURE__ */
|
|
4005
|
-
className:
|
|
4006
|
-
}),
|
|
4007
|
-
},
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
process.env.NODE_ENV !== "production" && (
|
|
4011
|
-
const
|
|
2937
|
+
}, f, b) : null;
|
|
2938
|
+
return /* @__PURE__ */ l.createElement("div", Object.assign({}, s, {
|
|
2939
|
+
className: d
|
|
2940
|
+
}), g, C);
|
|
2941
|
+
}, xr = Cr, Ue = yr;
|
|
2942
|
+
Ue.Grid = la;
|
|
2943
|
+
Ue.Meta = xr;
|
|
2944
|
+
process.env.NODE_ENV !== "production" && (Ue.displayName = "Card");
|
|
2945
|
+
const _r = Ue, Ur = Yt(_r)`
|
|
4012
2946
|
.ant-card-body {
|
|
4013
2947
|
display: flex;
|
|
4014
2948
|
flex-direction: column;
|
|
@@ -4024,7 +2958,7 @@ const Ao = fa(cn)`
|
|
|
4024
2958
|
color: red;
|
|
4025
2959
|
}
|
|
4026
2960
|
}
|
|
4027
|
-
`,
|
|
2961
|
+
`, Yr = Yt(wa.Title)`
|
|
4028
2962
|
&.ant-typography {
|
|
4029
2963
|
color: green !important;
|
|
4030
2964
|
margin-bottom: 14px;
|
|
@@ -4033,6 +2967,6 @@ const Ao = fa(cn)`
|
|
|
4033
2967
|
}
|
|
4034
2968
|
`;
|
|
4035
2969
|
export {
|
|
4036
|
-
|
|
4037
|
-
|
|
2970
|
+
Ur as Card,
|
|
2971
|
+
Yr as Headline
|
|
4038
2972
|
};
|